summaryrefslogtreecommitdiffstats
path: root/include/gui/SurfaceTexture.h
diff options
context:
space:
mode:
authorMathias Agopian <mathias@google.com>2011-08-10 16:33:23 -0700
committerMathias Agopian <mathias@google.com>2011-08-10 17:35:26 -0700
commit71fd1213b49e6a33bea42348876eb1db2ab3d362 (patch)
treebad46c918113fcfa7e18d8d63bdd6656546cdae5 /include/gui/SurfaceTexture.h
parenta04cda9986366ab480ad8008c4d923271b05d78e (diff)
downloadframeworks_base-71fd1213b49e6a33bea42348876eb1db2ab3d362.zip
frameworks_base-71fd1213b49e6a33bea42348876eb1db2ab3d362.tar.gz
frameworks_base-71fd1213b49e6a33bea42348876eb1db2ab3d362.tar.bz2
rework dequeueBuffer()'s main loop.
this simplifies the code a bit and also makes sure we reevaluate mAbandoned and mConnectedApi each time we come back from waiting on mDequeueCondition Change-Id: I1f8538b62ad321b51ed79d953b700036daba796d
Diffstat (limited to 'include/gui/SurfaceTexture.h')
-rw-r--r--include/gui/SurfaceTexture.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/gui/SurfaceTexture.h b/include/gui/SurfaceTexture.h
index f93930d..71d818c 100644
--- a/include/gui/SurfaceTexture.h
+++ b/include/gui/SurfaceTexture.h
@@ -211,6 +211,11 @@ protected:
// freeAllBuffers frees the resources (both GraphicBuffer and EGLImage) for
// all slots.
void freeAllBuffersLocked();
+
+ // drainQueueLocked drains the buffer queue if we're in synchronous mode
+ // returns immediately otherwise.
+ void drainQueueLocked();
+
static bool isExternalFormat(uint32_t format);
private: