| 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 "content/shell/app/shell_main_delegate.h" | 5 #include "content/shell/app/shell_main_delegate.h" |
| 6 | 6 |
| 7 #include "base/base_switches.h" | 7 #include "base/base_switches.h" |
| 8 #include "base/command_line.h" | 8 #include "base/command_line.h" |
| 9 #include "base/cpu.h" | 9 #include "base/cpu.h" |
| 10 #include "base/files/file.h" | 10 #include "base/files/file.h" |
| (...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 159 #endif | 159 #endif |
| 160 | 160 |
| 161 if (!command_line.HasSwitch(switches::kStableReleaseMode)) { | 161 if (!command_line.HasSwitch(switches::kStableReleaseMode)) { |
| 162 command_line.AppendSwitch( | 162 command_line.AppendSwitch( |
| 163 switches::kEnableExperimentalWebPlatformFeatures); | 163 switches::kEnableExperimentalWebPlatformFeatures); |
| 164 } | 164 } |
| 165 | 165 |
| 166 if (!command_line.HasSwitch(switches::kEnableThreadedCompositing)) { | 166 if (!command_line.HasSwitch(switches::kEnableThreadedCompositing)) { |
| 167 command_line.AppendSwitch(switches::kDisableThreadedCompositing); | 167 command_line.AppendSwitch(switches::kDisableThreadedCompositing); |
| 168 command_line.AppendSwitch(cc::switches::kDisableThreadedAnimation); | 168 command_line.AppendSwitch(cc::switches::kDisableThreadedAnimation); |
| 169 command_line.AppendSwitch(switches::kDisableImplSidePainting); | |
| 170 // Text blobs are normally disabled when kDisableImplSidePainting is | 169 // Text blobs are normally disabled when kDisableImplSidePainting is |
| 171 // present to ensure correct LCD behavior, but for layout tests we want | 170 // present to ensure correct LCD behavior, but for layout tests we want |
| 172 // them on because LCD is always suppressed. | 171 // them on because LCD is always suppressed. |
| 173 command_line.AppendSwitch(switches::kForceTextBlobs); | 172 command_line.AppendSwitch(switches::kForceTextBlobs); |
| 174 } | 173 } |
| 175 | 174 |
| 176 if (!command_line.HasSwitch(switches::kEnableDisplayList2dCanvas)) { | 175 if (!command_line.HasSwitch(switches::kEnableDisplayList2dCanvas)) { |
| 177 command_line.AppendSwitch(switches::kDisableDisplayList2dCanvas); | 176 command_line.AppendSwitch(switches::kDisableDisplayList2dCanvas); |
| 178 } | 177 } |
| 179 | 178 |
| (...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 326 ContentRendererClient* ShellMainDelegate::CreateContentRendererClient() { | 325 ContentRendererClient* ShellMainDelegate::CreateContentRendererClient() { |
| 327 renderer_client_.reset(base::CommandLine::ForCurrentProcess()->HasSwitch( | 326 renderer_client_.reset(base::CommandLine::ForCurrentProcess()->HasSwitch( |
| 328 switches::kDumpRenderTree) | 327 switches::kDumpRenderTree) |
| 329 ? new LayoutTestContentRendererClient | 328 ? new LayoutTestContentRendererClient |
| 330 : new ShellContentRendererClient); | 329 : new ShellContentRendererClient); |
| 331 | 330 |
| 332 return renderer_client_.get(); | 331 return renderer_client_.get(); |
| 333 } | 332 } |
| 334 | 333 |
| 335 } // namespace content | 334 } // namespace content |
| OLD | NEW |