summaryrefslogtreecommitdiff
path: root/services/surfaceflinger/LayerBase.h
diff options
context:
space:
mode:
author Mathias Agopian <mathias@google.com> 2012-02-02 16:28:05 -0800
committer Android (Google) Code Review <android-gerrit@google.com> 2012-02-02 16:28:05 -0800
commit064b68d1bc6eaef1722fb0fe033a762e439365fa (patch)
tree8c29347b024fe4e5dde602c7dc01318c4d915283 /services/surfaceflinger/LayerBase.h
parentcf0241bee25801c56e557d7cade9d7337ae61e7c (diff)
parent99ce5cdeb383216dee95af4d90e47406b0948ea1 (diff)
Merge "separate transactions from updates"
Diffstat (limited to 'services/surfaceflinger/LayerBase.h')
-rw-r--r--services/surfaceflinger/LayerBase.h17
1 files changed, 9 insertions, 8 deletions
diff --git a/services/surfaceflinger/LayerBase.h b/services/surfaceflinger/LayerBase.h
index 6b62c9db78..b8f7680b2b 100644
--- a/services/surfaceflinger/LayerBase.h
+++ b/services/surfaceflinger/LayerBase.h
@@ -103,8 +103,6 @@ public:
Rect visibleBounds() const;
void drawRegion(const Region& reg) const;
- void invalidate();
-
virtual sp<LayerBaseClient> getLayerBaseClient() const { return 0; }
virtual sp<Layer> getLayer() const { return 0; }
@@ -204,9 +202,16 @@ public:
/** called with the state lock when the surface is removed from the
* current list */
- virtual void onRemoved() { };
+ virtual void onRemoved() { }
- virtual void onLayerDisplayed() { };
+ /** called after page-flip
+ */
+ virtual void onLayerDisplayed() { }
+
+ /** called before composition.
+ * returns true if the layer has pending updates.
+ */
+ virtual bool onPreComposition() { return false; }
/** always call base class first */
virtual void dump(String8& result, char* scratch, size_t size) const;
@@ -275,10 +280,6 @@ protected:
mutable bool mDebug;
- // atomic
- volatile int32_t mInvalidate;
-
-
public:
// called from class SurfaceFlinger
virtual ~LayerBase();