diff options
author | Mathias Agopian <mathias@google.com> | 2013-07-12 22:06:20 -0700 |
---|---|---|
committer | Mathias Agopian <mathias@google.com> | 2013-07-12 22:06:20 -0700 |
commit | 8d764bfc74c40641f018a0aa87d6f484aec92eae (patch) | |
tree | 1418445850d4b3d44ab521722639494b33df27f5 /camera/ProCamera.cpp | |
parent | ce177bb31493d3cd4450f9d4760fa1fd32ec6bf4 (diff) | |
download | frameworks_av-8d764bfc74c40641f018a0aa87d6f484aec92eae.zip frameworks_av-8d764bfc74c40641f018a0aa87d6f484aec92eae.tar.gz frameworks_av-8d764bfc74c40641f018a0aa87d6f484aec92eae.tar.bz2 |
always pass the BufferQueue explicitely to consumers
Change-Id: Ic2d9a9cf184a482b3c78a481ed693ee32df5ca13
Diffstat (limited to 'camera/ProCamera.cpp')
-rw-r--r-- | camera/ProCamera.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/camera/ProCamera.cpp b/camera/ProCamera.cpp index fec5461..190402e 100644 --- a/camera/ProCamera.cpp +++ b/camera/ProCamera.cpp @@ -247,7 +247,8 @@ status_t ProCamera::createStreamCpu(int width, int height, int format, sp <IProCameraUser> c = mCamera; if (c == 0) return NO_INIT; - sp<CpuConsumer> cc = new CpuConsumer(heapCount, synchronousMode); + sp<BufferQueue> bq = new BufferQueue(); + sp<CpuConsumer> cc = new CpuConsumer(bq, heapCount, synchronousMode); cc->setName(String8("ProCamera::mCpuConsumer")); sp<Surface> stc = new Surface( |