summaryrefslogtreecommitdiffstats
path: root/cc/resources/content_layer_updater.cc
diff options
context:
space:
mode:
authorernstm@chromium.org <ernstm@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-04-26 16:38:50 +0000
committerernstm@chromium.org <ernstm@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-04-26 16:38:50 +0000
commit41abb6d9f69fd6e3da44b555107252d709f32105 (patch)
treeab9446dcf84e1370b8bd4f55f731543292959913 /cc/resources/content_layer_updater.cc
parent77ef3b22da2f5e19e69ee46e0dc2d88e66f44786 (diff)
downloadchromium_src-41abb6d9f69fd6e3da44b555107252d709f32105.zip
chromium_src-41abb6d9f69fd6e3da44b555107252d709f32105.tar.gz
chromium_src-41abb6d9f69fd6e3da44b555107252d709f32105.tar.bz2
Improved measurement of rasterize time and pixels rasterized.
- Reporting minimum rasterize time out of multiple runs excludes time when the raster thread is de-scheduled and it excludes cache effects. In order for this to work reliably, slow-down-raster-scale-factor needs to be set to a large value (e.g. 100). - Fixed computation of number of pixels rasterized to use the intersection of content_clip and canvas_rect, instead of content_clip. - The improved measurements are designed for a new rasterize and paint benchmark that will be committed in a spearate CL. - Separated paint time (direct rasterization without prior recording to an SkPicture) from record time BUG=226489 Review URL: https://chromiumcodereview.appspot.com/13933035 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@196751 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'cc/resources/content_layer_updater.cc')
-rw-r--r--cc/resources/content_layer_updater.cc7
1 files changed, 0 insertions, 7 deletions
diff --git a/cc/resources/content_layer_updater.cc b/cc/resources/content_layer_updater.cc
index 9607ec6..e267398 100644
--- a/cc/resources/content_layer_updater.cc
+++ b/cc/resources/content_layer_updater.cc
@@ -56,14 +56,7 @@ void ContentLayerUpdater::PaintContents(SkCanvas* canvas,
canvas->clipRect(layer_sk_rect);
gfx::RectF opaque_layer_rect;
- base::TimeTicks paint_begin_time;
- if (stats)
- paint_begin_time = base::TimeTicks::Now();
painter_->Paint(canvas, layer_rect, &opaque_layer_rect);
- if (stats) {
- stats->total_paint_time += base::TimeTicks::Now() - paint_begin_time;
- stats->total_pixels_painted += content_rect.width() * content_rect.height();
- }
canvas->restore();
gfx::RectF opaque_content_rect = gfx::ScaleRect(