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

Unified Diff: content/renderer/media/android/webmediaplayer_android.cc

Issue 281523003: Fix the flaky test, ExternalVideoSurfaceContainerTest#testEnableVideoOverlayForEmbeddedVideo. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 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: content/renderer/media/android/webmediaplayer_android.cc
diff --git a/content/renderer/media/android/webmediaplayer_android.cc b/content/renderer/media/android/webmediaplayer_android.cc
index 9c230c1cdd902151860d1ac8e1404b4f10ae86d2..318668dabbe8448eacbc3af03e6ca356d8c6b378 100644
--- a/content/renderer/media/android/webmediaplayer_android.cc
+++ b/content/renderer/media/android/webmediaplayer_android.cc
@@ -128,13 +128,14 @@ WebMediaPlayerAndroid::WebMediaPlayerAndroid(
player_id_ = manager_->RegisterMediaPlayer(this);
#if defined(VIDEO_HOLE)
- if (manager_->ShouldUseVideoOverlayForEmbeddedEncryptedVideo()) {
+ force_use_overlay_embedded_video_ = CommandLine::ForCurrentProcess()->
+ HasSwitch(switches::kForceUseOverlayEmbeddedVideo);
+ if (force_use_overlay_embedded_video_ ||
+ manager_->ShouldUseVideoOverlayForEmbeddedEncryptedVideo()) {
// Defer stream texture creation until we are sure it's necessary.
needs_establish_peer_ = false;
current_frame_ = VideoFrame::CreateBlackFrame(gfx::Size(1, 1));
}
- force_use_overlay_embedded_video_ = CommandLine::ForCurrentProcess()->
- HasSwitch(switches::kForceUseOverlayEmbeddedVideo);
#endif // defined(VIDEO_HOLE)
TryCreateStreamTextureProxyIfNeeded();
}
« 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