always pass the BufferQueue explicitely to consumers
to fix tests build. Change-Id: I70b9cf5b0d76df709e474181eeb7c42a54ecf43a
This commit is contained in:
parent
7f069d79e7
commit
6fda52bc7d
@ -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(),
|
||||
|
Loading…
Reference in New Issue
Block a user