summaryrefslogtreecommitdiffstats
path: root/media
diff options
context:
space:
mode:
authorEino-Ville Talvala <etalvala@google.com>2012-04-18 14:50:38 -0700
committerAndroid (Google) Code Review <android-gerrit@google.com>2012-04-18 14:50:38 -0700
commitee685f6d19a6cc3b0bf02e69eb5dea11a2aeb601 (patch)
tree5094cbde555e23f9514ae394cd17d1e2195d4ac4 /media
parentc34ee0429c4663a97f6a5c342633eeac46de081e (diff)
parent8add6cf4976de9b7bca7b73b1473a1e5f7201087 (diff)
downloadframeworks_av-ee685f6d19a6cc3b0bf02e69eb5dea11a2aeb601.zip
frameworks_av-ee685f6d19a6cc3b0bf02e69eb5dea11a2aeb601.tar.gz
frameworks_av-ee685f6d19a6cc3b0bf02e69eb5dea11a2aeb601.tar.bz2
Merge "Set gralloc consumer usage bits in SurfaceMediaSource."
Diffstat (limited to 'media')
-rw-r--r--media/libstagefright/SurfaceMediaSource.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/media/libstagefright/SurfaceMediaSource.cpp b/media/libstagefright/SurfaceMediaSource.cpp
index efc71a8..5d72a05 100644
--- a/media/libstagefright/SurfaceMediaSource.cpp
+++ b/media/libstagefright/SurfaceMediaSource.cpp
@@ -55,6 +55,8 @@ SurfaceMediaSource::SurfaceMediaSource(uint32_t bufferWidth, uint32_t bufferHeig
mBufferQueue = new BufferQueue(true, MIN_UNDEQUEUED_BUFFERS);
mBufferQueue->setDefaultBufferSize(bufferWidth, bufferHeight);
mBufferQueue->setSynchronousMode(true);
+ mBufferQueue->setConsumerUsageBits(GRALLOC_USAGE_HW_VIDEO_ENCODER |
+ GRALLOC_USAGE_HW_TEXTURE);
sp<ISurfaceComposer> composer(ComposerService::getComposerService());