diff options
author | Andreas Huber <andih@google.com> | 2012-09-12 12:08:55 -0700 |
---|---|---|
committer | Andreas Huber <andih@google.com> | 2012-09-13 09:21:02 -0700 |
commit | 00f41327264fa2e59cc05abaa5c554b2a32938e1 (patch) | |
tree | a728bfd765bbb9f840c0d814574affa62b9931a5 /include | |
parent | bdde5f884eaf270ab4b806849f3122a46cd872ce (diff) | |
download | frameworks_av-00f41327264fa2e59cc05abaa5c554b2a32938e1.zip frameworks_av-00f41327264fa2e59cc05abaa5c554b2a32938e1.tar.gz frameworks_av-00f41327264fa2e59cc05abaa5c554b2a32938e1.tar.bz2 |
Throttle SurfaceMediaSource.
Change-Id: I214ce60f8d94df9c07041577e34ed1ad5e199fdb
Diffstat (limited to 'include')
-rw-r--r-- | include/media/stagefright/SurfaceMediaSource.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/media/stagefright/SurfaceMediaSource.h b/include/media/stagefright/SurfaceMediaSource.h index 840b4aa..9e07ea4 100644 --- a/include/media/stagefright/SurfaceMediaSource.h +++ b/include/media/stagefright/SurfaceMediaSource.h @@ -167,6 +167,8 @@ private: // this list in signalBufferReturned Vector<sp<GraphicBuffer> > mCurrentBuffers; + size_t mNumPendingBuffers; + // mCurrentTimestamp is the timestamp for the current texture. It // gets set to mLastQueuedTimestamp each time updateTexImage is called. int64_t mCurrentTimestamp; @@ -202,10 +204,14 @@ private: // offset timestamps. int64_t mStartTimeNs; + size_t mMaxAcquiredBufferCount; + // mFrameAvailableCondition condition used to indicate whether there // is a frame available for dequeuing Condition mFrameAvailableCondition; + Condition mMediaBuffersAvailableCondition; + // Avoid copying and equating and default constructor DISALLOW_IMPLICIT_CONSTRUCTORS(SurfaceMediaSource); }; |