summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorEino-Ville Talvala <etalvala@google.com>2013-02-28 14:08:34 -0800
committerEino-Ville Talvala <etalvala@google.com>2013-02-28 14:20:28 -0800
commit64d8b1903e4b5f2838818eedcf4fef748b38709c (patch)
treee2c90799b9d247a7459251d8aa36b482ed270d56 /include
parenta9a1b006e48320f5c501473e51e6c4a5f7a17b88 (diff)
downloadframeworks_native-64d8b1903e4b5f2838818eedcf4fef748b38709c.zip
frameworks_native-64d8b1903e4b5f2838818eedcf4fef748b38709c.tar.gz
frameworks_native-64d8b1903e4b5f2838818eedcf4fef748b38709c.tar.bz2
CpuConsumer: Don't unlock buffers on producer disconnect
Bug: 8291751 Change-Id: I062a3d34b41183d07fb6b9109cdb6bf0c0c75672
Diffstat (limited to 'include')
-rw-r--r--include/gui/CpuConsumer.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/include/gui/CpuConsumer.h b/include/gui/CpuConsumer.h
index a08c718..a7fdc0a 100644
--- a/include/gui/CpuConsumer.h
+++ b/include/gui/CpuConsumer.h
@@ -92,7 +92,11 @@ class CpuConsumer: public ConsumerBase
// Array for tracking pointers passed to the consumer, matching the
// mSlots indexing
- void *mBufferPointers[BufferQueue::NUM_BUFFER_SLOTS];
+ struct LockedSlot {
+ sp<GraphicBuffer> mGraphicBuffer;
+ void *mBufferPointer;
+ } mLockedSlots[BufferQueue::NUM_BUFFER_SLOTS];
+
// Count of currently locked buffers
uint32_t mCurrentLockedBuffers;