| 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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 49 // we are implementing an embedded WebView. | 49 // we are implementing an embedded WebView. |
| 50 parsed_command_line->AppendSwitch(switches::kSingleProcess); | 50 parsed_command_line->AppendSwitch(switches::kSingleProcess); |
| 51 } else { | 51 } else { |
| 52 int default_maximum = RenderProcessHost::GetMaxRendererProcessCount(); | 52 int default_maximum = RenderProcessHost::GetMaxRendererProcessCount(); |
| 53 DCHECK(default_maximum <= static_cast<int>(kMaxRendererProcessCount)); | 53 DCHECK(default_maximum <= static_cast<int>(kMaxRendererProcessCount)); |
| 54 if (max_render_process_count < default_maximum) | 54 if (max_render_process_count < default_maximum) |
| 55 RenderProcessHost::SetMaxRendererProcessCount(max_render_process_count); | 55 RenderProcessHost::SetMaxRendererProcessCount(max_render_process_count); |
| 56 } | 56 } |
| 57 | 57 |
| 58 parsed_command_line->AppendSwitch(switches::kForceCompositingMode); | 58 parsed_command_line->AppendSwitch(switches::kForceCompositingMode); |
| 59 parsed_command_line->AppendSwitch(switches::kAllowWebUICompositing); | |
| 60 parsed_command_line->AppendSwitch(switches::kEnableThreadedCompositing); | 59 parsed_command_line->AppendSwitch(switches::kEnableThreadedCompositing); |
| 61 parsed_command_line->AppendSwitch( | 60 parsed_command_line->AppendSwitch( |
| 62 switches::kEnableCompositingForFixedPosition); | 61 switches::kEnableCompositingForFixedPosition); |
| 63 parsed_command_line->AppendSwitch(switches::kEnableAcceleratedOverflowScroll); | 62 parsed_command_line->AppendSwitch(switches::kEnableAcceleratedOverflowScroll); |
| 64 parsed_command_line->AppendSwitch( | 63 parsed_command_line->AppendSwitch( |
| 65 switches::kEnableAcceleratedScrollableFrames); | 64 switches::kEnableAcceleratedScrollableFrames); |
| 66 parsed_command_line->AppendSwitch( | 65 parsed_command_line->AppendSwitch( |
| 67 switches::kEnableCompositedScrollingForFrames); | 66 switches::kEnableCompositedScrollingForFrames); |
| 68 parsed_command_line->AppendSwitch(switches::kEnableBeginFrameScheduling); | 67 parsed_command_line->AppendSwitch(switches::kEnableBeginFrameScheduling); |
| 69 parsed_command_line->AppendSwitch(switches::kEnableDeadlineScheduling); | 68 parsed_command_line->AppendSwitch(switches::kEnableDeadlineScheduling); |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 101 } | 100 } |
| 102 | 101 |
| 103 // Disable profiler timing by default. | 102 // Disable profiler timing by default. |
| 104 if (!parsed_command_line->HasSwitch(switches::kProfilerTiming)) { | 103 if (!parsed_command_line->HasSwitch(switches::kProfilerTiming)) { |
| 105 parsed_command_line->AppendSwitchASCII( | 104 parsed_command_line->AppendSwitchASCII( |
| 106 switches::kProfilerTiming, switches::kProfilerTimingDisabledValue); | 105 switches::kProfilerTiming, switches::kProfilerTimingDisabledValue); |
| 107 } | 106 } |
| 108 } | 107 } |
| 109 | 108 |
| 110 } // namespace content | 109 } // namespace content |
| OLD | NEW |