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

Unified Diff: cc/resources/picture.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.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 f9afca9ee3dfdfdd6a96f9f1b6f28b50df48f08e..32cce03e748d0a444a8bd4bd18e3d39240734cae 100644
--- a/cc/resources/picture.cc
+++ b/cc/resources/picture.cc
@@ -204,8 +204,7 @@ void Picture::CloneForDrawing(int num_threads) {
}
void Picture::Record(ContentLayerClient* painter,
- const SkTileGridPicture::TileGridInfo& tile_grid_info,
- RenderingStatsInstrumentation* stats_instrumentation) {
+ const SkTileGridPicture::TileGridInfo& tile_grid_info) {
TRACE_EVENT1(benchmark_instrumentation::kCategory,
benchmark_instrumentation::kPictureRecord,
benchmark_instrumentation::kData, AsTraceableRecordData());
@@ -231,14 +230,9 @@ void Picture::Record(ContentLayerClient* painter,
canvas->clipRect(layer_skrect);
gfx::RectF opaque_layer_rect;
- base::TimeTicks start_time = stats_instrumentation->StartRecording();
painter->PaintContents(canvas, layer_rect_, &opaque_layer_rect);
- base::TimeDelta duration = stats_instrumentation->EndRecording(start_time);
- stats_instrumentation->AddRecord(duration,
- layer_rect_.width() * layer_rect_.height());
-
canvas->restore();
picture_->endRecording();
« 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