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

Unified Diff: cc/resources/picture_unittest.cc

Issue 25284005: cc: Add best_record_time to rendering stats. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Created 7 years, 3 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_unittest.cc ('k') | cc/resources/skpicture_content_layer_updater.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/resources/picture_unittest.cc
diff --git a/cc/resources/picture_unittest.cc b/cc/resources/picture_unittest.cc
index aa20ebb6381b4c335f8582a238f93a59062750b3..e7f632fbd15ddcc1c0a494dbc2af25e488e71869 100644
--- a/cc/resources/picture_unittest.cc
+++ b/cc/resources/picture_unittest.cc
@@ -33,7 +33,6 @@ TEST(PictureTest, AsBase64String) {
tile_grid_info.fOffset.setZero();
FakeContentLayerClient content_layer_client;
- FakeRenderingStatsInstrumentation stats_instrumentation;
scoped_ptr<base::Value> tmp;
@@ -52,8 +51,7 @@ TEST(PictureTest, AsBase64String) {
content_layer_client.add_draw_rect(layer_rect, red_paint);
scoped_refptr<Picture> one_rect_picture = Picture::Create(layer_rect);
one_rect_picture->Record(&content_layer_client,
- tile_grid_info,
- &stats_instrumentation);
+ tile_grid_info);
scoped_ptr<base::Value> serialized_one_rect(
one_rect_picture->AsValue());
@@ -79,8 +77,7 @@ TEST(PictureTest, AsBase64String) {
content_layer_client.add_draw_rect(gfx::Rect(25, 25, 50, 50), green_paint);
scoped_refptr<Picture> two_rect_picture = Picture::Create(layer_rect);
two_rect_picture->Record(&content_layer_client,
- tile_grid_info,
- &stats_instrumentation);
+ tile_grid_info);
scoped_ptr<base::Value> serialized_two_rect(
two_rect_picture->AsValue());
@@ -139,8 +136,7 @@ TEST(PictureTest, PixelRefIterator) {
scoped_refptr<Picture> picture = Picture::Create(layer_rect);
picture->Record(&content_layer_client,
- tile_grid_info,
- &stats_instrumentation);
+ tile_grid_info);
picture->GatherPixelRefs(tile_grid_info, &stats_instrumentation);
// Default iterator does not have any pixel refs
@@ -237,8 +233,7 @@ TEST(PictureTest, PixelRefIteratorNonZeroLayer) {
scoped_refptr<Picture> picture = Picture::Create(layer_rect);
picture->Record(&content_layer_client,
- tile_grid_info,
- &stats_instrumentation);
+ tile_grid_info);
picture->GatherPixelRefs(tile_grid_info, &stats_instrumentation);
// Default iterator does not have any pixel refs
@@ -359,8 +354,7 @@ TEST(PictureTest, PixelRefIteratorOnePixelQuery) {
scoped_refptr<Picture> picture = Picture::Create(layer_rect);
picture->Record(&content_layer_client,
- tile_grid_info,
- &stats_instrumentation);
+ tile_grid_info);
picture->GatherPixelRefs(tile_grid_info, &stats_instrumentation);
for (int y = 0; y < 4; ++y) {
@@ -389,7 +383,6 @@ TEST(PictureTest, CreateFromSkpValue) {
tile_grid_info.fOffset.setZero();
FakeContentLayerClient content_layer_client;
- FakeRenderingStatsInstrumentation stats_instrumentation;
scoped_ptr<base::Value> tmp;
@@ -408,8 +401,7 @@ TEST(PictureTest, CreateFromSkpValue) {
content_layer_client.add_draw_rect(layer_rect, red_paint);
scoped_refptr<Picture> one_rect_picture = Picture::Create(layer_rect);
one_rect_picture->Record(&content_layer_client,
- tile_grid_info,
- &stats_instrumentation);
+ tile_grid_info);
scoped_ptr<base::Value> serialized_one_rect(
one_rect_picture->AsValue());
« no previous file with comments | « cc/resources/picture_pile_impl_unittest.cc ('k') | cc/resources/skpicture_content_layer_updater.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698