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/android/build_info.h" | 7 #include "base/android/build_info.h" |
8 #include "base/base_switches.h" | 8 #include "base/base_switches.h" |
9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
10 #include "base/logging.h" | 10 #include "base/logging.h" |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
59 parsed_command_line->AppendSwitch(cc::switches::kEnableBeginFrameScheduling); | 59 parsed_command_line->AppendSwitch(cc::switches::kEnableBeginFrameScheduling); |
60 | 60 |
61 parsed_command_line->AppendSwitch(switches::kEnablePinch); | 61 parsed_command_line->AppendSwitch(switches::kEnablePinch); |
62 parsed_command_line->AppendSwitch(switches::kEnableOverlayFullscreenVideo); | 62 parsed_command_line->AppendSwitch(switches::kEnableOverlayFullscreenVideo); |
63 parsed_command_line->AppendSwitch(switches::kEnableOverlayScrollbar); | 63 parsed_command_line->AppendSwitch(switches::kEnableOverlayScrollbar); |
64 parsed_command_line->AppendSwitch(switches::kValidateInputEventStream); | 64 parsed_command_line->AppendSwitch(switches::kValidateInputEventStream); |
65 | 65 |
66 // TODO(jdduke): Use the proper SDK version when available, crbug.com/466749. | 66 // TODO(jdduke): Use the proper SDK version when available, crbug.com/466749. |
67 if (base::android::BuildInfo::GetInstance()->sdk_int() > | 67 if (base::android::BuildInfo::GetInstance()->sdk_int() > |
68 base::android::SDK_VERSION_LOLLIPOP_MR1) { | 68 base::android::SDK_VERSION_LOLLIPOP_MR1) { |
| 69 parsed_command_line->AppendSwitch( |
| 70 switches::kEnableAdaptiveHandleOrientation); |
69 parsed_command_line->AppendSwitch(switches::kEnableLongpressDragSelection); | 71 parsed_command_line->AppendSwitch(switches::kEnableLongpressDragSelection); |
70 parsed_command_line->AppendSwitchASCII( | 72 parsed_command_line->AppendSwitchASCII( |
71 switches::kTouchTextSelectionStrategy, "direction"); | 73 switches::kTouchTextSelectionStrategy, "direction"); |
72 } | 74 } |
73 | 75 |
74 // There is no software fallback on Android, so don't limit GPU crashes. | 76 // There is no software fallback on Android, so don't limit GPU crashes. |
75 parsed_command_line->AppendSwitch(switches::kDisableGpuProcessCrashLimit); | 77 parsed_command_line->AppendSwitch(switches::kDisableGpuProcessCrashLimit); |
76 | 78 |
77 // On legacy low-memory devices the behavior has not been studied with regard | 79 // On legacy low-memory devices the behavior has not been studied with regard |
78 // to having an extra process with similar priority as the foreground renderer | 80 // to having an extra process with similar priority as the foreground renderer |
(...skipping 26 matching lines...) Expand all Loading... |
105 } | 107 } |
106 | 108 |
107 cc::LayerSettings layer_settings; | 109 cc::LayerSettings layer_settings; |
108 if (parsed_command_line->HasSwitch( | 110 if (parsed_command_line->HasSwitch( |
109 switches::kEnableAndroidCompositorAnimationTimelines)) | 111 switches::kEnableAndroidCompositorAnimationTimelines)) |
110 layer_settings.use_compositor_animation_timelines = true; | 112 layer_settings.use_compositor_animation_timelines = true; |
111 Compositor::SetLayerSettings(layer_settings); | 113 Compositor::SetLayerSettings(layer_settings); |
112 } | 114 } |
113 | 115 |
114 } // namespace content | 116 } // namespace content |
OLD | NEW |