summaryrefslogtreecommitdiffstats
path: root/include/gui/CpuConsumer.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/gui/CpuConsumer.h')
-rw-r--r--include/gui/CpuConsumer.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/gui/CpuConsumer.h b/include/gui/CpuConsumer.h
index 49c90db..807a4b5 100644
--- a/include/gui/CpuConsumer.h
+++ b/include/gui/CpuConsumer.h
@@ -59,6 +59,8 @@ class CpuConsumer: public ConsumerBase
// how many buffers can be locked for user access at the same time.
CpuConsumer(uint32_t maxLockedBuffers);
+ virtual ~CpuConsumer();
+
// set the name of the CpuConsumer that will be used to identify it in
// log messages.
void setName(const String8& name);
@@ -86,7 +88,7 @@ class CpuConsumer: public ConsumerBase
// Maximum number of buffers that can be locked at a time
uint32_t mMaxLockedBuffers;
- void freeBufferLocked(int slotIndex);
+ virtual void freeBufferLocked(int slotIndex);
// Array for tracking pointers passed to the consumer, matching the
// mSlots indexing