diff options
| author | 2012-08-21 13:37:35 -0700 | |
|---|---|---|
| committer | 2012-08-21 15:46:35 -0700 | |
| commit | e232fdca2a62dc5e81b550f5be8710e36174e7a6 (patch) | |
| tree | 567431349bc9770cb9282a2633015cc5237407fa /libs/gui/CpuConsumer.cpp | |
| parent | f57e7540d4cf799f18fe87d3536c55f1e0064931 (diff) | |
Add BufferItemConsumer, a simple BufferQueue consumer.
BufferItemConsumer allows for acquiring BufferQueue's BufferItems,
which contain all the data and metadata the BufferQueue has for a
given graphics buffer.
This consumer is useful when direct access to the native buffer_handles
is needed by the client.
Also includes a minor cleanup of CpuConsumer's use of 'virtual'.
Bug: 6243944
Change-Id: If7dc4192b15ac499555f1eda42a85140f2434795
Diffstat (limited to 'libs/gui/CpuConsumer.cpp')
| -rw-r--r-- | libs/gui/CpuConsumer.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libs/gui/CpuConsumer.cpp b/libs/gui/CpuConsumer.cpp index 90c8ea64bf..242ac45d30 100644 --- a/libs/gui/CpuConsumer.cpp +++ b/libs/gui/CpuConsumer.cpp @@ -43,6 +43,9 @@ CpuConsumer::CpuConsumer(uint32_t maxLockedBuffers) : mBufferQueue->setConsumerUsageBits(GRALLOC_USAGE_SW_READ_OFTEN); } +CpuConsumer::~CpuConsumer() { +} + void CpuConsumer::setName(const String8& name) { Mutex::Autolock _l(mMutex); mName = name; |