summaryrefslogtreecommitdiffstats
path: root/include/media
diff options
context:
space:
mode:
authorJamie Gennis <jgennis@google.com>2011-10-25 14:50:16 -0700
committerJamie Gennis <jgennis@google.com>2011-10-25 18:35:02 -0700
commitc0e4293794e9658da1ce9849a42c66ce19ef5f07 (patch)
treeb898e7f88b43b44cbac4f673471015c676b8d08b /include/media
parentbe25d5b05639c8475b7faf312959923db86efa5d (diff)
downloadframeworks_base-c0e4293794e9658da1ce9849a42c66ce19ef5f07.zip
frameworks_base-c0e4293794e9658da1ce9849a42c66ce19ef5f07.tar.gz
frameworks_base-c0e4293794e9658da1ce9849a42c66ce19ef5f07.tar.bz2
Stagefright: push blank buffers when tearing down
This change makes OMXCodec push RGB 565 buffers filled with black to an ANativeWindow when tearing down after decoding to protected gralloc buffers. This allows the OMX tear down to zero out any protected buffers that were used without the possibility that the buffer is still being used by SurfaceFlinger or HWComposer. Bug: 5483222 Change-Id: I8acedd81a7bb67dfdc2fd15733e3375b6ce8d560
Diffstat (limited to 'include/media')
-rw-r--r--include/media/stagefright/OMXCodec.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/media/stagefright/OMXCodec.h b/include/media/stagefright/OMXCodec.h
index 0d5a726..c21d19d 100644
--- a/include/media/stagefright/OMXCodec.h
+++ b/include/media/stagefright/OMXCodec.h
@@ -277,6 +277,7 @@ private:
status_t queueBufferToNativeWindow(BufferInfo *info);
status_t cancelBufferToNativeWindow(BufferInfo *info);
BufferInfo* dequeueBufferFromNativeWindow();
+ status_t pushBlankBuffersToNativeWindow();
status_t freeBuffersOnPort(
OMX_U32 portIndex, bool onlyThoseWeOwn = false);