summaryrefslogtreecommitdiff
path: root/libs/gui/CpuConsumer.cpp
diff options
context:
space:
mode:
author Chia-I Wu <olv@google.com> 2017-11-27 10:16:00 -0800
committer Chia-I Wu <olv@google.com> 2017-12-08 14:11:24 -0800
commita81bc4975941bff8dbfcb858627dfcd01250c1ed (patch)
treefc3d502372f53fc1866fe1473051663e9ea3c510 /libs/gui/CpuConsumer.cpp
parent0530f87f62c8d2b483657427a4f7129500d8fa8d (diff)
libgui: add more IGBC wrappers to ConsumerBase
Add ConsumerBase::setName ConsumerBase::setConsumerUsageBits ConsumerBase::setTransformHint ConsumerBase::setMaxAcquiredBufferCount ConsumerBase::getSidebandStream and remove BufferItemConsumer::setName CpuConsumer::setName GLConsumer::setName GLConsumer::setDefaultBufferFormat GLConsumer::setDefaultBufferDataSpace GLConsumer::setTransformHint GLConsumer::setMaxAcquiredBufferCount SurfaceFlingerConsumer::getSidebandStream at the same time. Test: libgui_test Change-Id: I0b81b7759d6d5a7a89eefdfe95440b262e7fa424
Diffstat (limited to 'libs/gui/CpuConsumer.cpp')
-rw-r--r--libs/gui/CpuConsumer.cpp10
1 files changed, 0 insertions, 10 deletions
diff --git a/libs/gui/CpuConsumer.cpp b/libs/gui/CpuConsumer.cpp
index baf6f7de8e..8edf60400c 100644
--- a/libs/gui/CpuConsumer.cpp
+++ b/libs/gui/CpuConsumer.cpp
@@ -44,16 +44,6 @@ CpuConsumer::CpuConsumer(const sp<IGraphicBufferConsumer>& bq,
mConsumer->setMaxAcquiredBufferCount(static_cast<int32_t>(maxLockedBuffers));
}
-void CpuConsumer::setName(const String8& name) {
- Mutex::Autolock _l(mMutex);
- if (mAbandoned) {
- CC_LOGE("setName: CpuConsumer is abandoned!");
- return;
- }
- mName = name;
- mConsumer->setConsumerName(name);
-}
-
size_t CpuConsumer::findAcquiredBufferLocked(uintptr_t id) const {
for (size_t i = 0; i < mMaxLockedBuffers; i++) {
const auto& ab = mAcquiredBuffers[i];