diff options
author | Ying Wang <wangying@google.com> | 2013-07-15 22:20:35 -0700 |
---|---|---|
committer | Ying Wang <wangying@google.com> | 2013-07-15 22:20:35 -0700 |
commit | 6fda52bc7d4a746abc52b91ce5c97449fb96abdf (patch) | |
tree | b359c826dedba8d74f428d6274404104af483629 /libs/gui | |
parent | 7f069d79e7f04192610ef93901c89835fea46444 (diff) | |
download | frameworks_native-6fda52bc7d4a746abc52b91ce5c97449fb96abdf.zip frameworks_native-6fda52bc7d4a746abc52b91ce5c97449fb96abdf.tar.gz frameworks_native-6fda52bc7d4a746abc52b91ce5c97449fb96abdf.tar.bz2 |
always pass the BufferQueue explicitely to consumers
to fix tests build.
Change-Id: I70b9cf5b0d76df709e474181eeb7c42a54ecf43a
Diffstat (limited to 'libs/gui')
-rw-r--r-- | libs/gui/tests/Surface_test.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libs/gui/tests/Surface_test.cpp b/libs/gui/tests/Surface_test.cpp index 429becf..953f6f9 100644 --- a/libs/gui/tests/Surface_test.cpp +++ b/libs/gui/tests/Surface_test.cpp @@ -87,7 +87,8 @@ TEST_F(SurfaceTest, ScreenshotsOfProtectedBuffersSucceed) { sp<ANativeWindow> anw(mSurface); // Verify the screenshot works with no protected buffers. - sp<CpuConsumer> consumer = new CpuConsumer(1); + sp<BufferQueue> bq = new BufferQueue(); + sp<CpuConsumer> consumer = new CpuConsumer(bq, 1); sp<ISurfaceComposer> sf(ComposerService::getComposerService()); sp<IBinder> display(sf->getBuiltInDisplay(ISurfaceComposer::eDisplayIdMain)); ASSERT_EQ(NO_ERROR, sf->captureScreen(display, consumer->getBufferQueue(), |