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

Unified Diff: content/renderer/media/android/media_player_renderer_client.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 | « no previous file | media/base/null_video_sink.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/media/android/media_player_renderer_client.cc
diff --git a/content/renderer/media/android/media_player_renderer_client.cc b/content/renderer/media/android/media_player_renderer_client.cc
index 19b3c68570db15044c896b4b9f9182e45950457d..09c298dc66aebe7b013df9bcce1281401eed2f49 100644
--- a/content/renderer/media/android/media_player_renderer_client.cc
+++ b/content/renderer/media/android/media_player_renderer_client.cc
@@ -115,8 +115,7 @@ bool MediaPlayerRendererClient::HasVideo() {
void MediaPlayerRendererClient::OnFrameAvailable() {
DCHECK(compositor_task_runner_->BelongsToCurrentThread());
- // TODO(tguilbert): Force the repaint of the same frame. See crbug.com/636002.
- sink_->PaintSingleFrame(stream_texture_wrapper_->GetCurrentFrame());
+ sink_->PaintSingleFrame(stream_texture_wrapper_->GetCurrentFrame(), true);
}
void MediaPlayerRendererClient::OnError(media::PipelineStatus status) {
« no previous file with comments | « no previous file | media/base/null_video_sink.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698