summaryrefslogtreecommitdiffstats
path: root/cmds/flatland
diff options
context:
space:
mode:
authorDan Stoza <stoza@google.com>2014-06-24 13:09:19 -0700
committerDan Stoza <stoza@google.com>2014-06-24 13:09:19 -0700
commite49ba8e2ed8e17156eb00c8fc8e2285df62bc018 (patch)
tree75c16e16f849b08d9f377c75bad708d6510e7388 /cmds/flatland
parentb410863d6aae1e923ff163942adef01ff6a2ea81 (diff)
downloadframeworks_native-e49ba8e2ed8e17156eb00c8fc8e2285df62bc018.zip
frameworks_native-e49ba8e2ed8e17156eb00c8fc8e2285df62bc018.tar.gz
frameworks_native-e49ba8e2ed8e17156eb00c8fc8e2285df62bc018.tar.bz2
GLConsumer: Stop using default constructor params
Removes the dependency on default constructor parameters for GLConsumer so that a different constructor prototype can safely be added. Change-Id: I0da924bbd4c141edbf305598c1be8bc575654680
Diffstat (limited to 'cmds/flatland')
-rw-r--r--cmds/flatland/GLHelper.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmds/flatland/GLHelper.cpp b/cmds/flatland/GLHelper.cpp
index 4b5aba9..3155766 100644
--- a/cmds/flatland/GLHelper.cpp
+++ b/cmds/flatland/GLHelper.cpp
@@ -205,7 +205,7 @@ bool GLHelper::createNamedSurfaceTexture(GLuint name, uint32_t w, uint32_t h,
sp<IGraphicBufferConsumer> consumer;
BufferQueue::createBufferQueue(&producer, &consumer, mGraphicBufferAlloc);
sp<GLConsumer> glc = new GLConsumer(consumer, name,
- GL_TEXTURE_EXTERNAL_OES, false);
+ GL_TEXTURE_EXTERNAL_OES, false, true);
glc->setDefaultBufferSize(w, h);
glc->setDefaultMaxBufferCount(3);
glc->setConsumerUsageBits(GRALLOC_USAGE_HW_COMPOSER);