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; |