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

Commit 7babeec4 authored by Craig Donner's avatar Craig Donner
Browse files

Update GraphicBufferAllocator users to pass both producer and consumer usages

Bug: 34050596
Test: build
Change-Id: Ia13b276923ccfc5487b1b53d087dedb59b076473
parent 9bb90a55
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -286,7 +286,7 @@ unsigned EvsCamera::increaseAvailableFrames_Locked(unsigned numToAdd) {
        buffer_handle_t memHandle = nullptr;
        status_t result = alloc.allocate(mWidth, mHeight,
                                         mFormat, 1,
                                         mUsage,
                                         mUsage, mUsage,
                                         &memHandle, &mStride, 0, "EvsCamera");
        if (result != NO_ERROR) {
            ALOGE("Error %d allocating %d x %d graphics buffer", result, mWidth, mHeight);
+2 −1
Original line number Diff line number Diff line
@@ -149,7 +149,8 @@ Return<void> EvsDisplay::getTargetBuffer(getTargetBuffer_cb _hidl_cb) {
        GraphicBufferAllocator& alloc(GraphicBufferAllocator::get());
        status_t result = alloc.allocate(mBuffer.width, mBuffer.height,
                                         mBuffer.format, 1, mBuffer.usage,
                                         &handle, &mBuffer.stride,
                                         mBuffer.usage, &handle,
                                         &mBuffer.stride,
                                         0, "EvsDisplay");
        if (result != NO_ERROR) {
            ALOGE("Error %d allocating %d x %d graphics buffer",