summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorMathias Agopian <mathias@google.com>2013-08-08 18:16:21 -0700
committerMathias Agopian <mathias@google.com>2013-08-12 23:45:28 -0700
commit45155969dc747d09d267cd1f22baf0eaf886a801 (patch)
tree37b76acca7ab38136d805d5eb56c3227e8cda1b6 /include
parent96a7dc08f2d504800b84b86eb9f480bd463b618d (diff)
downloadframeworks_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.h4
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.