surfaceflinger: remove DisplayDevice::swapRegion
With SWAP_RECTANGLE and PARTIAL_UPDATES removed, it becomes clear
that swapRegion is not needed. It also becomes clear that
DisplayDevice::flip and SurfaceFlinger::doComposeSurfaces do not
need the dirty region.
Test: SurfaceFlinger_test
Change-Id: Id9cd2b43812d3c7dcfa36f605d0f8a647264f228
diff --git a/services/surfaceflinger/DisplayDevice.h b/services/surfaceflinger/DisplayDevice.h
index e9cd969..ec3018b 100644
--- a/services/surfaceflinger/DisplayDevice.h
+++ b/services/surfaceflinger/DisplayDevice.h
@@ -56,8 +56,6 @@
// region in layer-stack space
mutable Region dirtyRegion;
// region in screen space
- mutable Region swapRegion;
- // region in screen space
Region undefinedRegion;
bool lastCompositionHadVisibleLayers;
@@ -97,7 +95,7 @@
// Flip the front and back buffers if the back buffer is "dirty". Might
// be instantaneous, might involve copying the frame buffer around.
- void flip(const Region& dirty) const;
+ void flip() const;
int getWidth() const;
int getHeight() const;