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

Unified Diff: cc/resources/skpicture_content_layer_updater.cc

Issue 723343002: Update from https://crrev.com/304121 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 1 month 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/skpicture_content_layer_updater.h ('k') | cc/resources/tile.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/resources/skpicture_content_layer_updater.cc
diff --git a/cc/resources/skpicture_content_layer_updater.cc b/cc/resources/skpicture_content_layer_updater.cc
index bd524f235f1cd53a6b947236dead75c17412592f..3e6828fa608da87e73137f033c775088e6345ae8 100644
--- a/cc/resources/skpicture_content_layer_updater.cc
+++ b/cc/resources/skpicture_content_layer_updater.cc
@@ -16,9 +16,9 @@ namespace cc {
SkPictureContentLayerUpdater::SkPictureContentLayerUpdater(
scoped_ptr<LayerPainter> painter,
- RenderingStatsInstrumentation* stats_instrumentation,
int layer_id)
- : ContentLayerUpdater(painter.Pass(), stats_instrumentation, layer_id) {}
+ : ContentLayerUpdater(painter.Pass(), layer_id) {
+}
SkPictureContentLayerUpdater::~SkPictureContentLayerUpdater() {}
@@ -33,17 +33,11 @@ void SkPictureContentLayerUpdater::PrepareToUpdate(
recorder.beginRecording(paint_rect.width(), paint_rect.height(), NULL, 0);
DCHECK_EQ(paint_rect.width(), canvas->getBaseLayerSize().width());
DCHECK_EQ(paint_rect.height(), canvas->getBaseLayerSize().height());
- base::TimeTicks start_time =
- rendering_stats_instrumentation_->StartRecording();
PaintContents(canvas,
content_size,
paint_rect,
contents_width_scale,
contents_height_scale);
- base::TimeDelta duration =
- rendering_stats_instrumentation_->EndRecording(start_time);
- rendering_stats_instrumentation_->AddRecord(
- duration, paint_rect.width() * paint_rect.height());
picture_ = skia::AdoptRef(recorder.endRecording());
}
« no previous file with comments | « cc/resources/skpicture_content_layer_updater.h ('k') | cc/resources/tile.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698