summaryrefslogtreecommitdiffstats
path: root/libs/gui
diff options
context:
space:
mode:
authorIgor Murashkin <iam@google.com>2013-04-17 19:39:52 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2013-04-17 19:39:53 +0000
commit187edf93c6245bb8fb3187c49f2174492ed6e049 (patch)
treee4644793ae6b0452b4319db51ae220bbcfd24caa /libs/gui
parentf31510a2ac0807cf3d4224a73fc3f8f691f42f5a (diff)
parent87d1e3427b536b5cb1123ddc357539cb4075687a (diff)
downloadframeworks_native-187edf93c6245bb8fb3187c49f2174492ed6e049.zip
frameworks_native-187edf93c6245bb8fb3187c49f2174492ed6e049.tar.gz
frameworks_native-187edf93c6245bb8fb3187c49f2174492ed6e049.tar.bz2
Merge "BufferItemConsumer: add functions to set default buffer format/size" into jb-mr2-dev
Diffstat (limited to 'libs/gui')
-rw-r--r--libs/gui/BufferItemConsumer.cpp10
1 files changed, 10 insertions, 0 deletions
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