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

Side by Side Diff: cc/base/switches.cc

Issue 13863015: Add flag for drawing layers to screen with Ganesh (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Stencil buffer support, --draw-layers-with-ganesh Created 7 years, 8 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 | « cc/base/switches.h ('k') | cc/debug/debug_colors.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 "cc/base/switches.h" 5 #include "cc/base/switches.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 8
9 namespace cc { 9 namespace cc {
10 namespace switches { 10 namespace switches {
11 11
12 // On platforms where checkerboards are used, prefer background colors instead 12 // On platforms where checkerboards are used, prefer background colors instead
13 // of checkerboards. 13 // of checkerboards.
14 const char kBackgroundColorInsteadOfCheckerboard[] = 14 const char kBackgroundColorInsteadOfCheckerboard[] =
15 "background-color-instead-of-checkerboard"; 15 "background-color-instead-of-checkerboard";
16 16
17 const char kDisableThreadedAnimation[] = "disable-threaded-animation"; 17 const char kDisableThreadedAnimation[] = "disable-threaded-animation";
18 18
19 // Send a message for every frame from the impl thread to the parent compositor. 19 // Send a message for every frame from the impl thread to the parent compositor.
20 const char kEnableCompositorFrameMessage[] = "enable-compositor-frame-message"; 20 const char kEnableCompositorFrameMessage[] = "enable-compositor-frame-message";
21 21
22 // Do not predict whether the tile will be either solid color or transparent. 22 // Do not predict whether the tile will be either solid color or transparent.
23 const char kDisableColorEstimator[] = "disable-color-estimator"; 23 const char kDisableColorEstimator[] = "disable-color-estimator";
24 24
25 // Paint content on the main thread instead of the compositor thread. 25 // Paint content on the main thread instead of the compositor thread.
26 // Overrides the kEnableImplSidePainting flag. 26 // Overrides the kEnableImplSidePainting flag.
27 const char kDisableImplSidePainting[] = "disable-impl-side-painting"; 27 const char kDisableImplSidePainting[] = "disable-impl-side-painting";
28 28
29 // For any layers that can get drawn directly to screen, draw them with Ganesh.
30 // Only valid with gl rendering / threaded compositing / impl-side painting.
31 const char kDrawLayersWithGanesh[] = "draw-layers-with-ganesh";
32
29 // Paint content on the compositor thread instead of the main thread. 33 // Paint content on the compositor thread instead of the main thread.
30 const char kEnableImplSidePainting[] = "enable-impl-side-painting"; 34 const char kEnableImplSidePainting[] = "enable-impl-side-painting";
31 35
32 // Try to finish display pipeline before vsync tick 36 // Try to finish display pipeline before vsync tick
33 const char kEnableRightAlignedScheduling[] = "enable-right-aligned-scheduling"; 37 const char kEnableRightAlignedScheduling[] = "enable-right-aligned-scheduling";
34 38
35 const char kEnableTopControlsPositionCalculation[] = 39 const char kEnableTopControlsPositionCalculation[] =
36 "enable-top-controls-position-calculation"; 40 "enable-top-controls-position-calculation";
37 41
38 // Enable solid tile color, transparent tile, and cheapness prediction metrics. 42 // Enable solid tile color, transparent tile, and cheapness prediction metrics.
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
151 155
152 #if defined(OS_ANDROID) 156 #if defined(OS_ANDROID)
153 return true; 157 return true;
154 #else 158 #else
155 return false; 159 return false;
156 #endif 160 #endif
157 } 161 }
158 162
159 } // namespace switches 163 } // namespace switches
160 } // namespace cc 164 } // namespace cc
OLDNEW
« no previous file with comments | « cc/base/switches.h ('k') | cc/debug/debug_colors.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698