diff options
author | ernstm@chromium.org <ernstm@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-01-17 06:34:32 +0000 |
---|---|---|
committer | ernstm@chromium.org <ernstm@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-01-17 06:34:32 +0000 |
commit | 547d5010e60072a1e052fcf8e81caeeb5faf8b29 (patch) | |
tree | fc89122ad8e925453d9554d75fec54aa604162c7 /cc/base | |
parent | 5339e0ebae0489419102165ba380b72f91ffde1a (diff) | |
download | chromium_src-547d5010e60072a1e052fcf8e81caeeb5faf8b29.zip chromium_src-547d5010e60072a1e052fcf8e81caeeb5faf8b29.tar.gz chromium_src-547d5010e60072a1e052fcf8e81caeeb5faf8b29.tar.bz2 |
telemetry: add smoothness.*.key_silk_cases benchmarks
Add two benchmark variants of smoothness with key_silk_cases.
smoothness.disable_gpu_rasterization.key_silk_cases:
run with GPU rasterization explicitly diabled (but use impl-side painting)
smoothness.enable_gpu_rasterization.key_silk_cases:
run with GPU rasterization enabled (implies impl-side painting).
R=nduca@chromium.org
BUG=
Review URL: https://codereview.chromium.org/135223002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@245440 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'cc/base')
-rw-r--r-- | cc/base/switches.cc | 15 | ||||
-rw-r--r-- | cc/base/switches.h | 2 |
2 files changed, 17 insertions, 0 deletions
diff --git a/cc/base/switches.cc b/cc/base/switches.cc index dd0fa52..5f405ea 100644 --- a/cc/base/switches.cc +++ b/cc/base/switches.cc @@ -41,6 +41,10 @@ const char kEnableTopControlsPositionCalculation[] = // impl-side painting. const char kEnableGPURasterization[] = "enable-gpu-rasterization"; +// Disable GPU rasterization, i.e. rasterize on the CPU only. +// Overrides the kEnableGPURasterization flag. +const char kDisableGPURasterization[] = "disable-gpu-rasterization"; + // The height of the movable top controls. const char kTopControlsHeight[] = "top-controls-height"; @@ -165,6 +169,17 @@ bool IsLCDTextEnabled() { #endif } +bool IsGpuRasterizationEnabled() { + const CommandLine& command_line = *CommandLine::ForCurrentProcess(); + + if (command_line.HasSwitch(switches::kDisableGPURasterization)) + return false; + else if (command_line.HasSwitch(switches::kEnableGPURasterization)) + return true; + + return false; +} + bool IsImplSidePaintingEnabled() { const CommandLine& command_line = *CommandLine::ForCurrentProcess(); diff --git a/cc/base/switches.h b/cc/base/switches.h index 476457f..a8c061d 100644 --- a/cc/base/switches.h +++ b/cc/base/switches.h @@ -18,6 +18,7 @@ namespace switches { // Switches for the renderer compositor only. CC_EXPORT extern const char kBackgroundColorInsteadOfCheckerboard[]; CC_EXPORT extern const char kDisableLCDText[]; +CC_EXPORT extern const char kDisableGPURasterization[]; CC_EXPORT extern const char kDisableImplSidePainting[]; CC_EXPORT extern const char kDisableThreadedAnimation[]; CC_EXPORT extern const char kDisableCompositedAntialiasing[]; @@ -73,6 +74,7 @@ CC_EXPORT extern const char kCCLayerTreeTestNoTimeout[]; CC_EXPORT extern const char kCCRebaselinePixeltests[]; CC_EXPORT bool IsLCDTextEnabled(); +CC_EXPORT bool IsGpuRasterizationEnabled(); CC_EXPORT bool IsImplSidePaintingEnabled(); CC_EXPORT bool IsMapImageEnabled(); |