OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "android_webview/lib/main/aw_main_delegate.h" | 5 #include "android_webview/lib/main/aw_main_delegate.h" |
6 | 6 |
7 #include "android_webview/browser/aw_content_browser_client.h" | 7 #include "android_webview/browser/aw_content_browser_client.h" |
8 #include "android_webview/browser/browser_view_renderer.h" | 8 #include "android_webview/browser/browser_view_renderer.h" |
9 #include "android_webview/browser/gpu_memory_buffer_factory_impl.h" | 9 #include "android_webview/browser/gpu_memory_buffer_factory_impl.h" |
10 #include "android_webview/browser/scoped_allow_wait_for_legacy_web_view_api.h" | 10 #include "android_webview/browser/scoped_allow_wait_for_legacy_web_view_api.h" |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
72 | 72 |
73 // WebView uses the Android system's scrollbars and overscroll glow. | 73 // WebView uses the Android system's scrollbars and overscroll glow. |
74 cl->AppendSwitch(switches::kDisableOverscrollEdgeEffect); | 74 cl->AppendSwitch(switches::kDisableOverscrollEdgeEffect); |
75 | 75 |
76 // Not yet supported in single-process mode. | 76 // Not yet supported in single-process mode. |
77 cl->AppendSwitch(switches::kDisableSharedWorkers); | 77 cl->AppendSwitch(switches::kDisableSharedWorkers); |
78 | 78 |
79 // File system API not supported (requires some new API; internal bug 6930981) | 79 // File system API not supported (requires some new API; internal bug 6930981) |
80 cl->AppendSwitch(switches::kDisableFileSystem); | 80 cl->AppendSwitch(switches::kDisableFileSystem); |
81 | 81 |
| 82 // For fullscreen video we create a new container view to host the |
| 83 // WebContents, ie. the FullscreenView. As a result we cannot reuse the |
| 84 // embedded video blocker attached to the old container view, so we create a |
| 85 // new blocker instead attached to the ContentVideoView. |
| 86 cl->AppendSwitch(switches::kEnableContentVideoViewPowerSaveBlocker); |
| 87 |
82 #if defined(VIDEO_HOLE) | 88 #if defined(VIDEO_HOLE) |
83 // Support EME/L1 with hole-punching. | 89 // Support EME/L1 with hole-punching. |
84 cl->AppendSwitch(switches::kMediaDrmEnableNonCompositing); | 90 cl->AppendSwitch(switches::kMediaDrmEnableNonCompositing); |
85 #endif | 91 #endif |
86 | 92 |
87 // WebRTC hardware decoding is not supported, internal bug 15075307 | 93 // WebRTC hardware decoding is not supported, internal bug 15075307 |
88 cl->AppendSwitch(switches::kDisableWebRtcHWDecoding); | 94 cl->AppendSwitch(switches::kDisableWebRtcHWDecoding); |
89 | 95 |
90 return false; | 96 return false; |
91 } | 97 } |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
159 | 165 |
160 #if defined(VIDEO_HOLE) | 166 #if defined(VIDEO_HOLE) |
161 content::ExternalVideoSurfaceContainer* | 167 content::ExternalVideoSurfaceContainer* |
162 AwMainDelegate::CreateExternalVideoSurfaceContainer( | 168 AwMainDelegate::CreateExternalVideoSurfaceContainer( |
163 content::WebContents* web_contents) { | 169 content::WebContents* web_contents) { |
164 return new ExternalVideoSurfaceContainerImpl(web_contents); | 170 return new ExternalVideoSurfaceContainerImpl(web_contents); |
165 } | 171 } |
166 #endif | 172 #endif |
167 | 173 |
168 } // namespace android_webview | 174 } // namespace android_webview |
OLD | NEW |