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/crash_reporter/aw_microdump_crash_reporter.h" | 10 #include "android_webview/crash_reporter/aw_microdump_crash_reporter.h" |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
72 // Not yet supported in single-process mode. | 72 // Not yet supported in single-process mode. |
73 cl->AppendSwitch(switches::kDisableSharedWorkers); | 73 cl->AppendSwitch(switches::kDisableSharedWorkers); |
74 | 74 |
75 // File system API not supported (requires some new API; internal bug 6930981) | 75 // File system API not supported (requires some new API; internal bug 6930981) |
76 cl->AppendSwitch(switches::kDisableFileSystem); | 76 cl->AppendSwitch(switches::kDisableFileSystem); |
77 | 77 |
78 // Web Notification API and the Push API are not supported (crbug.com/434712) | 78 // Web Notification API and the Push API are not supported (crbug.com/434712) |
79 cl->AppendSwitch(switches::kDisableNotifications); | 79 cl->AppendSwitch(switches::kDisableNotifications); |
80 | 80 |
81 #if defined(VIDEO_HOLE) | 81 #if defined(VIDEO_HOLE) |
82 // Support EME/L1 with hole-punching. | 82 // Support EME with hole-punching. For example, Widevine L1. |
83 cl->AppendSwitch(switches::kMediaDrmEnableNonCompositing); | 83 cl->AppendSwitch(switches::kMediaDrmEnableNonCompositing); |
| 84 cl->AppendSwitch(switches::kDisableEncryptedMedia); |
84 #endif | 85 #endif |
85 | 86 |
86 // WebRTC hardware decoding is not supported, internal bug 15075307 | 87 // WebRTC hardware decoding is not supported, internal bug 15075307 |
87 cl->AppendSwitch(switches::kDisableWebRtcHWDecoding); | 88 cl->AppendSwitch(switches::kDisableWebRtcHWDecoding); |
88 | 89 |
89 // This is needed for sharing textures across the different GL threads. | 90 // This is needed for sharing textures across the different GL threads. |
90 cl->AppendSwitch(switches::kEnableThreadedTextureMailboxes); | 91 cl->AppendSwitch(switches::kEnableThreadedTextureMailboxes); |
91 | 92 |
92 // This is needed to be able to mmap the V8 snapshot and ICU data file | 93 // This is needed to be able to mmap the V8 snapshot and ICU data file |
93 // directly from the WebView .apk. | 94 // directly from the WebView .apk. |
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
194 | 195 |
195 #if defined(VIDEO_HOLE) | 196 #if defined(VIDEO_HOLE) |
196 content::ExternalVideoSurfaceContainer* | 197 content::ExternalVideoSurfaceContainer* |
197 AwMainDelegate::CreateExternalVideoSurfaceContainer( | 198 AwMainDelegate::CreateExternalVideoSurfaceContainer( |
198 content::WebContents* web_contents) { | 199 content::WebContents* web_contents) { |
199 return new ExternalVideoSurfaceContainerImpl(web_contents); | 200 return new ExternalVideoSurfaceContainerImpl(web_contents); |
200 } | 201 } |
201 #endif | 202 #endif |
202 | 203 |
203 } // namespace android_webview | 204 } // namespace android_webview |
OLD | NEW |