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 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 #if defined(VIDEO_HOLE) | 78 #if defined(VIDEO_HOLE) |
79 // Support EME/L1 with hole-punching. | 79 // Support EME/L1 with hole-punching. |
80 cl->AppendSwitch(switches::kMediaDrmEnableNonCompositing); | 80 cl->AppendSwitch(switches::kMediaDrmEnableNonCompositing); |
81 #endif | 81 #endif |
82 | 82 |
83 // WebRTC hardware decoding is not supported, internal bug 15075307 | 83 // WebRTC hardware decoding is not supported, internal bug 15075307 |
84 cl->AppendSwitch(switches::kDisableWebRtcHWDecoding); | 84 cl->AppendSwitch(switches::kDisableWebRtcHWDecoding); |
| 85 cl->AppendSwitch(switches::kDisableAcceleratedVideoDecode); |
85 | 86 |
86 // This is needed for sharing textures across the different GL threads. | 87 // This is needed for sharing textures across the different GL threads. |
87 cl->AppendSwitch(switches::kEnableThreadedTextureMailboxes); | 88 cl->AppendSwitch(switches::kEnableThreadedTextureMailboxes); |
88 | 89 |
89 // This is needed to be able to mmap the V8 snapshot and ICU data file | 90 // This is needed to be able to mmap the V8 snapshot and ICU data file |
90 // directly from the WebView .apk. | 91 // directly from the WebView .apk. |
91 // This needs to be here so that it gets to run before the code in | 92 // This needs to be here so that it gets to run before the code in |
92 // content_main_runner that reads these values tries to do so. | 93 // content_main_runner that reads these values tries to do so. |
93 // In multi-process mode this code would live in | 94 // In multi-process mode this code would live in |
94 // AwContentBrowserClient::GetAdditionalMappedFilesForChildProcess. | 95 // AwContentBrowserClient::GetAdditionalMappedFilesForChildProcess. |
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
191 | 192 |
192 #if defined(VIDEO_HOLE) | 193 #if defined(VIDEO_HOLE) |
193 content::ExternalVideoSurfaceContainer* | 194 content::ExternalVideoSurfaceContainer* |
194 AwMainDelegate::CreateExternalVideoSurfaceContainer( | 195 AwMainDelegate::CreateExternalVideoSurfaceContainer( |
195 content::WebContents* web_contents) { | 196 content::WebContents* web_contents) { |
196 return new ExternalVideoSurfaceContainerImpl(web_contents); | 197 return new ExternalVideoSurfaceContainerImpl(web_contents); |
197 } | 198 } |
198 #endif | 199 #endif |
199 | 200 |
200 } // namespace android_webview | 201 } // namespace android_webview |
OLD | NEW |