diff options
Diffstat (limited to 'libs/gui/tests/CpuConsumer_test.cpp')
-rw-r--r-- | libs/gui/tests/CpuConsumer_test.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/libs/gui/tests/CpuConsumer_test.cpp b/libs/gui/tests/CpuConsumer_test.cpp index 73fdd04..afbc026 100644 --- a/libs/gui/tests/CpuConsumer_test.cpp +++ b/libs/gui/tests/CpuConsumer_test.cpp @@ -66,10 +66,11 @@ protected: test_info->name(), params.width, params.height, params.maxLockedBuffers, params.format); - mCC = new CpuConsumer(params.maxLockedBuffers); + sp<BufferQueue> bq = new BufferQueue(); + mCC = new CpuConsumer(bq, params.maxLockedBuffers); String8 name("CpuConsumer_Under_Test"); mCC->setName(name); - mSTC = new Surface(mCC->getProducerInterface()); + mSTC = new Surface(bq); mANW = mSTC; } |