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

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

Issue 7524032: Added support for Decode() calls during Reset(). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 9 years, 5 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
« no previous file with comments | « no previous file | content/common/gpu/media/omx_video_decode_accelerator.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 f48d7e1c489e134e60df93beaabf2a010df6fe9d..39a2e9443642361668423f47479a159de9370d06 100644
--- a/content/common/gpu/media/omx_video_decode_accelerator.h
+++ b/content/common/gpu/media/omx_video_decode_accelerator.h
@@ -173,6 +173,18 @@ class OmxVideoDecodeAccelerator : public media::VideoDecodeAccelerator {
// TODO(fischman): do away with this madness.
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.
+ typedef std::vector<media::BitstreamBuffer> BitstreamBufferList;
+ BitstreamBufferList queued_bitstream_buffers_;
+ // Available output picture buffers released during Reset() and awaiting
+ // re-use once Reset is done. Is empty most of the time and drained right
+ // before NotifyResetDone is sent.
+ std::vector<int> queued_picture_buffer_ids_;
+
// To expose client callbacks from VideoDecodeAccelerator.
// NOTE: all calls to this object *MUST* be executed in message_loop_.
Client* client_;
« no previous file with comments | « no previous file | content/common/gpu/media/omx_video_decode_accelerator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698