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

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

Issue 851853002: It is time. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Trying to reup because the last upload failed. 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_switches.h ('k') | ui/compositor/compositor_vsync_manager.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #include "ui/compositor/compositor_switches.h"
6
7 #include "base/command_line.h"
8
9 using base::CommandLine;
10
11 namespace switches {
12
13 // Enable compositing individual elements via hardware overlays when
14 // permitted by device.
15 const char kEnableHardwareOverlays[] = "enable-hardware-overlays";
16
17 // Forces tests to produce pixel output when they normally wouldn't.
18 const char kEnablePixelOutputInTests[] = "enable-pixel-output-in-tests";
19
20 const char kUIDisableThreadedCompositing[] = "ui-disable-threaded-compositing";
21
22 const char kUIEnableImplSidePainting[] = "ui-enable-impl-side-painting";
23
24 const char kUIEnableZeroCopy[] = "ui-enable-zero-copy";
25
26 const char kUIShowPaintRects[] = "ui-show-paint-rects";
27
28 } // namespace switches
29
30 namespace ui {
31
32 bool IsUIImplSidePaintingEnabled() {
33 const CommandLine& command_line = *CommandLine::ForCurrentProcess();
34
35 return command_line.HasSwitch(switches::kUIEnableImplSidePainting);
36 }
37
38 bool IsUIZeroCopyEnabled() {
39 const CommandLine& command_line = *CommandLine::ForCurrentProcess();
40
41 return command_line.HasSwitch(switches::kUIEnableZeroCopy);
42 }
43
44 } // namespace ui
OLDNEW
« no previous file with comments | « ui/compositor/compositor_switches.h ('k') | ui/compositor/compositor_vsync_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698