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

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

Issue 562173003: rendering_helper - Drop frames if the decoder cannot catch up. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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/rendering_helper.h
diff --git a/content/common/gpu/media/rendering_helper.h b/content/common/gpu/media/rendering_helper.h
index 1ebc91bf1b65cc472a98320894666101eab3189b..6db542f03a633d4edc4d2406790053a90770500c 100644
--- a/content/common/gpu/media/rendering_helper.h
+++ b/content/common/gpu/media/rendering_helper.h
@@ -134,6 +134,9 @@ class RenderingHelper {
// True if there won't be any new video frames comming.
bool is_flushing;
+ // The number of frames need to be dropped to catch up the rendering.
+ int frames_to_drop;
+
// The video frames pending for rendering.
std::queue<scoped_refptr<VideoFrameTexture> > pending_frames;
« no previous file with comments | « no previous file | content/common/gpu/media/rendering_helper.cc » ('j') | content/common/gpu/media/rendering_helper.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698