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

Unified Diff: media/blink/video_frame_compositor.h

Issue 2239163002: Add "repaint" option to PaintSingleFrame (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@media_player_simplified
Patch Set: Created 4 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
« no previous file with comments | « media/base/video_renderer_sink.h ('k') | media/blink/video_frame_compositor.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/blink/video_frame_compositor.h
diff --git a/media/blink/video_frame_compositor.h b/media/blink/video_frame_compositor.h
index 68a4d79fe173a3798a93ecf915a6ead03e70fad3..9bb79fd056a9651221652435bc2ca29103973661 100644
--- a/media/blink/video_frame_compositor.h
+++ b/media/blink/video_frame_compositor.h
@@ -75,7 +75,8 @@ class MEDIA_BLINK_EXPORT VideoFrameCompositor
// same thread (typically the media thread).
void Start(RenderCallback* callback) override;
void Stop() override;
- void PaintSingleFrame(const scoped_refptr<VideoFrame>& frame) override;
+ void PaintSingleFrame(const scoped_refptr<VideoFrame>& frame,
+ bool repaint_duplicate_frame = false) override;
// Returns |current_frame_| if |client_| is set. If no |client_| is set,
// |is_background_rendering_| is true, and |callback_| is set, it requests a
@@ -116,7 +117,8 @@ class MEDIA_BLINK_EXPORT VideoFrameCompositor
void OnRendererStateUpdate(bool new_state);
// Handles setting of |current_frame_|.
- bool ProcessNewFrame(const scoped_refptr<VideoFrame>& frame);
+ bool ProcessNewFrame(const scoped_refptr<VideoFrame>& frame,
+ bool repaint_duplicate_frame);
// Called by |background_rendering_timer_| when enough time elapses where we
// haven't seen a Render() call.
« no previous file with comments | « media/base/video_renderer_sink.h ('k') | media/blink/video_frame_compositor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698