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-21 16:41:03 -0700
commit9fea3421ffddf6480f57f55a25936a886043d909 (patch)
treea624dbef8abd005bbbe57715b234fee4240b32c2 /libs/gui/ConsumerBase.cpp
parent317357fdf7a2b542dfdaa06f42ff7f5f0153f9a3 (diff)
SurfaceTexture: inherit from ConsumerBase (try 2)
This change makes SurfaceTexture inherit from ConsumerBase. It removes all of the functionality from SurfaceTexture that is now provided by the base class. This includes fixes for two bugs that were found after checking this change in the first time and then reverting it. Change-Id: Ie2d9f4f27cfef26fdac341de3152e842b01a58d2
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());