Index: cc/layers/content_layer.cc |
diff --git a/cc/layers/content_layer.cc b/cc/layers/content_layer.cc |
index c29d72ef7056bca39e726b704340e8f02ef05b29..4ad1bc795a9b0555c23034711d8556f8d1b5b74b 100644 |
--- a/cc/layers/content_layer.cc |
+++ b/cc/layers/content_layer.cc |
@@ -68,8 +68,7 @@ void ContentLayer::SetTexturePriorities( |
} |
void ContentLayer::Update(ResourceUpdateQueue* queue, |
- const OcclusionTracker* occlusion, |
- RenderingStats* stats) { |
+ const OcclusionTracker* occlusion) { |
{ |
base::AutoReset<bool> ignore_set_needs_commit(&ignore_set_needs_commit_, |
true); |
@@ -78,7 +77,7 @@ void ContentLayer::Update(ResourceUpdateQueue* queue, |
UpdateCanUseLCDText(); |
} |
- TiledLayer::Update(queue, occlusion, stats); |
+ TiledLayer::Update(queue, occlusion); |
needs_display_ = false; |
} |
@@ -96,11 +95,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 = |