Chromium Code Reviews| Index: cc/trees/layer_tree_host_impl.cc |
| diff --git a/cc/trees/layer_tree_host_impl.cc b/cc/trees/layer_tree_host_impl.cc |
| index c3738e594734e6b5fd7df5d2fe9e6ca0191ba22e..0da6025a4faa7ecd856147fee3e0d0156130b1fb 100644 |
| --- a/cc/trees/layer_tree_host_impl.cc |
| +++ b/cc/trees/layer_tree_host_impl.cc |
| @@ -1101,6 +1101,11 @@ DrawResult LayerTreeHostImpl::PrepareToDraw(FrameData* frame) { |
| } |
| need_to_update_visible_tiles_before_draw_ = true; |
| + // Use a bucket width of 10 (i.e. 1000/100) to better |
| + // capture the expected case where there are few layers. |
| + UMA_HISTOGRAM_CUSTOM_COUNTS( |
| + "Compositing.NumLayers", active_tree_->NumLayers(), 1, 1000, 100); |
|
dneto
2014/07/10 20:15:57
Gah. Disregard. I changed the name of the histog
|
| + |
| bool ok = active_tree_->UpdateDrawProperties(); |
| DCHECK(ok) << "UpdateDrawProperties failed during draw"; |