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

Unified Diff: cc/base/switches.cc

Issue 19925003: WIP - command line experiment Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 5 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') | cc/base/util.h » ('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 768cfdee04749dad89f3aff1016e2bc3aa67c040..8609e0e789c837087bf4d505545acd18af74f769 100644
--- a/cc/base/switches.cc
+++ b/cc/base/switches.cc
@@ -4,9 +4,6 @@
#include "cc/base/switches.h"
-#include "base/command_line.h"
-
-namespace cc {
namespace switches {
// On platforms where checkerboards are used, prefer background colors instead
@@ -127,20 +124,4 @@ const char kUseMapImage[] = "use-map-image";
// Prevents the layer tree unit tests from timing out.
const char kCCLayerTreeTestNoTimeout[] = "cc-layer-tree-test-no-timeout";
-bool IsImplSidePaintingEnabled() {
- const CommandLine& command_line = *CommandLine::ForCurrentProcess();
-
- if (command_line.HasSwitch(cc::switches::kDisableImplSidePainting))
- return false;
- else if (command_line.HasSwitch(cc::switches::kEnableImplSidePainting))
- return true;
-
-#if defined(OS_ANDROID)
- return true;
-#else
- return false;
-#endif
-}
-
} // namespace switches
-} // namespace cc
« no previous file with comments | « cc/base/switches.h ('k') | cc/base/util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698