summaryrefslogtreecommitdiff
path: root/libs/hwui/Layer.h
diff options
context:
space:
mode:
authorJohn Reck <jreck@google.com>2015-01-29 10:17:57 -0800
committerJohn Reck <jreck@google.com>2015-01-29 10:17:57 -0800
commit57998017ff137f7d4ec33df21b6596141f8c4547 (patch)
treeed9786692ee5727eacea084f12ea417b1d0f7915 /libs/hwui/Layer.h
parent8514766a0a388c3598eaa64709edc634f8edccb1 (diff)
Allow ~Layer() to happen after onGLContextDestroyed
Bug: 19146354 Change-Id: I9e885936168bd541bfbed4064ad67ab524f58e32
Diffstat (limited to 'libs/hwui/Layer.h')
-rw-r--r--libs/hwui/Layer.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/libs/hwui/Layer.h b/libs/hwui/Layer.h
index 64d1d1226ffb..e196cb14e59e 100644
--- a/libs/hwui/Layer.h
+++ b/libs/hwui/Layer.h
@@ -286,6 +286,12 @@ public:
void postDecStrong();
/**
+ * Lost the GL context but the layer is still around, mark it invalid internally
+ * so the dtor knows not to do any GL work
+ */
+ void onGlContextLost();
+
+ /**
* Bounds of the layer.
*/
Rect layer;