| 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 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 86 parsed_command_line->AppendSwitch(switches::kEnableViewportMeta); | 86 parsed_command_line->AppendSwitch(switches::kEnableViewportMeta); |
| 87 parsed_command_line->AppendSwitch( | 87 parsed_command_line->AppendSwitch( |
| 88 switches::kMainFrameResizesAreOrientationChanges); | 88 switches::kMainFrameResizesAreOrientationChanges); |
| 89 | 89 |
| 90 // Disable anti-aliasing. | 90 // Disable anti-aliasing. |
| 91 parsed_command_line->AppendSwitch( | 91 parsed_command_line->AppendSwitch( |
| 92 cc::switches::kDisableCompositedAntialiasing); | 92 cc::switches::kDisableCompositedAntialiasing); |
| 93 | 93 |
| 94 parsed_command_line->AppendSwitch(switches::kUIPrioritizeInGpuProcess); | 94 parsed_command_line->AppendSwitch(switches::kUIPrioritizeInGpuProcess); |
| 95 | 95 |
| 96 parsed_command_line->AppendSwitch(switches::kEnableDelegatedRenderer); |
| 97 |
| 96 if (!plugin_descriptor.empty()) { | 98 if (!plugin_descriptor.empty()) { |
| 97 parsed_command_line->AppendSwitchNative( | 99 parsed_command_line->AppendSwitchNative( |
| 98 switches::kRegisterPepperPlugins, plugin_descriptor); | 100 switches::kRegisterPepperPlugins, plugin_descriptor); |
| 99 } | 101 } |
| 100 | 102 |
| 101 // Disable profiler timing by default. | 103 // Disable profiler timing by default. |
| 102 if (!parsed_command_line->HasSwitch(switches::kProfilerTiming)) { | 104 if (!parsed_command_line->HasSwitch(switches::kProfilerTiming)) { |
| 103 parsed_command_line->AppendSwitchASCII( | 105 parsed_command_line->AppendSwitchASCII( |
| 104 switches::kProfilerTiming, switches::kProfilerTimingDisabledValue); | 106 switches::kProfilerTiming, switches::kProfilerTimingDisabledValue); |
| 105 } | 107 } |
| 106 } | 108 } |
| 107 | 109 |
| 108 } // namespace content | 110 } // namespace content |
| OLD | NEW |