diff options
author | Mathias Agopian <mathias@google.com> | 2011-08-10 16:33:23 -0700 |
---|---|---|
committer | Mathias Agopian <mathias@google.com> | 2011-08-10 17:35:26 -0700 |
commit | 71fd1213b49e6a33bea42348876eb1db2ab3d362 (patch) | |
tree | bad46c918113fcfa7e18d8d63bdd6656546cdae5 /include/gui/SurfaceTexture.h | |
parent | a04cda9986366ab480ad8008c4d923271b05d78e (diff) | |
download | frameworks_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.h | 5 |
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: |