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 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
75 // Support EME/L1 with hole-punching. | 75 // Support EME/L1 with hole-punching. |
76 cl->AppendSwitch(switches::kMediaDrmEnableNonCompositing); | 76 cl->AppendSwitch(switches::kMediaDrmEnableNonCompositing); |
77 #endif | 77 #endif |
78 | 78 |
79 // WebRTC hardware decoding is not supported, internal bug 15075307 | 79 // WebRTC hardware decoding is not supported, internal bug 15075307 |
80 cl->AppendSwitch(switches::kDisableWebRtcHWDecoding); | 80 cl->AppendSwitch(switches::kDisableWebRtcHWDecoding); |
81 | 81 |
82 // This is needed for sharing textures across the different GL threads. | 82 // This is needed for sharing textures across the different GL threads. |
83 cl->AppendSwitch(switches::kEnableThreadedTextureMailboxes); | 83 cl->AppendSwitch(switches::kEnableThreadedTextureMailboxes); |
84 | 84 |
| 85 // FIXME: A couple of tests fail with the blink scheduler enabled. |
| 86 // See: crbug.com/444572 |
| 87 cl->AppendSwitch(switches::kDisableBlinkScheduler); |
| 88 |
85 return false; | 89 return false; |
86 } | 90 } |
87 | 91 |
88 void AwMainDelegate::PreSandboxStartup() { | 92 void AwMainDelegate::PreSandboxStartup() { |
89 // TODO(torne): When we have a separate renderer process, we need to handle | 93 // TODO(torne): When we have a separate renderer process, we need to handle |
90 // being passed open FDs for the resource paks here. | 94 // being passed open FDs for the resource paks here. |
91 #if defined(ARCH_CPU_ARM_FAMILY) | 95 #if defined(ARCH_CPU_ARM_FAMILY) |
92 // Create an instance of the CPU class to parse /proc/cpuinfo and cache | 96 // Create an instance of the CPU class to parse /proc/cpuinfo and cache |
93 // cpu_brand info. | 97 // cpu_brand info. |
94 base::CPU cpu_info; | 98 base::CPU cpu_info; |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
154 | 158 |
155 #if defined(VIDEO_HOLE) | 159 #if defined(VIDEO_HOLE) |
156 content::ExternalVideoSurfaceContainer* | 160 content::ExternalVideoSurfaceContainer* |
157 AwMainDelegate::CreateExternalVideoSurfaceContainer( | 161 AwMainDelegate::CreateExternalVideoSurfaceContainer( |
158 content::WebContents* web_contents) { | 162 content::WebContents* web_contents) { |
159 return new ExternalVideoSurfaceContainerImpl(web_contents); | 163 return new ExternalVideoSurfaceContainerImpl(web_contents); |
160 } | 164 } |
161 #endif | 165 #endif |
162 | 166 |
163 } // namespace android_webview | 167 } // namespace android_webview |
OLD | NEW |