diff options
author | Mathias Agopian <mathias@google.com> | 2013-07-12 22:06:26 -0700 |
---|---|---|
committer | Mathias Agopian <mathias@google.com> | 2013-07-12 22:06:26 -0700 |
commit | 8f938a53385a3c6d1c6aa24b3f38437bb2cc47ae (patch) | |
tree | cfb65e937ffc8b4a3ed574b2bca828ef5ab4c18f /cmds/flatland | |
parent | cdd7d8bc145bbbd21a1689ed87a381287aeec229 (diff) | |
download | frameworks_native-8f938a53385a3c6d1c6aa24b3f38437bb2cc47ae.zip frameworks_native-8f938a53385a3c6d1c6aa24b3f38437bb2cc47ae.tar.gz frameworks_native-8f938a53385a3c6d1c6aa24b3f38437bb2cc47ae.tar.bz2 |
always pass the BufferQueue explicitely to consumers
Change-Id: I883b0a7b19d8e722f9ab714ba6f49e658b02ca86
Diffstat (limited to 'cmds/flatland')
-rw-r--r-- | cmds/flatland/GLHelper.cpp | 4 |
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); |