diff options
author | Julian Chu <walkingice@0xlab.org> | 2011-05-26 11:29:23 +0800 |
---|---|---|
committer | Patrik Ryd <patrik.ryd@linaro.org> | 2011-06-22 09:11:29 +0200 |
commit | cf856819da91dcf25dfe1d4cd3a02191b249c115 (patch) | |
tree | f3b64941238d4aec8fae0730d873d2e35d2be3ce | |
parent | b946000e413f3d22833bba5f4f7bc6b7d97b7825 (diff) | |
download | base-dev-2.3.4.tar.gz |
Compute dirty regions aggressivelydev-2.3.4
The exposed region consists of two components:
1) What's VISIBLE now and was COVERED before
2) What's EXPOSED now less that was EXPOSED before
However, the first component should be regarded as dirty
region in above layer. For efficiency reason we compute
dirty region aggressively.
Signed-off-by: Jim Huang <jim.huang@linaro.org>
-rw-r--r-- | services/surfaceflinger/SurfaceFlinger.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/services/surfaceflinger/SurfaceFlinger.cpp b/services/surfaceflinger/SurfaceFlinger.cpp index c08e2c941235..e3b5de6148a8 100644 --- a/services/surfaceflinger/SurfaceFlinger.cpp +++ b/services/surfaceflinger/SurfaceFlinger.cpp @@ -681,7 +681,7 @@ void SurfaceFlinger::computeVisibleRegions( const Region oldVisibleRegion = layer->visibleRegionScreen; const Region oldCoveredRegion = layer->coveredRegionScreen; const Region oldExposed = oldVisibleRegion - oldCoveredRegion; - dirty = (visibleRegion&oldCoveredRegion) | (newExposed-oldExposed); + dirty = (newExposed-oldExposed); } dirty.subtractSelf(aboveOpaqueLayers); |