summaryrefslogtreecommitdiffstats
path: root/cmds
diff options
context:
space:
mode:
authorMathias Agopian <mathias@google.com>2013-07-16 02:17:58 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2013-07-16 02:17:58 +0000
commit7f069d79e7f04192610ef93901c89835fea46444 (patch)
treef54b8510204d157278766f302f7088806d6ca942 /cmds
parent7556c37b1c1ddd82801bc9ea4cea1ade4d380a98 (diff)
parent8f938a53385a3c6d1c6aa24b3f38437bb2cc47ae (diff)
downloadframeworks_native-7f069d79e7f04192610ef93901c89835fea46444.zip
frameworks_native-7f069d79e7f04192610ef93901c89835fea46444.tar.gz
frameworks_native-7f069d79e7f04192610ef93901c89835fea46444.tar.bz2
Merge "always pass the BufferQueue explicitely to consumers"
Diffstat (limited to 'cmds')
-rw-r--r--cmds/flatland/GLHelper.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/cmds/flatland/GLHelper.cpp b/cmds/flatland/GLHelper.cpp
index 4f7697f..89eb95f 100644
--- a/cmds/flatland/GLHelper.cpp
+++ b/cmds/flatland/GLHelper.cpp
@@ -199,8 +199,8 @@ bool GLHelper::getShaderProgram(const char* name, GLuint* outPgm) {
bool GLHelper::createNamedSurfaceTexture(GLuint name, uint32_t w, uint32_t h,
sp<GLConsumer>* glConsumer, EGLSurface* surface) {
sp<BufferQueue> bq = new BufferQueue(true, mGraphicBufferAlloc);
- sp<GLConsumer> glc = new GLConsumer(name, true,
- GL_TEXTURE_EXTERNAL_OES, false, bq);
+ sp<GLConsumer> glc = new GLConsumer(bq, name,
+ GL_TEXTURE_EXTERNAL_OES, false);
glc->setDefaultBufferSize(w, h);
glc->setDefaultMaxBufferCount(3);
glc->setConsumerUsageBits(GRALLOC_USAGE_HW_COMPOSER);