diff options
author | Dan Stoza <stoza@google.com> | 2015-03-12 15:21:16 -0700 |
---|---|---|
committer | Dan Stoza <stoza@google.com> | 2015-03-12 15:21:16 -0700 |
commit | 549e735c2ca22d16eea32fda418ba80da32a8558 (patch) | |
tree | c4a5b46fa5803d7ac0520c4eaafb8cef54b4989e /services/camera/libcameraservice/gui | |
parent | 3f27436a9346f043f52265da1e6a74cde2bffd4d (diff) | |
download | frameworks_av-549e735c2ca22d16eea32fda418ba80da32a8558.zip frameworks_av-549e735c2ca22d16eea32fda418ba80da32a8558.tar.gz frameworks_av-549e735c2ca22d16eea32fda418ba80da32a8558.tar.bz2 |
libcameraservice: Stop using IGBC::BufferItem
Switches all uses of IGraphicBufferConsumer::BufferItem (and
BufferQueue::BufferItem) to the BufferItem in libgui. Depends on
frameworks/native I699ed0a6837076867ca756b28d1ffb2238f7a0d9.
Change-Id: I187b3a7d05196b6289596afac8fb9a9d4aebff76
Diffstat (limited to 'services/camera/libcameraservice/gui')
-rw-r--r-- | services/camera/libcameraservice/gui/RingBufferConsumer.cpp | 2 | ||||
-rw-r--r-- | services/camera/libcameraservice/gui/RingBufferConsumer.h | 5 |
2 files changed, 3 insertions, 4 deletions
diff --git a/services/camera/libcameraservice/gui/RingBufferConsumer.cpp b/services/camera/libcameraservice/gui/RingBufferConsumer.cpp index d0f29de..8cd6800 100644 --- a/services/camera/libcameraservice/gui/RingBufferConsumer.cpp +++ b/services/camera/libcameraservice/gui/RingBufferConsumer.cpp @@ -268,7 +268,7 @@ status_t RingBufferConsumer::releaseOldestBufferLocked(size_t* pinnedFrames) { return OK; } -void RingBufferConsumer::onFrameAvailable(const android::BufferItem& item) { +void RingBufferConsumer::onFrameAvailable(const BufferItem& item) { status_t err; { diff --git a/services/camera/libcameraservice/gui/RingBufferConsumer.h b/services/camera/libcameraservice/gui/RingBufferConsumer.h index 90fd734..83e7298 100644 --- a/services/camera/libcameraservice/gui/RingBufferConsumer.h +++ b/services/camera/libcameraservice/gui/RingBufferConsumer.h @@ -17,6 +17,7 @@ #ifndef ANDROID_GUI_RINGBUFFERCONSUMER_H #define ANDROID_GUI_RINGBUFFERCONSUMER_H +#include <gui/BufferItem.h> #include <gui/ConsumerBase.h> #include <ui/GraphicBuffer.h> @@ -54,8 +55,6 @@ class RingBufferConsumer : public ConsumerBase, public: typedef ConsumerBase::FrameAvailableListener FrameAvailableListener; - typedef BufferQueue::BufferItem BufferItem; - enum { INVALID_BUFFER_SLOT = BufferQueue::INVALID_BUFFER_SLOT }; enum { NO_BUFFER_AVAILABLE = BufferQueue::NO_BUFFER_AVAILABLE }; @@ -165,7 +164,7 @@ class RingBufferConsumer : public ConsumerBase, private: // Override ConsumerBase::onFrameAvailable - virtual void onFrameAvailable(const android::BufferItem& item); + virtual void onFrameAvailable(const BufferItem& item); void pinBufferLocked(const BufferItem& item); void unpinBuffer(const BufferItem& item); |