commit | 57998017ff137f7d4ec33df21b6596141f8c4547 | [log] [tgz] |
---|---|---|
author | John Reck <jreck@google.com> | Thu Jan 29 10:17:57 2015 -0800 |
committer | John Reck <jreck@google.com> | Thu Jan 29 10:17:57 2015 -0800 |
tree | ed9786692ee5727eacea084f12ea417b1d0f7915 | |
parent | 8514766a0a388c3598eaa64709edc634f8edccb1 [diff] [blame] |
Allow ~Layer() to happen after onGLContextDestroyed Bug: 19146354 Change-Id: I9e885936168bd541bfbed4064ad67ab524f58e32
diff --git a/libs/hwui/Layer.h b/libs/hwui/Layer.h index 64d1d12..e196cb1 100644 --- a/libs/hwui/Layer.h +++ b/libs/hwui/Layer.h
@@ -286,6 +286,12 @@ 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;