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/switches.cc | |
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/switches.cc')
-rw-r--r-- | cc/base/switches.cc | 15 |
1 files changed, 15 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(); |