summaryrefslogtreecommitdiffstats
path: root/services/surfaceflinger/LayerBase.h
diff options
context:
space:
mode:
Diffstat (limited to 'services/surfaceflinger/LayerBase.h')
-rw-r--r--services/surfaceflinger/LayerBase.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/services/surfaceflinger/LayerBase.h b/services/surfaceflinger/LayerBase.h
index 6c49a19..7162e47 100644
--- a/services/surfaceflinger/LayerBase.h
+++ b/services/surfaceflinger/LayerBase.h
@@ -202,6 +202,10 @@ public:
*/
virtual bool isProtected() const { return false; }
+ /** Called from the main thread, when the surface is removed from the
+ * draw list */
+ virtual status_t ditch() { return NO_ERROR; }
+
/** called with the state lock when the surface is removed from the
* current list */
virtual void onRemoved() { };
@@ -267,8 +271,7 @@ protected:
volatile int32_t mInvalidate;
-public:
- // called from class SurfaceFlinger
+protected:
virtual ~LayerBase();
private: