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

Commit f90642b8 authored by Chris Forbes's avatar Chris Forbes
Browse files

automotive: Adjust tests for libui gralloc flags change

Change-Id: Ia88d8fc664196eae7153ccfb755ea9c3d135fd0c
Bug: b/33350696
Test: Bullhead: booted to launcher, take photo, watch youtube
parent 58a80300
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -311,9 +311,7 @@ unsigned EvsCamera::increaseAvailableFrames_Locked(unsigned numToAdd) {

    while (added < numToAdd) {
        buffer_handle_t memHandle = nullptr;
        status_t result = alloc.allocate(mWidth, mHeight,
                                         mFormat, 1,
                                         mUsage, mUsage,
        status_t result = alloc.allocate(mWidth, mHeight, mFormat, 1, mUsage,
                                         &memHandle, &mStride, 0, "EvsCamera");
        if (result != NO_ERROR) {
            ALOGE("Error %d allocating %d x %d graphics buffer", result, mWidth, mHeight);
+3 −5
Original line number Diff line number Diff line
@@ -166,11 +166,9 @@ Return<void> EvsDisplay::getTargetBuffer(getTargetBuffer_cb _hidl_cb) {
        // Allocate the buffer that will hold our displayable image
        buffer_handle_t handle = nullptr;
        GraphicBufferAllocator& alloc(GraphicBufferAllocator::get());
        status_t result = alloc.allocate(mBuffer.width, mBuffer.height,
                                         mBuffer.format, 1, mBuffer.usage,
                                         mBuffer.usage, &handle,
                                         &mBuffer.stride,
                                         0, "EvsDisplay");
        status_t result = alloc.allocate(
            mBuffer.width, mBuffer.height, mBuffer.format, 1, mBuffer.usage,
            &handle, &mBuffer.stride, 0, "EvsDisplay");
        if (result != NO_ERROR) {
            ALOGE("Error %d allocating %d x %d graphics buffer",
                  result, mBuffer.width, mBuffer.height);