diff options
author | Eino-Ville Talvala <etalvala@google.com> | 2015-06-09 13:44:19 -0700 |
---|---|---|
committer | Eino-Ville Talvala <etalvala@google.com> | 2015-06-09 14:52:26 -0700 |
commit | 727d172137b4f32681c098de8e2623c0b65a6406 (patch) | |
tree | 8e7a403274d5a770ecd473d6ef66f3a5f32f45da /services/camera/libcameraservice/api1/client2/CallbackProcessor.cpp | |
parent | 9a17941fa70e43119d2c3464bc00a3cd30b2bd14 (diff) | |
download | frameworks_av-727d172137b4f32681c098de8e2623c0b65a6406.zip frameworks_av-727d172137b4f32681c098de8e2623c0b65a6406.tar.gz frameworks_av-727d172137b4f32681c098de8e2623c0b65a6406.tar.bz2 |
CameraService: Add consumer name to output stream dumpsys
Also switch use of ANativeWindow to Surface, to get to the
getConsumerName() method where necessary.
Surface can always be cast to ANativeWindow, but not the other way
around, so it's a better option anyway.
Change-Id: Ie5c2d30821c1a754f9e382699ff50b4b328288b3
Diffstat (limited to 'services/camera/libcameraservice/api1/client2/CallbackProcessor.cpp')
-rw-r--r-- | services/camera/libcameraservice/api1/client2/CallbackProcessor.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/services/camera/libcameraservice/api1/client2/CallbackProcessor.cpp b/services/camera/libcameraservice/api1/client2/CallbackProcessor.cpp index 143cc61..5f4fb22 100644 --- a/services/camera/libcameraservice/api1/client2/CallbackProcessor.cpp +++ b/services/camera/libcameraservice/api1/client2/CallbackProcessor.cpp @@ -55,7 +55,7 @@ void CallbackProcessor::onFrameAvailable(const BufferItem& /*item*/) { } status_t CallbackProcessor::setCallbackWindow( - sp<ANativeWindow> callbackWindow) { + sp<Surface> callbackWindow) { ATRACE_CALL(); status_t res; @@ -115,7 +115,7 @@ status_t CallbackProcessor::updateStream(const Parameters ¶ms) { BufferQueue::createBufferQueue(&producer, &consumer); mCallbackConsumer = new CpuConsumer(consumer, kCallbackHeapCount); mCallbackConsumer->setFrameAvailableListener(this); - mCallbackConsumer->setName(String8("Camera2Client::CallbackConsumer")); + mCallbackConsumer->setName(String8("Camera2-CallbackConsumer")); mCallbackWindow = new Surface(producer); } |