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

Commit adf0ad20 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Surface: Use buffer id to synchronize slots" into oc-dev

parents e2fad810 55be505a
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1231,7 +1231,7 @@ int Surface::detachNextBuffer(sp<GraphicBuffer>* outBuffer,

    for (int i = 0; i < NUM_BUFFER_SLOTS; i++) {
        if (mSlots[i].buffer != NULL &&
                mSlots[i].buffer->handle == buffer->handle) {
                mSlots[i].buffer->getId() == buffer->getId()) {
            if (mReportRemovedBuffers) {
                mRemovedBuffers.push_back(mSlots[i].buffer);
            }