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/scoped_allow_wait_for_legacy_web_view_api.h" | 9 #include "android_webview/browser/scoped_allow_wait_for_legacy_web_view_api.h" |
10 #include "android_webview/lib/aw_browser_dependency_factory_impl.h" | 10 #include "android_webview/lib/aw_browser_dependency_factory_impl.h" |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
60 | 60 |
61 // WebView uses the Android system's scrollbars and overscroll glow. | 61 // WebView uses the Android system's scrollbars and overscroll glow. |
62 cl->AppendSwitch(switches::kDisableOverscrollEdgeEffect); | 62 cl->AppendSwitch(switches::kDisableOverscrollEdgeEffect); |
63 | 63 |
64 // Not yet supported in single-process mode. | 64 // Not yet supported in single-process mode. |
65 cl->AppendSwitch(switches::kDisableSharedWorkers); | 65 cl->AppendSwitch(switches::kDisableSharedWorkers); |
66 | 66 |
67 // File system API not supported (requires some new API; internal bug 6930981) | 67 // File system API not supported (requires some new API; internal bug 6930981) |
68 cl->AppendSwitch(switches::kDisableFileSystem); | 68 cl->AppendSwitch(switches::kDisableFileSystem); |
69 | 69 |
70 // For fullscreen video we create a new container view to host the | |
71 // WebContents, ie. the FullscreenView. As a result we cannot reuse the | |
72 // embedded video blocker attached to the old container view, so we create a | |
73 // new blocker instead attached to the ContentVideoView. | |
74 cl->AppendSwitch(switches::kEnableContentVideoViewPowerSaveBlocker); | |
75 | |
76 #if defined(VIDEO_HOLE) | 70 #if defined(VIDEO_HOLE) |
77 // Support EME/L1 with hole-punching. | 71 // Support EME/L1 with hole-punching. |
78 cl->AppendSwitch(switches::kMediaDrmEnableNonCompositing); | 72 cl->AppendSwitch(switches::kMediaDrmEnableNonCompositing); |
79 #endif | 73 #endif |
80 | 74 |
81 // WebRTC hardware decoding is not supported, internal bug 15075307 | 75 // WebRTC hardware decoding is not supported, internal bug 15075307 |
82 cl->AppendSwitch(switches::kDisableWebRtcHWDecoding); | 76 cl->AppendSwitch(switches::kDisableWebRtcHWDecoding); |
83 | 77 |
84 // This is needed for sharing textures across the different GL threads. | 78 // This is needed for sharing textures across the different GL threads. |
85 cl->AppendSwitch(switches::kEnableThreadedTextureMailboxes); | 79 cl->AppendSwitch(switches::kEnableThreadedTextureMailboxes); |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
155 | 149 |
156 #if defined(VIDEO_HOLE) | 150 #if defined(VIDEO_HOLE) |
157 content::ExternalVideoSurfaceContainer* | 151 content::ExternalVideoSurfaceContainer* |
158 AwMainDelegate::CreateExternalVideoSurfaceContainer( | 152 AwMainDelegate::CreateExternalVideoSurfaceContainer( |
159 content::WebContents* web_contents) { | 153 content::WebContents* web_contents) { |
160 return new ExternalVideoSurfaceContainerImpl(web_contents); | 154 return new ExternalVideoSurfaceContainerImpl(web_contents); |
161 } | 155 } |
162 #endif | 156 #endif |
163 | 157 |
164 } // namespace android_webview | 158 } // namespace android_webview |
OLD | NEW |