diff options
author | Mathias Agopian <mathias@google.com> | 2012-09-04 21:04:09 -0700 |
---|---|---|
committer | Mathias Agopian <mathias@google.com> | 2012-09-04 21:04:09 -0700 |
commit | 1501d54d63c55dc4e8f4c6eeaeac35aca6660ffc (patch) | |
tree | 19605200681a0ac0d69c205e7fbe5a855d96596b /services | |
parent | 762d0114759686b65feca832a5437e2aee343a13 (diff) | |
download | frameworks_native-1501d54d63c55dc4e8f4c6eeaeac35aca6660ffc.zip frameworks_native-1501d54d63c55dc4e8f4c6eeaeac35aca6660ffc.tar.gz frameworks_native-1501d54d63c55dc4e8f4c6eeaeac35aca6660ffc.tar.bz2 |
minor cleanup
Change-Id: Ied80e14878e92a506930f7a5a55adde8f260ec70
Diffstat (limited to 'services')
-rw-r--r-- | services/surfaceflinger/SurfaceFlinger.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/services/surfaceflinger/SurfaceFlinger.cpp b/services/surfaceflinger/SurfaceFlinger.cpp index f6dd62a..08cb345 100644 --- a/services/surfaceflinger/SurfaceFlinger.cpp +++ b/services/surfaceflinger/SurfaceFlinger.cpp @@ -1027,10 +1027,10 @@ void SurfaceFlinger::handleTransactionLocked(uint32_t transactionFlags) // TODO: we could traverse the tree from front to back and // compute the actual visible region // TODO: we could cache the transformed region - Layer::State front(layer->drawingState()); - Region visibleReg = front.transform.transform( - Region(Rect(front.active.w, front.active.h))); - invalidateLayerStack(front.layerStack, visibleReg); + const Layer::State& s(layer->drawingState()); + Region visibleReg = s.transform.transform( + Region(Rect(s.active.w, s.active.h))); + invalidateLayerStack(s.layerStack, visibleReg); } } } @@ -1202,7 +1202,7 @@ void SurfaceFlinger::handlePageFlip() for (size_t i=0 ; i<count ; i++) { const sp<LayerBase>& layer(currentLayers[i]); const Region dirty(layer->latchBuffer(visibleRegions)); - Layer::State s(layer->drawingState()); + const Layer::State& s(layer->drawingState()); invalidateLayerStack(s.layerStack, dirty); } |