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

Unified Diff: cc/resources/picture.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.h ('k') | cc/resources/picture_pile.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/resources/picture.cc
diff --git a/cc/resources/picture.cc b/cc/resources/picture.cc
index 32cce03e748d0a444a8bd4bd18e3d39240734cae..e9b41fddbef453ae2c0ebcfba58e55e11a1edb54 100644
--- a/cc/resources/picture.cc
+++ b/cc/resources/picture.cc
@@ -14,7 +14,6 @@
#include "cc/base/math_util.h"
#include "cc/base/util.h"
#include "cc/debug/benchmark_instrumentation.h"
-#include "cc/debug/rendering_stats_instrumentation.h"
#include "cc/debug/traced_picture.h"
#include "cc/debug/traced_value.h"
#include "cc/layers/content_layer_client.h"
@@ -242,8 +241,7 @@ void Picture::Record(ContentLayerClient* painter,
}
void Picture::GatherPixelRefs(
- const SkTileGridPicture::TileGridInfo& tile_grid_info,
- RenderingStatsInstrumentation* stats_instrumentation) {
+ const SkTileGridPicture::TileGridInfo& tile_grid_info) {
TRACE_EVENT2("cc", "Picture::GatherPixelRefs",
"width", layer_rect_.width(),
"height", layer_rect_.height());
@@ -262,8 +260,6 @@ void Picture::GatherPixelRefs(
int max_x = 0;
int max_y = 0;
- base::TimeTicks start_time = stats_instrumentation->StartRecording();
-
skia::LazyPixelRefList pixel_refs;
skia::LazyPixelRefUtils::GatherPixelRefs(picture_.get(), &pixel_refs);
for (skia::LazyPixelRefList::const_iterator it = pixel_refs.begin();
@@ -293,9 +289,6 @@ void Picture::GatherPixelRefs(
max_y = std::max(max_y, max.y());
}
- base::TimeDelta duration = stats_instrumentation->EndRecording(start_time);
- stats_instrumentation->AddImageGathering(duration);
-
min_pixel_cell_ = gfx::Point(min_x, min_y);
max_pixel_cell_ = gfx::Point(max_x, max_y);
}
« no previous file with comments | « cc/resources/picture.h ('k') | cc/resources/picture_pile.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698