OLD | NEW |
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/switches.h" | 5 #include "cc/switches.h" |
6 | 6 |
7 namespace cc { | 7 namespace cc { |
8 namespace switches { | 8 namespace switches { |
9 | 9 |
10 // On platforms where checkerboards are used, prefer background colors instead | 10 // On platforms where checkerboards are used, prefer background colors instead |
11 // of checkerboards. | 11 // of checkerboards. |
12 const char kBackgroundColorInsteadOfCheckerboard[] = | 12 const char kBackgroundColorInsteadOfCheckerboard[] = |
13 "background-color-instead-of-checkerboard"; | 13 "background-color-instead-of-checkerboard"; |
14 | 14 |
15 const char kDisableThreadedAnimation[] = "disable-threaded-animation"; | 15 const char kDisableThreadedAnimation[] = "disable-threaded-animation"; |
16 | 16 |
17 // Paint content on the compositor thread instead of the main thread. | 17 // Paint content on the compositor thread instead of the main thread. |
18 const char kEnableImplSidePainting[] = "enable-impl-side-painting"; | 18 const char kEnableImplSidePainting[] = "enable-impl-side-painting"; |
19 | 19 |
20 const char kEnablePartialSwap[] = "enable-partial-swap"; | 20 const char kEnablePartialSwap[] = "enable-partial-swap"; |
21 | 21 |
22 const char kEnablePerTilePainting[] = "enable-per-tile-painting"; | 22 const char kEnablePerTilePainting[] = "enable-per-tile-painting"; |
23 | 23 |
24 // Enables an alternative pinch-zoom gesture support, via the threaded | 24 // Enables an alternative pinch-zoom gesture support, via the threaded |
25 // compositor. | 25 // compositor. |
26 const char kEnablePinchInCompositor[] = "enable-pinch-in-compositor"; | 26 const char kEnablePinchInCompositor[] = "enable-pinch-in-compositor"; |
27 | 27 |
| 28 // Number of worker threads used to rasterize content. |
| 29 const char kNumRasterThreads[] = "num-raster-threads"; |
| 30 |
28 // Show rects in the HUD around layers whose properties have changed. | 31 // Show rects in the HUD around layers whose properties have changed. |
29 const char kShowPropertyChangedRects[] = "show-property-changed-rects"; | 32 const char kShowPropertyChangedRects[] = "show-property-changed-rects"; |
30 | 33 |
31 // Show rects in the HUD around damage as it is recorded into each render | 34 // Show rects in the HUD around damage as it is recorded into each render |
32 // surface. | 35 // surface. |
33 const char kShowSurfaceDamageRects[] = "show-surface-damage-rects"; | 36 const char kShowSurfaceDamageRects[] = "show-surface-damage-rects"; |
34 | 37 |
35 // Show rects in the HUD around the screen-space transformed bounds of every | 38 // Show rects in the HUD around the screen-space transformed bounds of every |
36 // layer. | 39 // layer. |
37 const char kShowScreenSpaceRects[] = "show-screenspace-rects"; | 40 const char kShowScreenSpaceRects[] = "show-screenspace-rects"; |
38 | 41 |
39 // Show rects in the HUD around the screen-space transformed bounds of every | 42 // Show rects in the HUD around the screen-space transformed bounds of every |
40 // layer's replica, when they have one. | 43 // layer's replica, when they have one. |
41 const char kShowReplicaScreenSpaceRects[] = "show-replica-screenspace-rects"; | 44 const char kShowReplicaScreenSpaceRects[] = "show-replica-screenspace-rects"; |
42 | 45 |
43 // Show rects in the HUD wherever something is known to be drawn opaque and is | 46 // Show rects in the HUD wherever something is known to be drawn opaque and is |
44 // considered occluding the pixels behind it. | 47 // considered occluding the pixels behind it. |
45 const char kShowOccludingRects[] = "show-occluding-rects"; | 48 const char kShowOccludingRects[] = "show-occluding-rects"; |
46 | 49 |
47 // Show rects in the HUD wherever something is not known to be drawn opaque and | 50 // Show rects in the HUD wherever something is not known to be drawn opaque and |
48 // is not considered to be occluding the pixels behind it. | 51 // is not considered to be occluding the pixels behind it. |
49 const char kShowNonOccludingRects[] = "show-nonoccluding-rects"; | 52 const char kShowNonOccludingRects[] = "show-nonoccluding-rects"; |
50 | 53 |
51 // Show metrics about overdraw in about:tracing recordings, such as the number | 54 // Show metrics about overdraw in about:tracing recordings, such as the number |
52 // of pixels culled, and the number of pixels drawn, for each frame. | 55 // of pixels culled, and the number of pixels drawn, for each frame. |
53 const char kTraceOverdraw[] = "trace-overdraw"; | 56 const char kTraceOverdraw[] = "trace-overdraw"; |
54 | 57 |
55 } // namespace switches | 58 } // namespace switches |
56 } // namespace cc | 59 } // namespace cc |
OLD | NEW |