summaryrefslogtreecommitdiffstats
path: root/cc/layers/content_layer.cc
diff options
context:
space:
mode:
Diffstat (limited to 'cc/layers/content_layer.cc')
-rw-r--r--cc/layers/content_layer.cc12
1 files changed, 9 insertions, 3 deletions
diff --git a/cc/layers/content_layer.cc b/cc/layers/content_layer.cc
index c29d72e..a6aa5ba 100644
--- a/cc/layers/content_layer.cc
+++ b/cc/layers/content_layer.cc
@@ -96,11 +96,17 @@ void ContentLayer::CreateUpdaterIfNeeded() {
scoped_ptr<LayerPainter> painter =
ContentLayerPainter::Create(client_).PassAs<LayerPainter>();
if (layer_tree_host()->settings().accelerate_painting)
- updater_ = SkPictureContentLayerUpdater::Create(painter.Pass());
+ updater_ = SkPictureContentLayerUpdater::Create(
+ painter.Pass(),
+ rendering_stats_instrumentation());
else if (layer_tree_host()->settings().per_tile_painting_enabled)
- updater_ = BitmapSkPictureContentLayerUpdater::Create(painter.Pass());
+ updater_ = BitmapSkPictureContentLayerUpdater::Create(
+ painter.Pass(),
+ rendering_stats_instrumentation());
else
- updater_ = BitmapContentLayerUpdater::Create(painter.Pass());
+ updater_ = BitmapContentLayerUpdater::Create(
+ painter.Pass(),
+ rendering_stats_instrumentation());
updater_->SetOpaque(contents_opaque());
unsigned texture_format =