Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(259)

Unified Diff: content/common/gpu/media/omx_video_decode_accelerator.h

Issue 7461154: Support queuing input buffers when OMX's buffer list is exhausted. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: content/common/gpu/media/omx_video_decode_accelerator.h
diff --git a/content/common/gpu/media/omx_video_decode_accelerator.h b/content/common/gpu/media/omx_video_decode_accelerator.h
index 4b57c828e003ee39dd8f1bd3b9b931c7301c7bdb..ff681139e1d384be58176c4c4ef114f6f5243c6c 100644
--- a/content/common/gpu/media/omx_video_decode_accelerator.h
+++ b/content/common/gpu/media/omx_video_decode_accelerator.h
@@ -137,6 +137,9 @@ class OmxVideoDecodeAccelerator : public media::VideoDecodeAccelerator {
void OnOutputPortDisabled();
void OnOutputPortEnabled();
+ // Decode bitstream buffers that were queued (see queued_bitstream_buffers_).
+ void DecodeQueuedBitstreamBuffers();
+
// IL-client state.
OMX_STATETYPE client_state_;
// See comment on CurrentStateChange above.
@@ -175,10 +178,7 @@ class OmxVideoDecodeAccelerator : public media::VideoDecodeAccelerator {
std::set<OMX_BUFFERHEADERTYPE*> fake_output_buffers_;
// Encoded bitstream buffers awaiting decode, queued while the decoder was
- // Resetting and thus unable to accept them. This will be empty most of the
- // time, is populated when Decode()'s are received between Reset() is called
- // and NotifyResetDone() is sent, and is drained right before
- // NotifyResetDone() is sent.
+ // unable to accept them.
typedef std::vector<media::BitstreamBuffer> BitstreamBufferList;
BitstreamBufferList queued_bitstream_buffers_;
// Available output picture buffers released during Reset() and awaiting

Powered by Google App Engine
This is Rietveld 408576698