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

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
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..3f989c30a7fd34636fe5f8f8d542db17eb6c7119 100644
--- a/content/common/gpu/media/omx_video_decode_accelerator.h
+++ b/content/common/gpu/media/omx_video_decode_accelerator.h
@@ -173,6 +173,15 @@ 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_;
+ std::vector<int> queued_picture_buffer_ids_;
vrk (LEFT CHROMIUM) 2011/07/29 17:06:44 nit: Add comment to explain queued picture buffers
Ami GONE FROM CHROMIUM 2011/07/29 17:17:09 Done.
+
// To expose client callbacks from VideoDecodeAccelerator.
// NOTE: all calls to this object *MUST* be executed in message_loop_.
Client* client_;

Powered by Google App Engine
This is Rietveld 408576698