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

Unified Diff: android_webview/lib/main/aw_main_delegate.cc

Issue 606633002: [WebView] Create PowerSaveBlocker for fullscreen video. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: alphabetize Created 6 years, 3 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 | content/browser/android/content_video_view.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: android_webview/lib/main/aw_main_delegate.cc
diff --git a/android_webview/lib/main/aw_main_delegate.cc b/android_webview/lib/main/aw_main_delegate.cc
index 4d548e26c5813e49fe2811e509ba949b492df5af..4d3ede1badc7e184315d7c68391fb26dba9a6599 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);
« no previous file with comments | « no previous file | content/browser/android/content_video_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698