summaryrefslogtreecommitdiffstats
path: root/cc
diff options
context:
space:
mode:
authorernstm@chromium.org <ernstm@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-02-06 09:20:53 +0000
committerernstm@chromium.org <ernstm@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-02-06 09:20:53 +0000
commitfe3beef0a468d2a7cdb0ca7576efd2eac23ff7b4 (patch)
treebda2a7c6c8787bf724dd4060314090d105e956e8 /cc
parent11c14eaecadd86cffde07ec40c566093ad7e97b2 (diff)
downloadchromium_src-fe3beef0a468d2a7cdb0ca7576efd2eac23ff7b4.zip
chromium_src-fe3beef0a468d2a7cdb0ca7576efd2eac23ff7b4.tar.gz
chromium_src-fe3beef0a468d2a7cdb0ca7576efd2eac23ff7b4.tar.bz2
cc: Enable rendering stats recording in browser compositor.
This patch moves the kEnableGpuBenchmarking switch from content switches to cc switches for it to be accessible from ui/compositor/compositor.cc. If the flag is set, the browser compositor enalbes recording of rendering stats in its constructor. The recorded stats will be used by a follow-up patch that switches smoothness benchmark to use time stamps from the browser compositor when available. R=piman@chromium.org,nduca@chromium.org BUG=340747 Review URL: https://codereview.chromium.org/148983007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@249307 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'cc')
-rw-r--r--cc/base/switches.cc3
-rw-r--r--cc/base/switches.h1
2 files changed, 4 insertions, 0 deletions
diff --git a/cc/base/switches.cc b/cc/base/switches.cc
index 487c5ec..7e45074 100644
--- a/cc/base/switches.cc
+++ b/cc/base/switches.cc
@@ -89,6 +89,9 @@ const char kUIDisablePartialSwap[] = "ui-disable-partial-swap";
const char kEnablePerTilePainting[] = "enable-per-tile-painting";
const char kUIEnablePerTilePainting[] = "ui-enable-per-tile-painting";
+// Enables the GPU benchmarking extension
+const char kEnableGpuBenchmarking[] = "enable-gpu-benchmarking";
+
// Renders a border around compositor layers to help debug and study
// layer compositing.
const char kShowCompositedLayerBorders[] = "show-composited-layer-borders";
diff --git a/cc/base/switches.h b/cc/base/switches.h
index 500df71..5821d18 100644
--- a/cc/base/switches.h
+++ b/cc/base/switches.h
@@ -47,6 +47,7 @@ CC_EXPORT extern const char kDisableCompositorTouchHitTesting[];
CC_EXPORT extern const char kUIDisablePartialSwap[];
CC_EXPORT extern const char kEnablePerTilePainting[];
CC_EXPORT extern const char kUIEnablePerTilePainting[];
+CC_EXPORT extern const char kEnableGpuBenchmarking[];
// Debug visualizations.
CC_EXPORT extern const char kShowCompositedLayerBorders[];