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 /libs/gui/tests/SurfaceTextureClient_test.cpp | |
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 'libs/gui/tests/SurfaceTextureClient_test.cpp')
-rw-r--r-- | libs/gui/tests/SurfaceTextureClient_test.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/libs/gui/tests/SurfaceTextureClient_test.cpp b/libs/gui/tests/SurfaceTextureClient_test.cpp index 7376b4c..46bcb22 100644 --- a/libs/gui/tests/SurfaceTextureClient_test.cpp +++ b/libs/gui/tests/SurfaceTextureClient_test.cpp @@ -40,7 +40,8 @@ protected: ALOGV("Begin test: %s.%s", testInfo->test_case_name(), testInfo->name()); - mST = new GLConsumer(123); + sp<BufferQueue> bq = new BufferQueue(); + mST = new GLConsumer(bq, 123); mSTC = new Surface(mST->getBufferQueue()); mANW = mSTC; @@ -715,7 +716,8 @@ protected: ASSERT_NE(EGL_NO_CONTEXT, mEglContext); for (int i = 0; i < NUM_SURFACE_TEXTURES; i++) { - sp<GLConsumer> st(new GLConsumer(i)); + sp<BufferQueue> bq = new BufferQueue(); + sp<GLConsumer> st(new GLConsumer(bq, i)); sp<Surface> stc(new Surface(st->getBufferQueue())); mEglSurfaces[i] = eglCreateWindowSurface(mEglDisplay, myConfig, static_cast<ANativeWindow*>(stc.get()), NULL); |