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

Commit cbc94dba authored by Jorim Jaggi's avatar Jorim Jaggi Committed by android-build-merger
Browse files

Merge changes from topic "flicker-move" am: 3289d461

am: a533b927

Change-Id: Id9670a6706aa7254ede01872cfcdce526aed7b63
parents e0cc72f3 a533b927
Loading
Loading
Loading
Loading
+6 −4
Original line number Original line Diff line number Diff line
@@ -1834,6 +1834,12 @@ void SurfaceFlinger::handleMessageRefresh() {
    mVsyncModulator.onRefreshed(mHadClientComposition);
    mVsyncModulator.onRefreshed(mHadClientComposition);


    mLayersWithQueuedFrames.clear();
    mLayersWithQueuedFrames.clear();
    if (mVisibleRegionsDirty) {
        mVisibleRegionsDirty = false;
        if (mTracingEnabled) {
            mTracing.notify("visibleRegionsDirty");
        }
    }
}
}




@@ -1843,9 +1849,6 @@ bool SurfaceFlinger::handleMessageInvalidate() {


    if (mVisibleRegionsDirty) {
    if (mVisibleRegionsDirty) {
        computeLayerBounds();
        computeLayerBounds();
        if (mTracingEnabled) {
            mTracing.notify("visibleRegionsDirty");
        }
    }
    }


    for (auto& layer : mLayersPendingRefresh) {
    for (auto& layer : mLayersPendingRefresh) {
@@ -2252,7 +2255,6 @@ void SurfaceFlinger::rebuildLayerStacks() {
    // rebuild the visible layer list per screen
    // rebuild the visible layer list per screen
    if (CC_UNLIKELY(mVisibleRegionsDirty)) {
    if (CC_UNLIKELY(mVisibleRegionsDirty)) {
        ATRACE_NAME("rebuildLayerStacks VR Dirty");
        ATRACE_NAME("rebuildLayerStacks VR Dirty");
        mVisibleRegionsDirty = false;
        invalidateHwcGeometry();
        invalidateHwcGeometry();


        for (const auto& pair : mDisplays) {
        for (const auto& pair : mDisplays) {