From 87d1e3427b536b5cb1123ddc357539cb4075687a Mon Sep 17 00:00:00 2001 From: Igor Murashkin Date: Tue, 16 Apr 2013 11:24:40 -0700 Subject: BufferItemConsumer: add functions to set default buffer format/size Bug: 8629088 Change-Id: I06f2e26a70d6dbcfcd70b08b4461e8e401f6e83f --- libs/gui/BufferItemConsumer.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'libs') diff --git a/libs/gui/BufferItemConsumer.cpp b/libs/gui/BufferItemConsumer.cpp index 885b4e4..90619ab 100644 --- a/libs/gui/BufferItemConsumer.cpp +++ b/libs/gui/BufferItemConsumer.cpp @@ -93,4 +93,14 @@ status_t BufferItemConsumer::releaseBuffer(const BufferItem &item, return err; } +status_t BufferItemConsumer::setDefaultBufferSize(uint32_t w, uint32_t h) { + Mutex::Autolock _l(mMutex); + return mBufferQueue->setDefaultBufferSize(w, h); +} + +status_t BufferItemConsumer::setDefaultBufferFormat(uint32_t defaultFormat) { + Mutex::Autolock _l(mMutex); + return mBufferQueue->setDefaultBufferFormat(defaultFormat); +} + } // namespace android -- cgit v1.1