diff options
author | Jamie Gennis <jgennis@google.com> | 2010-11-11 15:26:21 -0800 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2010-11-11 15:26:21 -0800 |
commit | d78b7ad3c16068877f6da93f9fc8f117393fcd3e (patch) | |
tree | b272b2f0f9a1246c989963d82f55dba6e723377f /include | |
parent | b50a8033f1c7c2b58913212825f9200f1a9e5652 (diff) | |
parent | effae7fc1aab5354aae649d958db3c8ed77cafa7 (diff) | |
download | frameworks_av-d78b7ad3c16068877f6da93f9fc8f117393fcd3e.zip frameworks_av-d78b7ad3c16068877f6da93f9fc8f117393fcd3e.tar.gz frameworks_av-d78b7ad3c16068877f6da93f9fc8f117393fcd3e.tar.bz2 |
Merge "Implement reducing the buffer count of a Surface."
Diffstat (limited to 'include')
-rw-r--r-- | include/private/surfaceflinger/SharedBufferStack.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/private/surfaceflinger/SharedBufferStack.h b/include/private/surfaceflinger/SharedBufferStack.h index d6ae5e9..9d589cf 100644 --- a/include/private/surfaceflinger/SharedBufferStack.h +++ b/include/private/surfaceflinger/SharedBufferStack.h @@ -285,6 +285,8 @@ public: uint32_t getTransform(int buffer) const; status_t resize(int newNumBuffers); + status_t grow(int newNumBuffers); + status_t shrink(int newNumBuffers); SharedBufferStack::Statistics getStats() const; @@ -346,6 +348,14 @@ private: int mNumBuffers; BufferList mBufferList; + struct BuffersAvailableCondition : public ConditionBase { + int mNumBuffers; + inline BuffersAvailableCondition(SharedBufferServer* sbs, + int numBuffers); + inline bool operator()() const; + inline const char* name() const { return "BuffersAvailableCondition"; } + }; + struct UnlockUpdate : public UpdateBase { const int lockedBuffer; inline UnlockUpdate(SharedBufferBase* sbb, int lockedBuffer); |