summaryrefslogtreecommitdiffstats
path: root/libs/surfaceflinger/LayerBuffer.h
diff options
context:
space:
mode:
authorRebecca Schultz Zavin <rebecca@android.com>2009-07-21 16:17:59 -0700
committerRebecca Schultz Zavin <rebecca@android.com>2009-07-22 17:17:46 -0700
commit1000170033ec2fd7427cf72c81432384ad8a5286 (patch)
tree217f9b6edf452295c69a60c3d758a404ec825f8e /libs/surfaceflinger/LayerBuffer.h
parent96df49bb7deaa33168040084021ff142963a086b (diff)
downloadframeworks_native-1000170033ec2fd7427cf72c81432384ad8a5286.zip
frameworks_native-1000170033ec2fd7427cf72c81432384ad8a5286.tar.gz
frameworks_native-1000170033ec2fd7427cf72c81432384ad8a5286.tar.bz2
Add a flag to set whether the overlay has been initialized. Commit needs to be called at least once on each overlay, and it appears that sometimes this
doesn't happen because the visibility never changes. With this change the overlay parameter and position will be committed when either the visibility of the window changes, or on the first call to visibility resolved, if it hasn't already been done. Signed-off-by: Rebecca Schultz Zavin <rebecca@android.com>
Diffstat (limited to 'libs/surfaceflinger/LayerBuffer.h')
-rw-r--r--libs/surfaceflinger/LayerBuffer.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/libs/surfaceflinger/LayerBuffer.h b/libs/surfaceflinger/LayerBuffer.h
index 746790b..8057219 100644
--- a/libs/surfaceflinger/LayerBuffer.h
+++ b/libs/surfaceflinger/LayerBuffer.h
@@ -175,6 +175,7 @@ private:
int32_t mWidthStride;
int32_t mHeightStride;
mutable Mutex mLock;
+ bool mInitialized;
};