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