summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorMathias Agopian <mathias@google.com>2013-07-12 22:06:45 -0700
committerMathias Agopian <mathias@google.com>2013-07-12 22:06:45 -0700
commit3ce8f0277c285ce35fc885cf66c0de2c4af75af3 (patch)
treeaa7d5c763f87d955e9437118840b189fd577bdfc /tests
parent00dcc21ea9d309c6bd5263c8e0ed0bd781e4bae6 (diff)
downloadhardware_libhardware-3ce8f0277c285ce35fc885cf66c0de2c4af75af3.zip
hardware_libhardware-3ce8f0277c285ce35fc885cf66c0de2c4af75af3.tar.gz
hardware_libhardware-3ce8f0277c285ce35fc885cf66c0de2c4af75af3.tar.bz2
always pass the BufferQueue explicitely to consumers
Change-Id: Ie13b251d6bfadd533fa045ec5d3299ee8ae752af
Diffstat (limited to 'tests')
-rw-r--r--tests/camera2/CameraStreamFixture.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/camera2/CameraStreamFixture.h b/tests/camera2/CameraStreamFixture.h
index a4dc4a8..ee30dcc 100644
--- a/tests/camera2/CameraStreamFixture.h
+++ b/tests/camera2/CameraStreamFixture.h
@@ -159,7 +159,8 @@ protected:
sp<CameraDeviceBase> device = mDevice;
CameraStreamParams p = mParam;
- mCpuConsumer = new CpuConsumer(p.mHeapCount);
+ sp<BufferQueue> bq = new BufferQueue();
+ mCpuConsumer = new CpuConsumer(bq, p.mHeapCount);
mCpuConsumer->setName(String8("CameraStreamTest::mCpuConsumer"));
mNativeWindow = new Surface(