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

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

Issue 817653003: Update from https://crrev.com/309717 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 11 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
« no previous file with comments | « ui/compositor/compositor.cc ('k') | ui/compositor/transform_animation_curve_adapter.h » ('j') | 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 using base::CommandLine;
10
9 namespace switches { 11 namespace switches {
10 12
11 // Enable compositing individual elements via hardware overlays when 13 // Enable compositing individual elements via hardware overlays when
12 // permitted by device. 14 // permitted by device.
13 const char kEnableHardwareOverlays[] = "enable-hardware-overlays"; 15 const char kEnableHardwareOverlays[] = "enable-hardware-overlays";
14 16
15 // Forces tests to produce pixel output when they normally wouldn't. 17 // Forces tests to produce pixel output when they normally wouldn't.
16 const char kEnablePixelOutputInTests[] = "enable-pixel-output-in-tests"; 18 const char kEnablePixelOutputInTests[] = "enable-pixel-output-in-tests";
17 19
18 const char kUIDisableThreadedCompositing[] = "ui-disable-threaded-compositing"; 20 const char kUIDisableThreadedCompositing[] = "ui-disable-threaded-compositing";
(...skipping 14 matching lines...) Expand all
33 return command_line.HasSwitch(switches::kUIEnableImplSidePainting); 35 return command_line.HasSwitch(switches::kUIEnableImplSidePainting);
34 } 36 }
35 37
36 bool IsUIZeroCopyEnabled() { 38 bool IsUIZeroCopyEnabled() {
37 const CommandLine& command_line = *CommandLine::ForCurrentProcess(); 39 const CommandLine& command_line = *CommandLine::ForCurrentProcess();
38 40
39 return command_line.HasSwitch(switches::kUIEnableZeroCopy); 41 return command_line.HasSwitch(switches::kUIEnableZeroCopy);
40 } 42 }
41 43
42 } // namespace ui 44 } // namespace ui
OLDNEW
« no previous file with comments | « ui/compositor/compositor.cc ('k') | ui/compositor/transform_animation_curve_adapter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698