diff options
Diffstat (limited to 'libs/gui/tests')
-rw-r--r-- | libs/gui/tests/MultiTextureConsumer_test.cpp | 3 | ||||
-rw-r--r-- | libs/gui/tests/SurfaceTextureClient_test.cpp | 6 | ||||
-rw-r--r-- | libs/gui/tests/SurfaceTextureGL.h | 3 |
3 files changed, 8 insertions, 4 deletions
diff --git a/libs/gui/tests/MultiTextureConsumer_test.cpp b/libs/gui/tests/MultiTextureConsumer_test.cpp index 1eb6ef6..3a25ac5 100644 --- a/libs/gui/tests/MultiTextureConsumer_test.cpp +++ b/libs/gui/tests/MultiTextureConsumer_test.cpp @@ -37,7 +37,8 @@ protected: sp<IGraphicBufferProducer> producer; sp<IGraphicBufferConsumer> consumer; BufferQueue::createBufferQueue(&producer, &consumer); - mGlConsumer = new GLConsumer(consumer, TEX_ID); + mGlConsumer = new GLConsumer(consumer, TEX_ID, + GLConsumer::TEXTURE_EXTERNAL, true, false); mSurface = new Surface(producer); mANW = mSurface.get(); diff --git a/libs/gui/tests/SurfaceTextureClient_test.cpp b/libs/gui/tests/SurfaceTextureClient_test.cpp index 7f9fcc4..8cdf3bc 100644 --- a/libs/gui/tests/SurfaceTextureClient_test.cpp +++ b/libs/gui/tests/SurfaceTextureClient_test.cpp @@ -46,7 +46,8 @@ protected: sp<IGraphicBufferProducer> producer; sp<IGraphicBufferConsumer> consumer; BufferQueue::createBufferQueue(&producer, &consumer); - mST = new GLConsumer(consumer, 123); + mST = new GLConsumer(consumer, 123, GLConsumer::TEXTURE_EXTERNAL, true, + false); mSTC = new Surface(producer); mANW = mSTC; @@ -716,7 +717,8 @@ protected: sp<IGraphicBufferProducer> producer; sp<IGraphicBufferConsumer> consumer; BufferQueue::createBufferQueue(&producer, &consumer); - sp<GLConsumer> st(new GLConsumer(consumer, i)); + sp<GLConsumer> st(new GLConsumer(consumer, i, + GLConsumer::TEXTURE_EXTERNAL, true, false)); sp<Surface> stc(new Surface(producer)); mEglSurfaces[i] = eglCreateWindowSurface(mEglDisplay, myConfig, static_cast<ANativeWindow*>(stc.get()), NULL); diff --git a/libs/gui/tests/SurfaceTextureGL.h b/libs/gui/tests/SurfaceTextureGL.h index 3bff192..53eb68c 100644 --- a/libs/gui/tests/SurfaceTextureGL.h +++ b/libs/gui/tests/SurfaceTextureGL.h @@ -39,7 +39,8 @@ protected: GLTest::SetUp(); sp<IGraphicBufferProducer> producer; BufferQueue::createBufferQueue(&producer, &mConsumer); - mST = new GLConsumer(mConsumer, TEX_ID); + mST = new GLConsumer(mConsumer, TEX_ID, GLConsumer::TEXTURE_EXTERNAL, + true, false); mSTC = new Surface(producer); mANW = mSTC; mTextureRenderer = new TextureRenderer(TEX_ID, mST); |