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

Side by Side Diff: ui/compositor/compositor_switches.cc

Issue 167973003: Remove the --ui-enable-threaded-compositing flag. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 10 months 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 | Annotate | Revision Log
« no previous file with comments | « ui/compositor/compositor_switches.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "ui/compositor/compositor_switches.h" 5 #include "ui/compositor/compositor_switches.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 8
9 namespace switches { 9 namespace switches {
10 10
11 const char kDisableTestCompositor[] = "disable-test-compositor"; 11 const char kDisableTestCompositor[] = "disable-test-compositor";
12 12
13 const char kUIDisableDeadlineScheduling[] = "ui-disable-deadline-scheduling"; 13 const char kUIDisableDeadlineScheduling[] = "ui-disable-deadline-scheduling";
14 14
15 const char kUIDisableThreadedCompositing[] = "ui-disable-threaded-compositing"; 15 const char kUIDisableThreadedCompositing[] = "ui-disable-threaded-compositing";
16 16
17 const char kUIEnableDeadlineScheduling[] = "ui-enable-deadline-scheduling"; 17 const char kUIEnableDeadlineScheduling[] = "ui-enable-deadline-scheduling";
18 18
19 const char kUIEnableSoftwareCompositing[] = "ui-enable-software-compositing"; 19 const char kUIEnableSoftwareCompositing[] = "ui-enable-software-compositing";
20 20
21 const char kUIEnableThreadedCompositing[] = "ui-enable-threaded-compositing";
22
23 const char kUIMaxFramesPending[] = "ui-max-frames-pending"; 21 const char kUIMaxFramesPending[] = "ui-max-frames-pending";
24 22
25 const char kUIShowPaintRects[] = "ui-show-paint-rects"; 23 const char kUIShowPaintRects[] = "ui-show-paint-rects";
26 24
27 bool IsUIDeadlineSchedulingEnabled() { 25 bool IsUIDeadlineSchedulingEnabled() {
28 const CommandLine& command_line = *CommandLine::ForCurrentProcess(); 26 const CommandLine& command_line = *CommandLine::ForCurrentProcess();
29 27
30 // Default to disabled. 28 // Default to disabled.
31 bool enabled = false; 29 bool enabled = false;
32 30
33 // Default to enabled for Aura. 31 // Default to enabled for Aura.
34 enabled = true; 32 enabled = true;
35 33
36 // Flags override. 34 // Flags override.
37 enabled |= command_line.HasSwitch(switches::kUIEnableDeadlineScheduling); 35 enabled |= command_line.HasSwitch(switches::kUIEnableDeadlineScheduling);
38 enabled &= !command_line.HasSwitch(switches::kUIDisableDeadlineScheduling); 36 enabled &= !command_line.HasSwitch(switches::kUIDisableDeadlineScheduling);
39 37
40 return enabled; 38 return enabled;
41 } 39 }
42 40
43 } // namespace switches 41 } // namespace switches
OLDNEW
« no previous file with comments | « ui/compositor/compositor_switches.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698