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

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

Merge "Update sideband stream when BufferStateLayer has receive a buffer" into sc-dev

parents ceca281c a663c2bc
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -682,7 +682,10 @@ void BufferStateLayer::setAutoRefresh(bool autoRefresh) {
}

bool BufferStateLayer::latchSidebandStream(bool& recomputeVisibleRegions) {
    if (mSidebandStreamChanged.exchange(false)) {
    // We need to update the sideband stream if the layer has both a buffer and a sideband stream.
    const bool updateSidebandStream = hasFrameUpdate() && mSidebandStream.get();

    if (mSidebandStreamChanged.exchange(false) || updateSidebandStream) {
        const State& s(getDrawingState());
        // mSidebandStreamChanged was true
        mSidebandStream = s.sidebandStream;