Index: cc/base/switches.cc |
diff --git a/cc/base/switches.cc b/cc/base/switches.cc |
index be4a2c55adfbcb22214a0a92439f59da8fd112e2..ebf345b4158c0859390a8add01d7b76374cc4ed7 100644 |
--- a/cc/base/switches.cc |
+++ b/cc/base/switches.cc |
@@ -41,6 +41,12 @@ 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 gl rendering + threaded compositing + |
enne (OOO)
2013/11/25 22:43:32
To be future proof, I wouldn't mention threaded co
Vangelis Kokkevis
2013/11/25 22:53:52
And instead of "gl rendering" this should probabl
|
+// impl-side painting. |
+ |
enne (OOO)
2013/11/25 22:43:32
nit: empty line doesn't match style of rest of the
|
+const char kEnableGPURasterization[] = "enable-gpu-rasterization"; |
+ |
// The height of the movable top controls. |
const char kTopControlsHeight[] = "top-controls-height"; |
@@ -187,6 +193,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(); |