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

Commit ed3240ed authored by Android (Google) Code Review's avatar Android (Google) Code Review Committed by The Android Open Source Project
Browse files

am 58ebdcc0: Merge change 5625 into donut

Merge commit '58ebdcc0'

* commit '58ebdcc0':
  fix [1947273] the DimLayer causes the whole screen to update during transactions
parents b47aa584 58ebdcc0
Loading
Loading
Loading
Loading
+6 −5
Original line number Diff line number Diff line
@@ -772,10 +772,11 @@ void SurfaceFlinger::computeVisibleRegions(
            dirty.orSelf(layer->visibleRegionScreen);
            layer->contentDirty = false;
        } else {
            // compute the exposed region
            // dirty = what's visible now - what's wasn't covered before
            //       = what's visible now & what's was covered before
            dirty = visibleRegion.intersect(layer->coveredRegionScreen);            
            /* compute the exposed region:
             *    exposed = what's VISIBLE and NOT COVERED now 
             *    but was COVERED before
             */
            dirty = (visibleRegion - coveredRegion) & layer->coveredRegionScreen;
        }
        dirty.subtractSelf(aboveOpaqueLayers);

@@ -784,7 +785,7 @@ void SurfaceFlinger::computeVisibleRegions(

        // updade aboveOpaqueLayers/aboveCoveredLayers for next (lower) layer
        aboveOpaqueLayers.orSelf(opaqueRegion);
        aboveCoveredLayers.orSelf(bounds);
        aboveCoveredLayers.orSelf(visibleRegion);
        
        // Store the visible region is screen space
        layer->setVisibleRegion(visibleRegion);