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

Unified Diff: cc/util.cc

Issue 12221005: Add flag to disable impl-side painting (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: removing line Created 7 years, 10 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
Index: cc/util.cc
diff --git a/cc/util.cc b/cc/util.cc
new file mode 100644
index 0000000000000000000000000000000000000000..75019e9822b54976f717bd18188e497ca5bcc64b
--- /dev/null
+++ b/cc/util.cc
@@ -0,0 +1,19 @@
+// Copyright 2012 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "base/command_line.h"
+#include "cc/switches.h"
+
+namespace cc {
+
+bool IsImplSidePaintingEnabled(const CommandLine *cl)
+{
+ // The disable flag takes precedence over the enable flag.
+ if (cl->HasSwitch(cc::switches::kDisableImplSidePainting))
+ return false;
+
+ return cl->HasSwitch(cc::switches::kEnableImplSidePainting);
+}
+
+} // namespace cc
« cc/util.h ('K') | « cc/util.h ('k') | chrome/app/generated_resources.grd » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698