summaryrefslogtreecommitdiffstats
path: root/cc/switches.cc
diff options
context:
space:
mode:
authordanakj@chromium.org <danakj@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-11-12 19:59:02 +0000
committerdanakj@chromium.org <danakj@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-11-12 19:59:02 +0000
commit86ed46c6b11879605e15018d7a7ae9031c602e07 (patch)
tree35afda8c9106f79684775321fc242faa1b330aa6 /cc/switches.cc
parentaa8461e365375015d624540370202af5a4b36723 (diff)
downloadchromium_src-86ed46c6b11879605e15018d7a7ae9031c602e07.zip
chromium_src-86ed46c6b11879605e15018d7a7ae9031c602e07.tar.gz
chromium_src-86ed46c6b11879605e15018d7a7ae9031c602e07.tar.bz2
cc: Guard overdraw metrics behind the --trace-overdraw command-line flag.
Because these metrics are slow, they change the characteristics of traces. When we want to look at performance, then these become misleading. So, enable them only when desired, when someone wants tracing information about overdraw. Also reverting changes made to make the overdraw metrics faster and less precise. Since they are optional, we should get the most accurate data out of them when they are turned on. BUG=159718 R=enne,jamesr Review URL: https://codereview.chromium.org/11369188 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@167228 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'cc/switches.cc')
-rw-r--r--cc/switches.cc8
1 files changed, 6 insertions, 2 deletions
diff --git a/cc/switches.cc b/cc/switches.cc
index 2214c3d..be81100 100644
--- a/cc/switches.cc
+++ b/cc/switches.cc
@@ -22,12 +22,16 @@ const char kEnablePerTilePainting[] = "enable-per-tile-painting";
// compositor.
const char kEnablePinchInCompositor[] = "enable-pinch-in-compositor";
+// Paint content on the compositor thread instead of the main thread.
+const char kImplSidePainting[] = "impl-side-painting";
+
// When threaded compositing is turned on, wait until the entire frame has
// content (i.e. jank) instead of showing checkerboards for missing content.
const char kJankInsteadOfCheckerboard[] = "jank-instead-of-checkerboard";
-// Paint content on the compositor thread instead of the main thread.
-const char kImplSidePainting[] = "impl-side-painting";
+// Show metrics about overdraw in about:tracing recordings, such as the number
+// of pixels culled, and the number of pixels drawn, for each frame.
+const char kTraceOverdraw[] = "trace-overdraw";
} // namespace switches
} // namespace cc