| 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/command_line.h" | 8 #include "base/command_line.h" |
| 8 #include "base/logging.h" | 9 #include "base/logging.h" |
| 9 #include "base/strings/string_number_conversions.h" | 10 #include "base/strings/string_number_conversions.h" |
| 10 #include "cc/base/switches.h" | 11 #include "cc/base/switches.h" |
| 11 #include "content/public/browser/render_process_host.h" | 12 #include "content/public/browser/render_process_host.h" |
| 12 #include "content/public/common/content_constants.h" | 13 #include "content/public/common/content_constants.h" |
| 13 #include "content/public/common/content_switches.h" | 14 #include "content/public/common/content_switches.h" |
| 14 #include "gpu/command_buffer/service/gpu_switches.h" | 15 #include "gpu/command_buffer/service/gpu_switches.h" |
| 15 #include "ui/base/ui_base_switches.h" | 16 #include "ui/base/ui_base_switches.h" |
| 16 | 17 |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 80 // Disable anti-aliasing. | 81 // Disable anti-aliasing. |
| 81 parsed_command_line->AppendSwitch( | 82 parsed_command_line->AppendSwitch( |
| 82 cc::switches::kDisableCompositedAntialiasing); | 83 cc::switches::kDisableCompositedAntialiasing); |
| 83 | 84 |
| 84 parsed_command_line->AppendSwitch(switches::kUIPrioritizeInGpuProcess); | 85 parsed_command_line->AppendSwitch(switches::kUIPrioritizeInGpuProcess); |
| 85 | 86 |
| 86 if (!plugin_descriptor.empty()) { | 87 if (!plugin_descriptor.empty()) { |
| 87 parsed_command_line->AppendSwitchNative( | 88 parsed_command_line->AppendSwitchNative( |
| 88 switches::kRegisterPepperPlugins, plugin_descriptor); | 89 switches::kRegisterPepperPlugins, plugin_descriptor); |
| 89 } | 90 } |
| 91 |
| 92 // Disable profiler timing by default. |
| 93 if (!parsed_command_line->HasSwitch(switches::kProfilerTiming)) { |
| 94 parsed_command_line->AppendSwitchASCII( |
| 95 switches::kProfilerTiming, switches::kProfilerTimingDisabledValue); |
| 96 } |
| 90 } | 97 } |
| 91 | 98 |
| 92 } // namespace content | 99 } // namespace content |
| OLD | NEW |