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

Commit 1d298261 authored by Vishnu Nair's avatar Vishnu Nair
Browse files

Surface: Initialize mAutoPrerotation

Hoping to fix the remaining buffer rejection issues. BBQ was
rejecting all buffers coming from a rotated app. The logs
indicated this was because Surface and BufferQueue
autoPreRotation state was mismatched, resulting
in BufferQueue dequeueing buffers of the wrong size.

Test: presubmit
Bug: 191841127
Change-Id: I84b6b8c372b49e885e5831155f8a37ae7404e6d7
parent aff187c3
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -70,6 +70,7 @@ Surface::Surface(const sp<IGraphicBufferProducer>& bufferProducer, bool controll
        mGenerationNumber(0),
        mSharedBufferMode(false),
        mAutoRefresh(false),
        mAutoPrerotation(false),
        mSharedBufferSlot(BufferItem::INVALID_BUFFER_SLOT),
        mSharedBufferHasBeenQueued(false),
        mQueriedSupportedTimestamps(false),