Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1469)

Unified Diff: cc/base/switches.cc

Issue 85813003: --enable-gpu-rasterization flag for turning on hybrid ganesh mode (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rework patch for ToT conflicts Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/base/switches.h ('k') | chrome/browser/chromeos/login/chrome_restart_request.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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();
« no previous file with comments | « cc/base/switches.h ('k') | chrome/browser/chromeos/login/chrome_restart_request.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698