Index: cc/trees/layer_tree_host.cc |
diff --git a/cc/trees/layer_tree_host.cc b/cc/trees/layer_tree_host.cc |
index 16f6be75caae231fd8139dee24045fcb1004413d..2ba6da2c19b45e9808c59b8f41c553d830d862f3 100644 |
--- a/cc/trees/layer_tree_host.cc |
+++ b/cc/trees/layer_tree_host.cc |
@@ -829,8 +829,7 @@ size_t LayerTreeHost::CalculateMemoryForRenderSurfaces( |
} |
bool LayerTreeHost::PaintMasksForRenderSurface(Layer* render_surface_layer, |
- ResourceUpdateQueue* queue, |
- RenderingStats* stats) { |
+ ResourceUpdateQueue* queue) { |
// Note: Masks and replicas only exist for layers that own render surfaces. If |
// we reach this point in code, we already know that at least something will |
// be drawn into this render surface, so the mask and replica should be |
@@ -839,7 +838,7 @@ bool LayerTreeHost::PaintMasksForRenderSurface(Layer* render_surface_layer, |
bool need_more_updates = false; |
Layer* mask_layer = render_surface_layer->mask_layer(); |
if (mask_layer) { |
- mask_layer->Update(queue, NULL, stats); |
+ mask_layer->Update(queue, NULL); |
need_more_updates |= mask_layer->NeedMoreUpdates(); |
} |
@@ -847,7 +846,7 @@ bool LayerTreeHost::PaintMasksForRenderSurface(Layer* render_surface_layer, |
render_surface_layer->replica_layer() ? |
render_surface_layer->replica_layer()->mask_layer() : NULL; |
if (replica_mask_layer) { |
- replica_mask_layer->Update(queue, NULL, stats); |
+ replica_mask_layer->Update(queue, NULL); |
need_more_updates |= replica_mask_layer->NeedMoreUpdates(); |
} |
return need_more_updates; |
@@ -875,11 +874,6 @@ bool LayerTreeHost::PaintLayerContents( |
PrioritizeTextures(render_surface_layer_list, |
occlusion_tracker.overdraw_metrics()); |
- // TODO(egraether): Use RenderingStatsInstrumentation in Layer::update() |
- RenderingStats stats; |
- RenderingStats* stats_ptr = |
- debug_state_.RecordRenderingStats() ? &stats : NULL; |
- |
LayerIteratorType end = LayerIteratorType::End(&render_surface_layer_list); |
for (LayerIteratorType it = |
LayerIteratorType::Begin(&render_surface_layer_list); |
@@ -890,18 +884,16 @@ bool LayerTreeHost::PaintLayerContents( |
if (it.represents_target_render_surface()) { |
DCHECK(it->render_surface()->draw_opacity() || |
it->render_surface()->draw_opacity_is_animating()); |
- need_more_updates |= PaintMasksForRenderSurface(*it, queue, stats_ptr); |
+ need_more_updates |= PaintMasksForRenderSurface(*it, queue); |
} else if (it.represents_itself()) { |
DCHECK(!it->bounds().IsEmpty()); |
- it->Update(queue, &occlusion_tracker, stats_ptr); |
+ it->Update(queue, &occlusion_tracker); |
need_more_updates |= it->NeedMoreUpdates(); |
} |
occlusion_tracker.LeaveLayer(it); |
} |
- rendering_stats_instrumentation_->AddStats(stats); |
- |
occlusion_tracker.overdraw_metrics()->RecordMetrics(this); |
return need_more_updates; |