Index: cc/resources/picture_pile_impl_unittest.cc |
diff --git a/cc/resources/picture_pile_impl_unittest.cc b/cc/resources/picture_pile_impl_unittest.cc |
index ed3307e5ea47e42bd44da7474fa3bc04f15141a0..987b143bcc897a556aa44cc513c073cf9fb6f47b 100644 |
--- a/cc/resources/picture_pile_impl_unittest.cc |
+++ b/cc/resources/picture_pile_impl_unittest.cc |
@@ -665,7 +665,6 @@ TEST(PicturePileImplTest, PixelRefIteratorMultiplePictures) { |
pile->RerecordPile(); |
FakeContentLayerClient content_layer_clients[2][2]; |
- FakeRenderingStatsInstrumentation stats_instrumentation; |
scoped_refptr<Picture> pictures[2][2]; |
for (int y = 0; y < 2; ++y) { |
for (int x = 0; x < 2; ++x) { |
@@ -679,7 +678,7 @@ TEST(PicturePileImplTest, PixelRefIteratorMultiplePictures) { |
pictures[y][x]->Record( |
&content_layer_clients[y][x], |
tile_grid_info); |
- pictures[y][x]->GatherPixelRefs(tile_grid_info, &stats_instrumentation); |
+ pictures[y][x]->GatherPixelRefs(tile_grid_info); |
pile->AddPictureToRecording(0, 0, pictures[y][x]); |
} |
} |
@@ -748,9 +747,10 @@ TEST(PicturePileImpl, RasterContentsOpaque) { |
bitmap.allocPixels(); |
SkCanvas canvas(bitmap); |
- PicturePileImpl::RasterStats raster_stats; |
+ FakeRenderingStatsInstrumentation rendering_stats_instrumentation; |
+ |
pile->RasterToBitmap( |
- &canvas, canvas_rect, contents_scale, &raster_stats); |
+ &canvas, canvas_rect, contents_scale, &rendering_stats_instrumentation); |
SkColor* pixels = reinterpret_cast<SkColor*>(bitmap.getPixels()); |
int num_pixels = bitmap.width() * bitmap.height(); |
@@ -784,9 +784,9 @@ TEST(PicturePileImpl, RasterContentsTransparent) { |
bitmap.allocPixels(); |
SkCanvas canvas(bitmap); |
- PicturePileImpl::RasterStats raster_stats; |
+ FakeRenderingStatsInstrumentation rendering_stats_instrumentation; |
pile->RasterToBitmap( |
- &canvas, canvas_rect, contents_scale, &raster_stats); |
+ &canvas, canvas_rect, contents_scale, &rendering_stats_instrumentation); |
SkColor* pixels = reinterpret_cast<SkColor*>(bitmap.getPixels()); |
int num_pixels = bitmap.width() * bitmap.height(); |