Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(391)

Side by Side Diff: content/browser/android/content_startup_flags.cc

Issue 1411503005: Aura on Android: content/browser (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@auraclank_upstream_select_file
Patch Set: Addressing remaining feedback, cleaning up build files. Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698