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

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

gui: Adjust for libui gralloc flags change

Change-Id: I9f73a1753f9e991eb3a7f0a005c3ab240f0a38b4
Bug: b/33350696
Test: Bullhead: booted to launcher, take photo, watch youtube
parent d4106302
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
@@ -503,7 +503,7 @@ status_t BufferQueueProducer::dequeueBuffer(int *outSlot,
    if (returnFlags & BUFFER_NEEDS_REALLOCATION) {
    if (returnFlags & BUFFER_NEEDS_REALLOCATION) {
        BQ_LOGV("dequeueBuffer: allocating a new buffer for slot %d", *outSlot);
        BQ_LOGV("dequeueBuffer: allocating a new buffer for slot %d", *outSlot);
        sp<GraphicBuffer> graphicBuffer = new GraphicBuffer(
        sp<GraphicBuffer> graphicBuffer = new GraphicBuffer(
                width, height, format, BQ_LAYER_COUNT, usage, usage,
                width, height, format, BQ_LAYER_COUNT, usage,
                {mConsumerName.string(), mConsumerName.size()});
                {mConsumerName.string(), mConsumerName.size()});


        status_t error = graphicBuffer->initCheck();
        status_t error = graphicBuffer->initCheck();
@@ -1342,7 +1342,7 @@ void BufferQueueProducer::allocateBuffers(uint32_t width, uint32_t height,
        for (size_t i = 0; i <  newBufferCount; ++i) {
        for (size_t i = 0; i <  newBufferCount; ++i) {
            sp<GraphicBuffer> graphicBuffer = new GraphicBuffer(
            sp<GraphicBuffer> graphicBuffer = new GraphicBuffer(
                    allocWidth, allocHeight, allocFormat, BQ_LAYER_COUNT,
                    allocWidth, allocHeight, allocFormat, BQ_LAYER_COUNT,
                    allocUsage, allocUsage, {mConsumerName.string(), mConsumerName.size()});
                    allocUsage, {mConsumerName.string(), mConsumerName.size()});


            status_t result = graphicBuffer->initCheck();
            status_t result = graphicBuffer->initCheck();