diff options
author | John Reck <jreck@google.com> | 2015-01-29 20:28:08 +0000 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2015-01-29 20:28:08 +0000 |
commit | fe5ac4fc31ee671721f98cf28cf1bd32ac119998 (patch) | |
tree | 952b5017b376254fb22310bbb91d6c600dd5291e /libs/hwui/Layer.h | |
parent | 3ac22f7a386317ed4affe5bca0406501726ddb73 (diff) | |
parent | 5f3e21cebeecf042e8e18a5021b3965415d9ff60 (diff) |
am 5f3e21ce: am 6efc3ac6: Merge "Allow ~Layer() to happen after onGLContextDestroyed" into lmp-mr1-dev
* commit '5f3e21cebeecf042e8e18a5021b3965415d9ff60':
Allow ~Layer() to happen after onGLContextDestroyed
Diffstat (limited to 'libs/hwui/Layer.h')
-rw-r--r-- | libs/hwui/Layer.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libs/hwui/Layer.h b/libs/hwui/Layer.h index 2d6a72717b45..eb84991a4e38 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; |