summaryrefslogtreecommitdiffstats
path: root/cc/picture.cc
diff options
context:
space:
mode:
authornduca@chromium.org <nduca@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-11-29 23:07:28 +0000
committernduca@chromium.org <nduca@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-11-29 23:07:28 +0000
commit27a2da86678e5c70d71ac82ae5580b81645371d5 (patch)
tree4bcdaac6cef9419ac0279e3265318bdfce872329 /cc/picture.cc
parent7472d1e03a27deee832d540c26bf8b0c2958dc71 (diff)
downloadchromium_src-27a2da86678e5c70d71ac82ae5580b81645371d5.zip
chromium_src-27a2da86678e5c70d71ac82ae5580b81645371d5.tar.gz
chromium_src-27a2da86678e5c70d71ac82ae5580b81645371d5.tar.bz2
Track the rendering & painting cost of impl-side painting.
We record how long the rendering thread takes to render each PicturePile, accumulate in TileManager, and report through LayerTreeHostImpl; telemetry queries this information and dumps the output. Note that non-impl-side-painting doesn't yet report this correctly? BUG=163324 TEST=manual TBR=nduca,reveman Review URL: https://codereview.chromium.org/11434033 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@170274 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'cc/picture.cc')
-rw-r--r--cc/picture.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/cc/picture.cc b/cc/picture.cc
index 4284c39..afbb70e 100644
--- a/cc/picture.cc
+++ b/cc/picture.cc
@@ -68,6 +68,8 @@ void Picture::Record(ContentLayerClient* painter, gfx::Rect layer_rect,
painter->paintContents(canvas, layer_rect, opaque_layer_rect);
double delta = (base::TimeTicks::Now() - beginPaintTime).InSecondsF();
stats.totalPaintTimeInSeconds += delta;
+ stats.totalPixelsPainted += opaque_layer_rect.width() *
+ opaque_layer_rect.height();
canvas->restore();
picture_->endRecording();