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/browser/android/content_startup_flags.h" | 5 #include "content/browser/android/content_startup_flags.h" |
6 | 6 |
7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
8 #include "base/logging.h" | 8 #include "base/logging.h" |
9 #include "base/strings/string_number_conversions.h" | 9 #include "base/strings/string_number_conversions.h" |
10 #include "cc/base/switches.h" | 10 #include "cc/base/switches.h" |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
68 | 68 |
69 // Run the GPU service as a thread in the browser instead of as a | 69 // Run the GPU service as a thread in the browser instead of as a |
70 // standalone process. | 70 // standalone process. |
71 parsed_command_line->AppendSwitch(switches::kInProcessGPU); | 71 parsed_command_line->AppendSwitch(switches::kInProcessGPU); |
72 parsed_command_line->AppendSwitch(switches::kDisableGpuShaderDiskCache); | 72 parsed_command_line->AppendSwitch(switches::kDisableGpuShaderDiskCache); |
73 | 73 |
74 // Always use fixed layout and viewport tag. | 74 // Always use fixed layout and viewport tag. |
75 parsed_command_line->AppendSwitch(switches::kEnableFixedLayout); | 75 parsed_command_line->AppendSwitch(switches::kEnableFixedLayout); |
76 parsed_command_line->AppendSwitch(switches::kEnableViewport); | 76 parsed_command_line->AppendSwitch(switches::kEnableViewport); |
77 | 77 |
78 // Disable <canvas> path antialiasing. | |
79 parsed_command_line->AppendSwitch(switches::kDisable2dCanvasAntialiasing); | |
80 | |
81 // Disable anti-aliasing. | 78 // Disable anti-aliasing. |
82 parsed_command_line->AppendSwitch( | 79 parsed_command_line->AppendSwitch( |
83 cc::switches::kDisableCompositedAntialiasing); | 80 cc::switches::kDisableCompositedAntialiasing); |
84 | 81 |
85 if (!plugin_descriptor.empty()) { | 82 if (!plugin_descriptor.empty()) { |
86 parsed_command_line->AppendSwitchNative( | 83 parsed_command_line->AppendSwitchNative( |
87 switches::kRegisterPepperPlugins, plugin_descriptor); | 84 switches::kRegisterPepperPlugins, plugin_descriptor); |
88 } | 85 } |
89 } | 86 } |
90 | 87 |
91 } // namespace content | 88 } // namespace content |
OLD | NEW |