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

Unified Diff: content/browser/gpu/compositor_util.cc

Issue 2960933002: tools/benchmarks: Fix failures in image decoding measurements. (Closed)
Patch Set: Created 3 years, 6 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: content/browser/gpu/compositor_util.cc
diff --git a/content/browser/gpu/compositor_util.cc b/content/browser/gpu/compositor_util.cc
index 1298d758be69ca71da7af70e1afe58c859c8ec19..011454be101ffc3190e175784803f92300f87892 100644
--- a/content/browser/gpu/compositor_util.cc
+++ b/content/browser/gpu/compositor_util.cc
@@ -284,6 +284,10 @@ bool IsMainFrameBeforeActivationEnabled() {
}
bool IsCheckerImagingEnabled() {
+ if (base::CommandLine::ForCurrentProcess()->HasSwitch(
+ cc::switches::kDisableCheckerImaging))
+ return false;
+
if (base::CommandLine::ForCurrentProcess()->HasSwitch(
cblume 2017/06/28 19:17:26 Just to make sure I understand this correctly, We
Khushal 2017/06/28 20:29:55 The command line switches are not exposed to the u
cc::switches::kEnableCheckerImaging))
return true;

Powered by Google App Engine
This is Rietveld 408576698