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

Unified Diff: cc/base/switches.h

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 | « build/common.gypi ('k') | cc/base/switches.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/base/switches.h
diff --git a/cc/base/switches.h b/cc/base/switches.h
index 00acca8f32ae1d86b7de33751b82b031dcf96a1c..f10a1d8c1044fbde9ada999360eea215593cfc7a 100644
--- a/cc/base/switches.h
+++ b/cc/base/switches.h
@@ -7,12 +7,20 @@
#ifndef CC_BASE_SWITCHES_H_
#define CC_BASE_SWITCHES_H_
+#include "build/build_config.h"
#include "cc/base/cc_export.h"
// Since cc is used from the render process, anything that goes here also needs
// to be added to render_process_host_impl.cc.
-namespace cc {
+#ifdef ENABLE_FAST_COMMAND_LINE_SWITCHES
+
+namespace {
+#include "cc/base/switches.cc"
+}
+
+#else
+
namespace switches {
// Switches for the renderer compositor only.
@@ -64,9 +72,7 @@ CC_EXPORT extern const char kUIShowNonOccludingRects[];
// Unit test related.
CC_EXPORT extern const char kCCLayerTreeTestNoTimeout[];
-CC_EXPORT bool IsImplSidePaintingEnabled();
-
} // namespace switches
-} // namespace cc
+#endif // ENABLE_FAST_COMMAND_LINE_SWITCHES
#endif // CC_BASE_SWITCHES_H_
« no previous file with comments | « build/common.gypi ('k') | cc/base/switches.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698