| 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 <memory> | 7 #include <memory> |
| 8 | 8 |
| 9 #include "android_webview/browser/aw_content_browser_client.h" | 9 #include "android_webview/browser/aw_content_browser_client.h" |
| 10 #include "android_webview/browser/browser_view_renderer.h" | 10 #include "android_webview/browser/browser_view_renderer.h" |
| (...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 134 kV8SnapshotDataDescriptor64, | 134 kV8SnapshotDataDescriptor64, |
| 135 gin::V8Initializer::GetSnapshotFilePath(false).AsUTF8Unsafe()); | 135 gin::V8Initializer::GetSnapshotFilePath(false).AsUTF8Unsafe()); |
| 136 } | 136 } |
| 137 | 137 |
| 138 if (cl->HasSwitch(switches::kWebViewSandboxedRenderer)) { | 138 if (cl->HasSwitch(switches::kWebViewSandboxedRenderer)) { |
| 139 cl->AppendSwitch(switches::kInProcessGPU); | 139 cl->AppendSwitch(switches::kInProcessGPU); |
| 140 cl->AppendSwitchASCII(switches::kRendererProcessLimit, "1"); | 140 cl->AppendSwitchASCII(switches::kRendererProcessLimit, "1"); |
| 141 cl->AppendSwitch(switches::kDisableRendererBackgrounding); | 141 cl->AppendSwitch(switches::kDisableRendererBackgrounding); |
| 142 } | 142 } |
| 143 | 143 |
| 144 // TODO(liberato, watk): Reenable after resolving fullscreen test failures. | |
| 145 // See http://crbug.com/597495 | |
| 146 cl->AppendSwitch(switches::kDisableUnifiedMediaPipeline); | |
| 147 | |
| 148 return false; | 144 return false; |
| 149 } | 145 } |
| 150 | 146 |
| 151 void AwMainDelegate::PreSandboxStartup() { | 147 void AwMainDelegate::PreSandboxStartup() { |
| 152 #if defined(ARCH_CPU_ARM_FAMILY) | 148 #if defined(ARCH_CPU_ARM_FAMILY) |
| 153 // Create an instance of the CPU class to parse /proc/cpuinfo and cache | 149 // Create an instance of the CPU class to parse /proc/cpuinfo and cache |
| 154 // cpu_brand info. | 150 // cpu_brand info. |
| 155 base::CPU cpu_info; | 151 base::CPU cpu_info; |
| 156 #endif | 152 #endif |
| 157 | 153 |
| (...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 267 #if defined(VIDEO_HOLE) | 263 #if defined(VIDEO_HOLE) |
| 268 content::ExternalVideoSurfaceContainer* | 264 content::ExternalVideoSurfaceContainer* |
| 269 AwMainDelegate::CreateExternalVideoSurfaceContainer( | 265 AwMainDelegate::CreateExternalVideoSurfaceContainer( |
| 270 content::WebContents* web_contents) { | 266 content::WebContents* web_contents) { |
| 271 return external_video_surface::ExternalVideoSurfaceContainerImpl::Create( | 267 return external_video_surface::ExternalVideoSurfaceContainerImpl::Create( |
| 272 web_contents); | 268 web_contents); |
| 273 } | 269 } |
| 274 #endif | 270 #endif |
| 275 | 271 |
| 276 } // namespace android_webview | 272 } // namespace android_webview |
| OLD | NEW |