summaryrefslogtreecommitdiff
path: root/libs/gui/ConsumerBase.cpp
diff options
context:
space:
mode:
author Jamie Gennis <jgennis@google.com> 2012-08-07 18:03:04 -0700
committer Jamie Gennis <jgennis@google.com> 2012-08-16 18:11:02 -0700
commited059a8d754770c3cf28b78dba30f7a6ba475dbe (patch)
treebde20ea117d55ce9fab31604bfb6280272014695 /libs/gui/ConsumerBase.cpp
parent3559b07a885bcdff51a6dffb8e3a5ac5adf3a220 (diff)
SurfaceTexture: inherit from ConsumerBase
This change makes SurfaceTexture inherit from ConsumerBase. It removes all of the functionality from SurfaceTexture that is now provided by the base class. Change-Id: I4a881df42810a14ee32d4ef7c8772a8f2510f4c7
Diffstat (limited to 'libs/gui/ConsumerBase.cpp')
-rw-r--r--libs/gui/ConsumerBase.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/libs/gui/ConsumerBase.cpp b/libs/gui/ConsumerBase.cpp
index af19ac0811..17bbfd11ee 100644
--- a/libs/gui/ConsumerBase.cpp
+++ b/libs/gui/ConsumerBase.cpp
@@ -53,7 +53,8 @@ static int32_t createProcessUniqueId() {
}
ConsumerBase::ConsumerBase(const sp<BufferQueue>& bufferQueue) :
- mBufferQueue(bufferQueue) {
+ mAbandoned(false),
+ mBufferQueue(bufferQueue) {
// Choose a name using the PID and a process-unique ID.
mName = String8::format("unnamed-%d-%d", getpid(), createProcessUniqueId());