| Index: cc/base/switches.cc
|
| diff --git a/cc/base/switches.cc b/cc/base/switches.cc
|
| index be4a2c55adfbcb22214a0a92439f59da8fd112e2..752abc607729186d3090c70a75c2e1c80610b949 100644
|
| --- a/cc/base/switches.cc
|
| +++ b/cc/base/switches.cc
|
| @@ -41,6 +41,11 @@ const char kEnableTopControlsPositionCalculation[] =
|
| // painting.
|
| const char kForceDirectLayerDrawing[] = "force-direct-layer-drawing";
|
|
|
| +// Allow heuristics to determine when a layer tile should be drawn with
|
| +// the Skia GPU backend. Only valid with GPU accelerated compositing +
|
| +// impl-side painting.
|
| +const char kEnableGPURasterization[] = "enable-gpu-rasterization";
|
| +
|
| // The height of the movable top controls.
|
| const char kTopControlsHeight[] = "top-controls-height";
|
|
|
| @@ -187,6 +192,11 @@ bool IsImplSidePaintingEnabled() {
|
| return enabled;
|
| }
|
|
|
| +bool IsGPURasterizationEnabled() {
|
| + const CommandLine& command_line = *CommandLine::ForCurrentProcess();
|
| + return command_line.HasSwitch(cc::switches::kEnableGPURasterization);
|
| +}
|
| +
|
| bool IsMapImageEnabled() {
|
| const CommandLine& command_line = *CommandLine::ForCurrentProcess();
|
|
|
|
|