From 41abb6d9f69fd6e3da44b555107252d709f32105 Mon Sep 17 00:00:00 2001 From: "ernstm@chromium.org" Date: Fri, 26 Apr 2013 16:38:50 +0000 Subject: 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 --- cc/output/gl_renderer.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'cc/output/gl_renderer.cc') diff --git a/cc/output/gl_renderer.cc b/cc/output/gl_renderer.cc index 4a0c7ba..adfcf47 100644 --- a/cc/output/gl_renderer.cc +++ b/cc/output/gl_renderer.cc @@ -1467,7 +1467,8 @@ void GLRenderer::DrawPictureQuad(const DrawingFrame* frame, SkDevice device(on_demand_tile_raster_bitmap_); SkCanvas canvas(&device); - quad->picture_pile->Raster(&canvas, quad->content_rect, quad->contents_scale); + quad->picture_pile->Raster(&canvas, quad->content_rect, quad->contents_scale, + NULL); resource_provider_->SetPixels( on_demand_tile_raster_resource_id_, -- cgit v1.1