| 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/common/aw_descriptors.h" | 10 #include "android_webview/common/aw_descriptors.h" |
| (...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 133 kV8SnapshotDataDescriptor64, | 133 kV8SnapshotDataDescriptor64, |
| 134 gin::V8Initializer::GetSnapshotFilePath(false).AsUTF8Unsafe()); | 134 gin::V8Initializer::GetSnapshotFilePath(false).AsUTF8Unsafe()); |
| 135 } | 135 } |
| 136 | 136 |
| 137 if (cl->HasSwitch(switches::kWebViewSandboxedRenderer)) { | 137 if (cl->HasSwitch(switches::kWebViewSandboxedRenderer)) { |
| 138 cl->AppendSwitch(switches::kInProcessGPU); | 138 cl->AppendSwitch(switches::kInProcessGPU); |
| 139 cl->AppendSwitchASCII(switches::kRendererProcessLimit, "1"); | 139 cl->AppendSwitchASCII(switches::kRendererProcessLimit, "1"); |
| 140 cl->AppendSwitch(switches::kDisableRendererBackgrounding); | 140 cl->AppendSwitch(switches::kDisableRendererBackgrounding); |
| 141 } | 141 } |
| 142 | 142 |
| 143 // TODO(liberato, watk): Reenable after resolving fullscreen test failures. |
| 144 // See http://crbug.com/597495 |
| 145 cl->AppendSwitch(switches::kDisableUnifiedMediaPipeline); |
| 146 |
| 143 return false; | 147 return false; |
| 144 } | 148 } |
| 145 | 149 |
| 146 void AwMainDelegate::PreSandboxStartup() { | 150 void AwMainDelegate::PreSandboxStartup() { |
| 147 #if defined(ARCH_CPU_ARM_FAMILY) | 151 #if defined(ARCH_CPU_ARM_FAMILY) |
| 148 // Create an instance of the CPU class to parse /proc/cpuinfo and cache | 152 // Create an instance of the CPU class to parse /proc/cpuinfo and cache |
| 149 // cpu_brand info. | 153 // cpu_brand info. |
| 150 base::CPU cpu_info; | 154 base::CPU cpu_info; |
| 151 #endif | 155 #endif |
| 152 | 156 |
| (...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 249 #if defined(VIDEO_HOLE) | 253 #if defined(VIDEO_HOLE) |
| 250 content::ExternalVideoSurfaceContainer* | 254 content::ExternalVideoSurfaceContainer* |
| 251 AwMainDelegate::CreateExternalVideoSurfaceContainer( | 255 AwMainDelegate::CreateExternalVideoSurfaceContainer( |
| 252 content::WebContents* web_contents) { | 256 content::WebContents* web_contents) { |
| 253 return external_video_surface::ExternalVideoSurfaceContainerImpl::Create( | 257 return external_video_surface::ExternalVideoSurfaceContainerImpl::Create( |
| 254 web_contents); | 258 web_contents); |
| 255 } | 259 } |
| 256 #endif | 260 #endif |
| 257 | 261 |
| 258 } // namespace android_webview | 262 } // namespace android_webview |
| OLD | NEW |