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

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

Issue 962833003: UI impl side painting default on (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: if single process do not call setNumWorkerThreads in RenderThreadImpl Created 5 years, 9 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
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 // Enable compositing individual elements via hardware overlays when 11 // Enable compositing individual elements via hardware overlays when
12 // permitted by device. 12 // permitted by device.
13 const char kEnableHardwareOverlays[] = "enable-hardware-overlays"; 13 const char kEnableHardwareOverlays[] = "enable-hardware-overlays";
14 14
15 // Forces tests to produce pixel output when they normally wouldn't. 15 // Forces tests to produce pixel output when they normally wouldn't.
16 const char kEnablePixelOutputInTests[] = "enable-pixel-output-in-tests"; 16 const char kEnablePixelOutputInTests[] = "enable-pixel-output-in-tests";
17 17
18 const char kUIDisableThreadedCompositing[] = "ui-disable-threaded-compositing"; 18 const char kUIDisableThreadedCompositing[] = "ui-disable-threaded-compositing";
19 19
20 const char kUIEnableImplSidePainting[] = "ui-enable-impl-side-painting"; 20 const char kUIDisableImplSidePainting[] = "ui-disable-impl-side-painting";
21 21
22 const char kUIEnableZeroCopy[] = "ui-enable-zero-copy"; 22 const char kUIEnableZeroCopy[] = "ui-enable-zero-copy";
23 23
24 const char kUIShowPaintRects[] = "ui-show-paint-rects"; 24 const char kUIShowPaintRects[] = "ui-show-paint-rects";
25 25
26 } // namespace switches 26 } // namespace switches
27 27
28 namespace ui { 28 namespace ui {
29 29
30 bool IsUIImplSidePaintingEnabled() { 30 bool IsUIImplSidePaintingEnabled() {
31 const base::CommandLine& command_line = 31 const base::CommandLine& command_line =
32 *base::CommandLine::ForCurrentProcess(); 32 *base::CommandLine::ForCurrentProcess();
33 33
34 return command_line.HasSwitch(switches::kUIEnableImplSidePainting); 34 return !command_line.HasSwitch(switches::kUIDisableImplSidePainting);
35 } 35 }
36 36
37 bool IsUIZeroCopyEnabled() { 37 bool IsUIZeroCopyEnabled() {
38 const base::CommandLine& command_line = 38 const base::CommandLine& command_line =
39 *base::CommandLine::ForCurrentProcess(); 39 *base::CommandLine::ForCurrentProcess();
40 40
41 return command_line.HasSwitch(switches::kUIEnableZeroCopy); 41 return command_line.HasSwitch(switches::kUIEnableZeroCopy);
42 } 42 }
43 43
44 } // namespace ui 44 } // namespace ui
OLDNEW
« content/renderer/render_thread_impl.cc ('K') | « ui/compositor/compositor_switches.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698