diff options
author | Mathias Agopian <mathias@google.com> | 2013-08-08 17:46:48 -0700 |
---|---|---|
committer | Mathias Agopian <mathias@google.com> | 2013-08-08 17:46:48 -0700 |
commit | 9870c9b66cc73ee31aabba23aa06deaf673ee5ef (patch) | |
tree | 81899233549379983a353d4bdb2564e0112b2c16 /include | |
parent | 6c913be9ca95fd6b556d056e165a4ba6dc69795b (diff) | |
download | frameworks_native-9870c9b66cc73ee31aabba23aa06deaf673ee5ef.zip frameworks_native-9870c9b66cc73ee31aabba23aa06deaf673ee5ef.tar.gz frameworks_native-9870c9b66cc73ee31aabba23aa06deaf673ee5ef.tar.bz2 |
make GLConsumer's debug texture static
this is so that we don't burn a gralloc handle and a bit
of memory per GLConsumer.
Change-Id: I30c3e7ec45d7f1b5426aca8e06c7716870877706
Diffstat (limited to 'include')
-rw-r--r-- | include/gui/GLConsumer.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/include/gui/GLConsumer.h b/include/gui/GLConsumer.h index 4c9aa87..742e8d1 100644 --- a/include/gui/GLConsumer.h +++ b/include/gui/GLConsumer.h @@ -297,6 +297,9 @@ private: // binding the buffer without touching the EglSlots. status_t bindUnslottedBufferLocked(EGLDisplay dpy); + // returns a graphic buffer used when the texture image has been released + static sp<GraphicBuffer> getDebugTexImageBuffer(); + // The default consumer usage flags that GLConsumer always sets on its // BufferQueue instance; these will be OR:d with any additional flags passed // from the GLConsumer user. In particular, GLConsumer will always @@ -414,9 +417,12 @@ private: // attachToContext. bool mAttached; + // protects static initialization + static Mutex sStaticInitLock; + // mReleasedTexImageBuffer is a dummy buffer used when in single buffer // mode and releaseTexImage() has been called - sp<GraphicBuffer> mReleasedTexImageBuffer; + static sp<GraphicBuffer> sReleasedTexImageBuffer; }; // ---------------------------------------------------------------------------- |