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

Commit a3816abc authored by ramindani's avatar ramindani Committed by Ram Indani
Browse files

[SF] Disable caching for RefreshRateOverlay

SetCachingHint to disable the caching of the RefreshRateOverlay

BUG: 277704843
Test: manual test
Change-Id: Id144135c4536ef0e3883079ced0ddff078b6467b
parent e469593a
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -355,6 +355,8 @@ SurfaceComposerClient::Transaction RefreshRateOverlay::createTransaction() const
    if (isSetByHwc()) {
        transaction.setFlags(surface, layer_state_t::eLayerIsRefreshRateIndicator,
                             layer_state_t::eLayerIsRefreshRateIndicator);
        // Disable overlay layer caching when refresh rate is updated by the HWC.
        transaction.setCachingHint(surface, gui::CachingHint::Disabled);
    }
    transaction.setFrameRate(surface, kFrameRate, kCompatibility, kSeamlessness);
    return transaction;