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

Unified Diff: media/base/null_video_sink.cc

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/null_video_sink.h ('k') | media/base/null_video_sink_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/base/null_video_sink.cc
diff --git a/media/base/null_video_sink.cc b/media/base/null_video_sink.cc
index f390986394549d7ad06749257995ce1e377bff58..6e03e53eaa0fe69428ef2c2f43340754563b0983 100644
--- a/media/base/null_video_sink.cc
+++ b/media/base/null_video_sink.cc
@@ -88,8 +88,9 @@ void NullVideoSink::CallRender() {
delay);
}
-void NullVideoSink::PaintSingleFrame(const scoped_refptr<VideoFrame>& frame) {
- if (frame == last_frame_)
+void NullVideoSink::PaintSingleFrame(const scoped_refptr<VideoFrame>& frame,
+ bool repaint_duplicate_frame) {
+ if (!repaint_duplicate_frame && frame == last_frame_)
return;
last_frame_ = frame;
new_frame_cb_.Run(frame);
« no previous file with comments | « media/base/null_video_sink.h ('k') | media/base/null_video_sink_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698