summaryrefslogtreecommitdiffstats
path: root/services/surfaceflinger/SurfaceFlinger.h
diff options
context:
space:
mode:
authorMathias Agopian <mathias@google.com>2011-03-11 16:54:47 -0800
committerMathias Agopian <mathias@google.com>2011-03-11 17:01:40 -0800
commitf0ff906fa427ddc3293dc061e2ee34ce39c1336e (patch)
tree48799f91df0137807b1ab64c3877dd9bfde52cbd /services/surfaceflinger/SurfaceFlinger.h
parentccf94df600f452189fcb6bad5600e1af180695ad (diff)
downloadframeworks_base-f0ff906fa427ddc3293dc061e2ee34ce39c1336e.zip
frameworks_base-f0ff906fa427ddc3293dc061e2ee34ce39c1336e.tar.gz
frameworks_base-f0ff906fa427ddc3293dc061e2ee34ce39c1336e.tar.bz2
Fix some const-ness and comments
mDrawingState doesn't need to be accessed by the mStateLock, because by definition it's only accessed from the main thread. Similarily, the list of layers in the drawing state cannot change (ie: is const). Change-Id: I2e5da7f4d8caee7af7802b432cd45cc81c7c08b0
Diffstat (limited to 'services/surfaceflinger/SurfaceFlinger.h')
-rw-r--r--services/surfaceflinger/SurfaceFlinger.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/services/surfaceflinger/SurfaceFlinger.h b/services/surfaceflinger/SurfaceFlinger.h
index 9566819..0964848 100644
--- a/services/surfaceflinger/SurfaceFlinger.h
+++ b/services/surfaceflinger/SurfaceFlinger.h
@@ -304,7 +304,7 @@ private:
Vector< sp<LayerBase> >& ditchedLayers);
void computeVisibleRegions(
- LayerVector& currentLayers,
+ const LayerVector& currentLayers,
Region& dirtyRegion,
Region& wormholeRegion);
@@ -371,7 +371,6 @@ private:
// access must be protected by mStateLock
mutable Mutex mStateLock;
State mCurrentState;
- State mDrawingState;
volatile int32_t mTransactionFlags;
volatile int32_t mTransactionCount;
Condition mTransactionCV;
@@ -395,6 +394,7 @@ private:
// Can only accessed from the main thread, these members
// don't need synchronization
+ State mDrawingState;
Region mDirtyRegion;
Region mDirtyRegionRemovedLayer;
Region mInvalidRegion;