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

Unified Diff: cc/base/switches.cc

Issue 135223002: telemetry: add smoothness.*.key_silk_cases benchmarks (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase. Created 6 years, 11 months 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 dd0fa524dc0f3403c9997d15fe94dd8d139a6821..5f405ea082e334350f478c042d2b920c447000f9 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();
« 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