Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 73c92155 authored by Chia-I Wu's avatar Chia-I Wu Committed by android-build-merger
Browse files

Merge "libui: log an error on allocation failure" into oc-dev

am: e937eb86

Change-Id: I5440bd0a35b0629f637b364b504b29069fe3c146
parents 6bebf246 e937eb86
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -137,6 +137,10 @@ status_t GraphicBufferAllocator::allocate(uint32_t width, uint32_t height,

        return NO_ERROR;
    } else {
        ALOGE("Failed to allocate (%u x %u) layerCount %u format %d "
                "producerUsage %" PRIx64 " consumerUsage %" PRIx64 ": %d",
                width, height, layerCount, format, producerUsage,
                consumerUsage, error);
        return NO_MEMORY;
    }
}