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 "content/public/browser/render_process_host.h" | 11 #include "content/public/browser/render_process_host.h" |
11 #include "content/public/common/content_constants.h" | 12 #include "content/public/common/content_constants.h" |
12 #include "content/public/common/content_switches.h" | 13 #include "content/public/common/content_switches.h" |
13 #include "ui/base/ui_base_switches.h" | 14 #include "ui/base/ui_base_switches.h" |
14 | 15 |
15 namespace content { | 16 namespace content { |
16 | 17 |
17 void SetContentCommandLineFlags(int max_render_process_count) { | 18 void SetContentCommandLineFlags(int max_render_process_count) { |
18 // May be called multiple times, to cover all possible program entry points. | 19 // May be called multiple times, to cover all possible program entry points. |
19 static bool already_initialized = false; | 20 static bool already_initialized = false; |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
53 parsed_command_line->AppendSwitch(switches::kEnableGestureTapHighlight); | 54 parsed_command_line->AppendSwitch(switches::kEnableGestureTapHighlight); |
54 parsed_command_line->AppendSwitch(switches::kEnableCssTransformPinch); | 55 parsed_command_line->AppendSwitch(switches::kEnableCssTransformPinch); |
55 | 56 |
56 // Run the GPU service as a thread in the browser instead of as a | 57 // Run the GPU service as a thread in the browser instead of as a |
57 // standalone process. | 58 // standalone process. |
58 parsed_command_line->AppendSwitch(switches::kInProcessGPU); | 59 parsed_command_line->AppendSwitch(switches::kInProcessGPU); |
59 | 60 |
60 // Always use fixed layout and viewport tag. | 61 // Always use fixed layout and viewport tag. |
61 parsed_command_line->AppendSwitch(switches::kEnableFixedLayout); | 62 parsed_command_line->AppendSwitch(switches::kEnableFixedLayout); |
62 parsed_command_line->AppendSwitch(switches::kEnableViewport); | 63 parsed_command_line->AppendSwitch(switches::kEnableViewport); |
| 64 |
| 65 parsed_command_line->AppendSwitch( |
| 66 cc::switches::kEnableCompositorFrameMessage); |
63 } | 67 } |
64 | 68 |
65 } // namespace content | 69 } // namespace content |
OLD | NEW |