diff options
author | Mathias Agopian <mathias@google.com> | 2013-08-08 18:16:21 -0700 |
---|---|---|
committer | Mathias Agopian <mathias@google.com> | 2013-08-12 23:45:28 -0700 |
commit | 45155969dc747d09d267cd1f22baf0eaf886a801 (patch) | |
tree | 37b76acca7ab38136d805d5eb56c3227e8cda1b6 /include | |
parent | 96a7dc08f2d504800b84b86eb9f480bd463b618d (diff) | |
download | frameworks_native-45155969dc747d09d267cd1f22baf0eaf886a801.zip frameworks_native-45155969dc747d09d267cd1f22baf0eaf886a801.tar.gz frameworks_native-45155969dc747d09d267cd1f22baf0eaf886a801.tar.bz2 |
make sure GLConsumer::releaseTexImage() works after detachFromContext()
Change-Id: I27e0bc57e927d47b2b98113ee37b5396bcc72019
Diffstat (limited to 'include')
-rw-r--r-- | include/gui/GLConsumer.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/gui/GLConsumer.h b/include/gui/GLConsumer.h index 742e8d1..891c464 100644 --- a/include/gui/GLConsumer.h +++ b/include/gui/GLConsumer.h @@ -259,7 +259,9 @@ protected: // to mEglDisplay and mEglContext. If the fields have been previously // set, the values must match; if not, the fields are set to the current // values. - status_t checkAndUpdateEglStateLocked(); + // The contextCheck argument is used to ensure that a GL context is + // properly set; when set to false, the check is not performed. + status_t checkAndUpdateEglStateLocked(bool contextCheck = false); private: // createImage creates a new EGLImage from a GraphicBuffer. |