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

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
« no previous file with comments | « cc/base/switches.cc ('k') | tools/perf/benchmarks/image_decoding.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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(
cc::switches::kEnableCheckerImaging))
return true;
« no previous file with comments | « cc/base/switches.cc ('k') | tools/perf/benchmarks/image_decoding.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698