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

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

Issue 60083017: Android: Reenable canvas anti-aliasing (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 1 month 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 | Annotate | Revision Log
« no previous file with comments | « chrome/browser/android/chrome_startup_flags.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/files/file_path.h" 9 #include "base/files/file_path.h"
10 #include "base/lazy_instance.h" 10 #include "base/lazy_instance.h"
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 InitLogging(); 122 InitLogging();
123 CommandLine& command_line = *CommandLine::ForCurrentProcess(); 123 CommandLine& command_line = *CommandLine::ForCurrentProcess();
124 if (command_line.HasSwitch(switches::kCheckLayoutTestSysDeps)) { 124 if (command_line.HasSwitch(switches::kCheckLayoutTestSysDeps)) {
125 if (!CheckLayoutSystemDeps()) { 125 if (!CheckLayoutSystemDeps()) {
126 if (exit_code) 126 if (exit_code)
127 *exit_code = 1; 127 *exit_code = 1;
128 return true; 128 return true;
129 } 129 }
130 } 130 }
131 131
132 #if defined(OS_ANDROID)
133 // Disable <canvas> path antialiasing for consistency with Android Chrome.
134 command_line.AppendSwitch(switches::kDisable2dCanvasAntialiasing);
135 #endif
136
137 if (command_line.HasSwitch(switches::kDumpRenderTree)) { 132 if (command_line.HasSwitch(switches::kDumpRenderTree)) {
138 EnableBrowserLayoutTestMode(); 133 EnableBrowserLayoutTestMode();
139 134
140 command_line.AppendSwitch(switches::kProcessPerTab); 135 command_line.AppendSwitch(switches::kProcessPerTab);
141 command_line.AppendSwitch(switches::kEnableLogging); 136 command_line.AppendSwitch(switches::kEnableLogging);
142 command_line.AppendSwitch(switches::kAllowFileAccessFromFiles); 137 command_line.AppendSwitch(switches::kAllowFileAccessFromFiles);
143 #if !defined(OS_ANDROID) 138 #if !defined(OS_ANDROID)
144 // OSMesa is not yet available for Android. http://crbug.com/248925 139 // OSMesa is not yet available for Android. http://crbug.com/248925
145 command_line.AppendSwitchASCII( 140 command_line.AppendSwitchASCII(
146 switches::kUseGL, gfx::kGLImplementationOSMesaName); 141 switches::kUseGL, gfx::kGLImplementationOSMesaName);
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after
291 browser_client_.reset(new ShellContentBrowserClient); 286 browser_client_.reset(new ShellContentBrowserClient);
292 return browser_client_.get(); 287 return browser_client_.get();
293 } 288 }
294 289
295 ContentRendererClient* ShellMainDelegate::CreateContentRendererClient() { 290 ContentRendererClient* ShellMainDelegate::CreateContentRendererClient() {
296 renderer_client_.reset(new ShellContentRendererClient); 291 renderer_client_.reset(new ShellContentRendererClient);
297 return renderer_client_.get(); 292 return renderer_client_.get();
298 } 293 }
299 294
300 } // namespace content 295 } // namespace content
OLDNEW
« no previous file with comments | « chrome/browser/android/chrome_startup_flags.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698