Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(372)

Unified Diff: cc/resources/picture_pile_impl_unittest.cc

Issue 26031002: cc: Remove unused metrics from RenderingStats. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed raster_worker_pool_perftest.cc Created 7 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/resources/picture_pile_impl.cc ('k') | cc/resources/picture_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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();
« no previous file with comments | « cc/resources/picture_pile_impl.cc ('k') | cc/resources/picture_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698