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

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

Issue 465293002: rendering_helper - Wait for rendering before resetting the decoder. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebased to TOT Created 6 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/rendering_helper.h
diff --git a/content/common/gpu/media/rendering_helper.h b/content/common/gpu/media/rendering_helper.h
index 6b0013f5b93b1dcad4eb313bd648b857cf867860..1ebc91bf1b65cc472a98320894666101eab3189b 100644
--- a/content/common/gpu/media/rendering_helper.h
+++ b/content/common/gpu/media/rendering_helper.h
@@ -100,8 +100,9 @@ class RenderingHelper {
void QueueVideoFrame(size_t window_id,
scoped_refptr<VideoFrameTexture> video_frame);
- // Drops all the pending video frames of the specified window.
- void DropPendingFrames(size_t window_id);
+ // Flushes the pending frames. Notify the rendering_helper there won't be
+ // more video frames.
+ void Flush(size_t window_id);
// Delete |texture_id|.
void DeleteTexture(uint32 texture_id);
@@ -130,6 +131,9 @@ class RenderingHelper {
// timer-driven playback.
bool last_frame_rendered;
+ // True if there won't be any new video frames comming.
+ bool is_flushing;
+
// The video frames pending for rendering.
std::queue<scoped_refptr<VideoFrameTexture> > pending_frames;

Powered by Google App Engine
This is Rietveld 408576698