Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(334)

Side by Side Diff: content/shell/app/shell_main_delegate.cc

Issue 832083003: Revert of Enable display list 2D canvas by default (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « content/child/runtime_features.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 155 matching lines...) Expand 10 before | Expand all | Expand 10 after
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); 169 command_line.AppendSwitch(switches::kDisableImplSidePainting);
170 // Text blobs are normally disabled when kDisableImplSidePainting is 170 // Text blobs are normally disabled when kDisableImplSidePainting is
171 // present to ensure correct LCD behavior, but for layout tests we want 171 // present to ensure correct LCD behavior, but for layout tests we want
172 // them on because LCD is always suppressed. 172 // them on because LCD is always suppressed.
173 command_line.AppendSwitch(switches::kForceTextBlobs); 173 command_line.AppendSwitch(switches::kForceTextBlobs);
174 } 174 }
175 175
176 if (!command_line.HasSwitch(switches::kEnableDisplayList2dCanvas)) {
177 command_line.AppendSwitch(switches::kDisableDisplayList2dCanvas);
178 }
179
180 command_line.AppendSwitch(switches::kEnableInbandTextTracks); 176 command_line.AppendSwitch(switches::kEnableInbandTextTracks);
181 command_line.AppendSwitch(switches::kMuteAudio); 177 command_line.AppendSwitch(switches::kMuteAudio);
182 178
183 // TODO: crbug.com/311404 Make layout tests work w/ delegated renderer. 179 // TODO: crbug.com/311404 Make layout tests work w/ delegated renderer.
184 command_line.AppendSwitch(switches::kDisableDelegatedRenderer); 180 command_line.AppendSwitch(switches::kDisableDelegatedRenderer);
185 command_line.AppendSwitch(cc::switches::kCompositeToMailbox); 181 command_line.AppendSwitch(cc::switches::kCompositeToMailbox);
186 182
187 command_line.AppendSwitch(switches::kEnableFileCookies); 183 command_line.AppendSwitch(switches::kEnableFileCookies);
188 184
189 command_line.AppendSwitch(switches::kEnablePreciseMemoryInfo); 185 command_line.AppendSwitch(switches::kEnablePreciseMemoryInfo);
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
326 ContentRendererClient* ShellMainDelegate::CreateContentRendererClient() { 322 ContentRendererClient* ShellMainDelegate::CreateContentRendererClient() {
327 renderer_client_.reset( 323 renderer_client_.reset(
328 CommandLine::ForCurrentProcess()->HasSwitch(switches::kDumpRenderTree) ? 324 CommandLine::ForCurrentProcess()->HasSwitch(switches::kDumpRenderTree) ?
329 new LayoutTestContentRendererClient : 325 new LayoutTestContentRendererClient :
330 new ShellContentRendererClient); 326 new ShellContentRendererClient);
331 327
332 return renderer_client_.get(); 328 return renderer_client_.get();
333 } 329 }
334 330
335 } // namespace content 331 } // namespace content
OLDNEW
« no previous file with comments | « content/child/runtime_features.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698