summaryrefslogtreecommitdiffstats
path: root/opengl/tests
diff options
context:
space:
mode:
authorDan Stoza <stoza@google.com>2014-04-07 13:41:37 -0700
committerDan Stoza <stoza@google.com>2014-04-07 13:41:37 -0700
commit5603a2fbbd1aae74c4635e2f600819fb05d112e0 (patch)
tree6b403ac4353c048e26b64747b18d768d0f125627 /opengl/tests
parentfc9aeb859096cc02ec9241fad589d361cf9c3ddd (diff)
downloadframeworks_native-5603a2fbbd1aae74c4635e2f600819fb05d112e0.zip
frameworks_native-5603a2fbbd1aae74c4635e2f600819fb05d112e0.tar.gz
frameworks_native-5603a2fbbd1aae74c4635e2f600819fb05d112e0.tar.bz2
Remove deprecated BufferQueue constructor
Bug: 13415624 Change-Id: I153b5470b21832cebe3c617d28a4ab9c9bf3b362
Diffstat (limited to 'opengl/tests')
-rw-r--r--opengl/tests/EGLTest/EGL_test.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/opengl/tests/EGLTest/EGL_test.cpp b/opengl/tests/EGLTest/EGL_test.cpp
index fea52f3..a4364c6 100644
--- a/opengl/tests/EGLTest/EGL_test.cpp
+++ b/opengl/tests/EGLTest/EGL_test.cpp
@@ -107,9 +107,11 @@ TEST_F(EGLTest, EGLTerminateSucceedsWithRemainingObjects) {
};
// Create a EGLSurface
- sp<BufferQueue> bq = new BufferQueue();
- bq->consumerConnect(new DummyConsumer, false);
- sp<Surface> mSTC = new Surface(static_cast<sp<IGraphicBufferProducer> >( bq));
+ sp<IGraphicBufferProducer> producer;
+ sp<IGraphicBufferConsumer> consumer;
+ BufferQueue::createBufferQueue(&producer, &consumer);
+ consumer->consumerConnect(new DummyConsumer, false);
+ sp<Surface> mSTC = new Surface(producer);
sp<ANativeWindow> mANW = mSTC;
EGLSurface eglSurface = eglCreateWindowSurface(mEglDisplay, config,