From 8f938a53385a3c6d1c6aa24b3f38437bb2cc47ae Mon Sep 17 00:00:00 2001 From: Mathias Agopian Date: Fri, 12 Jul 2013 22:06:26 -0700 Subject: always pass the BufferQueue explicitely to consumers Change-Id: I883b0a7b19d8e722f9ab714ba6f49e658b02ca86 --- libs/gui/tests/SurfaceTextureClient_test.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'libs/gui/tests/SurfaceTextureClient_test.cpp') 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 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 st(new GLConsumer(i)); + sp bq = new BufferQueue(); + sp st(new GLConsumer(bq, i)); sp stc(new Surface(st->getBufferQueue())); mEglSurfaces[i] = eglCreateWindowSurface(mEglDisplay, myConfig, static_cast(stc.get()), NULL); -- cgit v1.1