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/base_switches.h" | 7 #include "base/base_switches.h" |
8 #include "base/command_line.h" | 8 #include "base/command_line.h" |
9 #include "base/logging.h" | 9 #include "base/logging.h" |
10 #include "base/strings/string_number_conversions.h" | 10 #include "base/strings/string_number_conversions.h" |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
79 parsed_command_line->AppendSwitch(switches::kEnableViewportMeta); | 79 parsed_command_line->AppendSwitch(switches::kEnableViewportMeta); |
80 parsed_command_line->AppendSwitch( | 80 parsed_command_line->AppendSwitch( |
81 switches::kMainFrameResizesAreOrientationChanges); | 81 switches::kMainFrameResizesAreOrientationChanges); |
82 | 82 |
83 // Disable anti-aliasing. | 83 // Disable anti-aliasing. |
84 parsed_command_line->AppendSwitch( | 84 parsed_command_line->AppendSwitch( |
85 cc::switches::kDisableCompositedAntialiasing); | 85 cc::switches::kDisableCompositedAntialiasing); |
86 | 86 |
87 parsed_command_line->AppendSwitch(switches::kUIPrioritizeInGpuProcess); | 87 parsed_command_line->AppendSwitch(switches::kUIPrioritizeInGpuProcess); |
88 | 88 |
89 parsed_command_line->AppendSwitch(switches::kEnableDelegatedRenderer); | |
no sievers
2014/01/29 21:13:48
yay!
| |
90 | |
89 if (!plugin_descriptor.empty()) { | 91 if (!plugin_descriptor.empty()) { |
90 parsed_command_line->AppendSwitchNative( | 92 parsed_command_line->AppendSwitchNative( |
91 switches::kRegisterPepperPlugins, plugin_descriptor); | 93 switches::kRegisterPepperPlugins, plugin_descriptor); |
92 } | 94 } |
93 | 95 |
94 // Disable profiler timing by default. | 96 // Disable profiler timing by default. |
95 if (!parsed_command_line->HasSwitch(switches::kProfilerTiming)) { | 97 if (!parsed_command_line->HasSwitch(switches::kProfilerTiming)) { |
96 parsed_command_line->AppendSwitchASCII( | 98 parsed_command_line->AppendSwitchASCII( |
97 switches::kProfilerTiming, switches::kProfilerTimingDisabledValue); | 99 switches::kProfilerTiming, switches::kProfilerTimingDisabledValue); |
98 } | 100 } |
99 } | 101 } |
100 | 102 |
101 } // namespace content | 103 } // namespace content |
OLD | NEW |