summaryrefslogtreecommitdiffstats
path: root/media/mca
diff options
context:
space:
mode:
authorMathias Agopian <mathias@google.com>2013-08-02 01:38:38 -0700
committerMathias Agopian <mathias@google.com>2013-08-06 13:07:42 -0700
commit52a9a10b6b8c7b7a9f97777541841b94d4fd9754 (patch)
treeaaf72e50f157c69abc8be70991c16e93bef47fc4 /media/mca
parent0dff7064897afd4e07993bac28ae877aaeb1b5e3 (diff)
downloadframeworks_base-52a9a10b6b8c7b7a9f97777541841b94d4fd9754.zip
frameworks_base-52a9a10b6b8c7b7a9f97777541841b94d4fd9754.tar.gz
frameworks_base-52a9a10b6b8c7b7a9f97777541841b94d4fd9754.tar.bz2
Clearly separate consumer and producer interfaces
Bug: 9265647 Change-Id: Ic68e91788d0a05251e1d2fb9f9d4de403c7099bf
Diffstat (limited to 'media/mca')
-rw-r--r--media/mca/filterfw/native/core/gl_env.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/media/mca/filterfw/native/core/gl_env.cpp b/media/mca/filterfw/native/core/gl_env.cpp
index 63fd16e..fdecda3 100644
--- a/media/mca/filterfw/native/core/gl_env.cpp
+++ b/media/mca/filterfw/native/core/gl_env.cpp
@@ -162,8 +162,7 @@ bool GLEnv::InitWithNewContext() {
// Create dummy surface using a GLConsumer
sp<BufferQueue> bq = new BufferQueue();
surfaceTexture_ = new GLConsumer(bq, 0);
- window_ = new Surface(static_cast<sp<IGraphicBufferProducer> >(
- surfaceTexture_->getBufferQueue()));
+ window_ = new Surface(static_cast<sp<IGraphicBufferProducer> >(bq));
surfaces_[0] = SurfaceWindowPair(eglCreateWindowSurface(display(), config, window_.get(), NULL), NULL);
if (CheckEGLError("eglCreateWindowSurface")) return false;