summaryrefslogtreecommitdiffstats
path: root/include
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
commit1765d6e0c962d2b89897c0278f969084f632d181 (patch)
tree236c1712a02b293093d658a3248804ebaf4f3786 /include
parent55f4bc5c3d1acfaa735b8b19cf34b6b68f6cfcca (diff)
downloadframeworks_av-1765d6e0c962d2b89897c0278f969084f632d181.zip
frameworks_av-1765d6e0c962d2b89897c0278f969084f632d181.tar.gz
frameworks_av-1765d6e0c962d2b89897c0278f969084f632d181.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')
-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);