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

Commit e29e02fa authored by Ady Abraham's avatar Ady Abraham Committed by Android (Google) Code Review
Browse files

Merge "SF: make RefreshRateOverlay a trusted overlay"

parents 73690a8b 78c4a242
Loading
Loading
Loading
Loading
+7 −6
Original line number Diff line number Diff line
@@ -203,12 +203,13 @@ bool RefreshRateOverlay::createLayer() {
        return false;
    }

    SurfaceComposerClient::Transaction t;
    t.setFrameRate(mSurfaceControl, 0.0f,
    SurfaceComposerClient::Transaction()
            .setFrameRate(mSurfaceControl, 0.0f,
                          static_cast<int8_t>(Layer::FrameRateCompatibility::NoVote),
                   static_cast<int8_t>(scheduler::Seamlessness::OnlySeamless));
    t.setLayer(mSurfaceControl, INT32_MAX - 2);
    t.apply();
                          static_cast<int8_t>(scheduler::Seamlessness::OnlySeamless))
            .setLayer(mSurfaceControl, INT32_MAX - 2)
            .setTrustedOverlay(mSurfaceControl, true)
            .apply();

    return true;
}