diff options
author | Dan Stoza <stoza@google.com> | 2014-06-24 13:04:08 -0700 |
---|---|---|
committer | Dan Stoza <stoza@google.com> | 2014-06-24 13:04:08 -0700 |
commit | db2722a319d91a869ebc4dd618edbef43fd5b738 (patch) | |
tree | 1638102a326e2dfee8368105f25174f5e9e150dd /cmds/stagefright | |
parent | d5d08c57fab3b8ccbdb5df206b579e51308dd3e7 (diff) | |
download | frameworks_av-db2722a319d91a869ebc4dd618edbef43fd5b738.zip frameworks_av-db2722a319d91a869ebc4dd618edbef43fd5b738.tar.gz frameworks_av-db2722a319d91a869ebc4dd618edbef43fd5b738.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/stagefright')
-rw-r--r-- | cmds/stagefright/stagefright.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/cmds/stagefright/stagefright.cpp b/cmds/stagefright/stagefright.cpp index b70afe6..81edcb4 100644 --- a/cmds/stagefright/stagefright.cpp +++ b/cmds/stagefright/stagefright.cpp @@ -942,7 +942,9 @@ int main(int argc, char **argv) { sp<IGraphicBufferProducer> producer; sp<IGraphicBufferConsumer> consumer; BufferQueue::createBufferQueue(&producer, &consumer); - sp<GLConsumer> texture = new GLConsumer(consumer, 0 /* tex */); + sp<GLConsumer> texture = new GLConsumer(consumer, 0 /* tex */, + GLConsumer::TEXTURE_EXTERNAL, true /* useFenceSync */, + false /* isControlledByApp */); gSurface = new Surface(producer); } |