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 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
92 parsed_command_line->AppendSwitchNative( | 92 parsed_command_line->AppendSwitchNative( |
93 switches::kRegisterPepperPlugins, plugin_descriptor); | 93 switches::kRegisterPepperPlugins, plugin_descriptor); |
94 } | 94 } |
95 | 95 |
96 // Disable profiler timing by default. | 96 // Disable profiler timing by default. |
97 if (!parsed_command_line->HasSwitch(switches::kProfilerTiming)) { | 97 if (!parsed_command_line->HasSwitch(switches::kProfilerTiming)) { |
98 parsed_command_line->AppendSwitchASCII( | 98 parsed_command_line->AppendSwitchASCII( |
99 switches::kProfilerTiming, switches::kProfilerTimingDisabledValue); | 99 switches::kProfilerTiming, switches::kProfilerTimingDisabledValue); |
100 } | 100 } |
101 | 101 |
102 #if !defined(USE_AURA) | |
102 cc::LayerSettings layer_settings; | 103 cc::LayerSettings layer_settings; |
103 if (parsed_command_line->HasSwitch( | 104 if (parsed_command_line->HasSwitch( |
104 switches::kEnableAndroidCompositorAnimationTimelines)) | 105 switches::kEnableAndroidCompositorAnimationTimelines)) |
mfomitchev
2015/11/03 22:23:20
Should we create a crbug for this? What's the righ
no sievers
2015/11/04 01:59:32
ui::Compositor does the same thing in ui/composito
mfomitchev
2015/11/04 20:49:31
Acknowledged. Seems odd that the flags are differe
| |
105 layer_settings.use_compositor_animation_timelines = true; | 106 layer_settings.use_compositor_animation_timelines = true; |
106 Compositor::SetLayerSettings(layer_settings); | 107 Compositor::SetLayerSettings(layer_settings); |
108 #endif | |
107 } | 109 } |
108 | 110 |
109 } // namespace content | 111 } // namespace content |
OLD | NEW |