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/string_number_conversions.h" | 7 #include "base/string_number_conversions.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 "cc/switches.h" | 10 #include "cc/switches.h" |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
43 static_cast<int>(content::kMaxRendererProcessCount)); | 43 static_cast<int>(content::kMaxRendererProcessCount)); |
44 content::RenderProcessHost::SetMaxRendererProcessCount( | 44 content::RenderProcessHost::SetMaxRendererProcessCount( |
45 max_render_process_count); | 45 max_render_process_count); |
46 } | 46 } |
47 | 47 |
48 parsed_command_line->AppendSwitch(switches::kForceCompositingMode); | 48 parsed_command_line->AppendSwitch(switches::kForceCompositingMode); |
49 parsed_command_line->AppendSwitch(switches::kAllowWebUICompositing); | 49 parsed_command_line->AppendSwitch(switches::kAllowWebUICompositing); |
50 parsed_command_line->AppendSwitch(switches::kEnableThreadedCompositing); | 50 parsed_command_line->AppendSwitch(switches::kEnableThreadedCompositing); |
51 parsed_command_line->AppendSwitch( | 51 parsed_command_line->AppendSwitch( |
52 switches::kEnableCompositingForFixedPosition); | 52 switches::kEnableCompositingForFixedPosition); |
| 53 parsed_command_line->AppendSwitch( |
| 54 switches::kEnableAcceleratedScrollableFrames); |
| 55 parsed_command_line->AppendSwitch( |
| 56 switches::kEnableCompositedScrollingForFrames); |
53 | 57 |
54 parsed_command_line->AppendSwitch(switches::kEnableGestureTapHighlight); | 58 parsed_command_line->AppendSwitch(switches::kEnableGestureTapHighlight); |
55 parsed_command_line->AppendSwitch(switches::kEnableCssTransformPinch); | 59 parsed_command_line->AppendSwitch(switches::kEnableCssTransformPinch); |
56 | 60 |
57 // Run the GPU service as a thread in the browser instead of as a | 61 // Run the GPU service as a thread in the browser instead of as a |
58 // standalone process. | 62 // standalone process. |
59 parsed_command_line->AppendSwitch(switches::kInProcessGPU); | 63 parsed_command_line->AppendSwitch(switches::kInProcessGPU); |
60 | 64 |
61 // Always use fixed layout and viewport tag. | 65 // Always use fixed layout and viewport tag. |
62 parsed_command_line->AppendSwitch(switches::kEnableFixedLayout); | 66 parsed_command_line->AppendSwitch(switches::kEnableFixedLayout); |
63 parsed_command_line->AppendSwitch(switches::kEnableViewport); | 67 parsed_command_line->AppendSwitch(switches::kEnableViewport); |
64 | 68 |
65 // FIXME(aelias): Commented out due to flaky tests. | 69 // FIXME(aelias): Commented out due to flaky tests. |
66 // parsed_command_line->AppendSwitch( | 70 // parsed_command_line->AppendSwitch( |
67 // cc::switches::kEnableCompositorFrameMessage); | 71 // cc::switches::kEnableCompositorFrameMessage); |
68 } | 72 } |
69 | 73 |
70 } // namespace content | 74 } // namespace content |
OLD | NEW |