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

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

Issue 753713002: Remove reliance on VideoToolbox frame ordering. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@vt_pic_order
Patch Set: Fix pointer dereference. Created 6 years, 1 month 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/vt_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/vt_video_decode_accelerator.h
diff --git a/content/common/gpu/media/vt_video_decode_accelerator.h b/content/common/gpu/media/vt_video_decode_accelerator.h
index 327ab590e2b74d134d94ac61862a5596dea2c49d..c518b8f40c9cb0eb9963666daba451323521d7ce 100644
--- a/content/common/gpu/media/vt_video_decode_accelerator.h
+++ b/content/common/gpu/media/vt_video_decode_accelerator.h
@@ -173,9 +173,9 @@ class VTVideoDecodeAccelerator : public media::VideoDecodeAccelerator {
// Size of assigned picture buffers.
gfx::Size picture_size_;
- // Queue of frames that have not yet been decoded; maintains ownership of the
- // Frame objects while they flow through VideoToolbox.
- std::queue<linked_ptr<Frame>> pending_frames_;
+ // Frames that have not yet been decoded, keyed by bitstream ID; maintains
+ // ownership of Frame objects while they flow through VideoToolbox.
+ std::map<int32_t, linked_ptr<Frame>> pending_frames_;
// Set of assigned bitstream IDs, so that Destroy() can release them all.
std::set<int32_t> assigned_bitstream_ids_;
« no previous file with comments | « no previous file | content/common/gpu/media/vt_video_decode_accelerator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698