summaryrefslogtreecommitdiffstats
path: root/android_webview
diff options
context:
space:
mode:
authorIgnacio Solla <igsolla@chromium.org>2014-09-26 14:29:33 +0100
committerIgnacio Solla <igsolla@chromium.org>2014-09-26 13:30:29 +0000
commit66568f82b7c9fd749b23ef5789803437ba7b7672 (patch)
treeda3ca97ed6f166561dc2acca8a7037333de2c699 /android_webview
parent71a8220d8a07192609030cf5de67870b814d47a5 (diff)
downloadchromium_src-66568f82b7c9fd749b23ef5789803437ba7b7672.zip
chromium_src-66568f82b7c9fd749b23ef5789803437ba7b7672.tar.gz
chromium_src-66568f82b7c9fd749b23ef5789803437ba7b7672.tar.bz2
Cherry-pick: [WebView] Create PowerSaveBlocker for fullscreen video.
BUG=417623 Review URL: https://codereview.chromium.org/606633002 Cr-Commit-Position: refs/heads/master@{#296738} (cherry picked from commit ec9b8860c670221d8bfcfbe628f0597a5b6bd4f6) Review URL: https://codereview.chromium.org/604503003 Cr-Commit-Position: refs/branch-heads/2125@{#496} Cr-Branched-From: b68026d94bda36dd106a3d91a098719f952a9477-refs/heads/master@{#290040}
Diffstat (limited to 'android_webview')
-rw-r--r--android_webview/lib/main/aw_main_delegate.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/android_webview/lib/main/aw_main_delegate.cc b/android_webview/lib/main/aw_main_delegate.cc
index f6ecd07..1bceb4b 100644
--- a/android_webview/lib/main/aw_main_delegate.cc
+++ b/android_webview/lib/main/aw_main_delegate.cc
@@ -79,6 +79,12 @@ bool AwMainDelegate::BasicStartupComplete(int* exit_code) {
// File system API not supported (requires some new API; internal bug 6930981)
cl->AppendSwitch(switches::kDisableFileSystem);
+ // For fullscreen video we create a new container view to host the
+ // WebContents, ie. the FullscreenView. As a result we cannot reuse the
+ // embedded video blocker attached to the old container view, so we create a
+ // new blocker instead attached to the ContentVideoView.
+ cl->AppendSwitch(switches::kEnableContentVideoViewPowerSaveBlocker);
+
#if defined(VIDEO_HOLE)
// Support EME/L1 with hole-punching.
cl->AppendSwitch(switches::kMediaDrmEnableNonCompositing);