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

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

Issue 1662793003: UI Compositor: Disable external animation host for ui::Compositor (Aura) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@fixtests
Patch Set: Rebase. Created 4 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
« no previous file with comments | « ui/compositor/compositor_switches.h ('k') | ui/compositor/layer.cc » ('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 namespace switches { 9 namespace switches {
10 10
11 const char kUIEnableCompositorAnimationTimelines[] =
12 "ui-enable-compositor-animation-timelines";
13
11 // Enable compositing individual elements via hardware overlays when 14 // Enable compositing individual elements via hardware overlays when
12 // permitted by device. 15 // permitted by device.
13 const char kEnableHardwareOverlays[] = "enable-hardware-overlays"; 16 const char kEnableHardwareOverlays[] = "enable-hardware-overlays";
14 17
15 // Forces tests to produce pixel output when they normally wouldn't. 18 // Forces tests to produce pixel output when they normally wouldn't.
16 const char kEnablePixelOutputInTests[] = "enable-pixel-output-in-tests"; 19 const char kEnablePixelOutputInTests[] = "enable-pixel-output-in-tests";
17 20
18 const char kUIDisableCompositorAnimationTimelines[] =
19 "ui-disable-compositor-animation-timelines";
20
21 // Disable partial swap which is needed for some OpenGL drivers / emulators. 21 // Disable partial swap which is needed for some OpenGL drivers / emulators.
22 const char kUIDisablePartialSwap[] = "ui-disable-partial-swap"; 22 const char kUIDisablePartialSwap[] = "ui-disable-partial-swap";
23 23
24 const char kUIEnableRGBA4444Textures[] = "ui-enable-rgba-4444-textures"; 24 const char kUIEnableRGBA4444Textures[] = "ui-enable-rgba-4444-textures";
25 25
26 const char kUIEnableZeroCopy[] = "ui-enable-zero-copy"; 26 const char kUIEnableZeroCopy[] = "ui-enable-zero-copy";
27 27
28 const char kUIShowPaintRects[] = "ui-show-paint-rects"; 28 const char kUIShowPaintRects[] = "ui-show-paint-rects";
29 29
30 } // namespace switches 30 } // namespace switches
31 31
32 namespace ui { 32 namespace ui {
33 33
34 bool IsUIZeroCopyEnabled() { 34 bool IsUIZeroCopyEnabled() {
35 const base::CommandLine& command_line = 35 const base::CommandLine& command_line =
36 *base::CommandLine::ForCurrentProcess(); 36 *base::CommandLine::ForCurrentProcess();
37 return command_line.HasSwitch(switches::kUIEnableZeroCopy); 37 return command_line.HasSwitch(switches::kUIEnableZeroCopy);
38 } 38 }
39 39
40 } // namespace ui 40 } // namespace ui
OLDNEW
« no previous file with comments | « ui/compositor/compositor_switches.h ('k') | ui/compositor/layer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698