From a4e19521ac4563f2ff6517bcfd63d9b8d33a6d0b Mon Sep 17 00:00:00 2001 From: Mathias Agopian Date: Wed, 31 Jul 2013 20:09:53 -0700 Subject: Binderize the consumer side of BufferQueue While currently untested, this should allow to move the BuffereQueue in the consumer process and have everything work as usual. Bug: 9265647 Change-Id: I9ca8f099f7c65b9a27b7e7a3643b46d1b58eacfc --- libs/gui/ConsumerBase.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'libs/gui/ConsumerBase.cpp') diff --git a/libs/gui/ConsumerBase.cpp b/libs/gui/ConsumerBase.cpp index cd94ce19aa..d748786d98 100644 --- a/libs/gui/ConsumerBase.cpp +++ b/libs/gui/ConsumerBase.cpp @@ -61,10 +61,8 @@ ConsumerBase::ConsumerBase(const sp& bufferQueue, bool controlledBy // reference once the ctor ends, as that would cause the refcount of 'this' // dropping to 0 at the end of the ctor. Since all we need is a wp<...> // that's what we create. - wp listener; - sp proxy; - listener = static_cast(this); - proxy = new BufferQueue::ProxyConsumerListener(listener); + wp listener = static_cast(this); + sp proxy = new BufferQueue::ProxyConsumerListener(listener); status_t err = mBufferQueue->consumerConnect(proxy, controlledByApp); if (err != NO_ERROR) { -- cgit v1.2.3-59-g8ed1b