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

Unified Diff: chromecast/browser/media/cast_renderer.cc

Issue 2257873004: [Chromecast] Set all video to opaque (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromecast/browser/media/cast_renderer.cc
diff --git a/chromecast/browser/media/cast_renderer.cc b/chromecast/browser/media/cast_renderer.cc
index a3cc8f5ae9cf0f7710c9de202cd0a45603d885c4..c6f3ad15d8dba0c269cb5ed8774605d895a37048 100644
--- a/chromecast/browser/media/cast_renderer.cc
+++ b/chromecast/browser/media/cast_renderer.cc
@@ -143,6 +143,11 @@ void CastRenderer::Initialize(
client_ = client;
init_cb.Run(::media::PIPELINE_OK);
+
+ if (video_stream) {
+ // Force compositor to treat video as opaque (needed for overlay codepath).
+ OnVideoOpacityChange(true);
+ }
}
void CastRenderer::SetCdm(::media::CdmContext* cdm_context,
@@ -239,6 +244,7 @@ void CastRenderer::OnVideoNaturalSizeChange(const gfx::Size& size) {
void CastRenderer::OnVideoOpacityChange(bool opaque) {
DCHECK(task_runner_->BelongsToCurrentThread());
+ DCHECK(opaque);
client_->OnVideoOpacityChange(opaque);
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698