From 6fda52bc7d4a746abc52b91ce5c97449fb96abdf Mon Sep 17 00:00:00 2001 From: Ying Wang Date: Mon, 15 Jul 2013 22:20:35 -0700 Subject: [PATCH] always pass the BufferQueue explicitely to consumers to fix tests build. Change-Id: I70b9cf5b0d76df709e474181eeb7c42a54ecf43a --- libs/gui/tests/Surface_test.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libs/gui/tests/Surface_test.cpp b/libs/gui/tests/Surface_test.cpp index 429becfd4..953f6f91d 100644 --- a/libs/gui/tests/Surface_test.cpp +++ b/libs/gui/tests/Surface_test.cpp @@ -87,7 +87,8 @@ TEST_F(SurfaceTest, ScreenshotsOfProtectedBuffersSucceed) { sp anw(mSurface); // Verify the screenshot works with no protected buffers. - sp consumer = new CpuConsumer(1); + sp bq = new BufferQueue(); + sp consumer = new CpuConsumer(bq, 1); sp sf(ComposerService::getComposerService()); sp display(sf->getBuiltInDisplay(ISurfaceComposer::eDisplayIdMain)); ASSERT_EQ(NO_ERROR, sf->captureScreen(display, consumer->getBufferQueue(),