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

Commit 35672ce5 authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "C2BqBuffer: fix to check consumer usage when migrating during surface change" into main

parents 6e662f30 8a007370
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -997,7 +997,7 @@ int C2BufferQueueBlockPoolData::migrate(
        return -1;
    }

    if (toUsage != graphicBuffer->getUsage()) {
    if ((toUsage & graphicBuffer->getUsage()) != toUsage) {
        sp<GraphicBuffer> newBuffer = new GraphicBuffer(
            graphicBuffer->handle, GraphicBuffer::CLONE_HANDLE,
            graphicBuffer->width, graphicBuffer->height, graphicBuffer->format,