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

Side by Side Diff: cc/trees/layer_tree_impl.cc

Issue 375093002: Initial attempt at counting layers in the compositor thread. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Use LayerTreeImpl::layer_id_map_.size() and fix histogram name Created 6 years, 5 months 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 unified diff | Download patch
OLDNEW
1 // Copyright 2011 The Chromium Authors. All rights reserved. 1 // Copyright 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "cc/trees/layer_tree_impl.h" 5 #include "cc/trees/layer_tree_impl.h"
6 6
7 #include <limits> 7 #include <limits>
8 #include <set> 8 #include <set>
9 9
10 #include "base/debug/trace_event.h" 10 #include "base/debug/trace_event.h"
(...skipping 1359 matching lines...) Expand 10 before | Expand all | Expand 10 after
1370 } 1370 }
1371 1371
1372 void LayerTreeImpl::UnregisterPictureLayerImpl(PictureLayerImpl* layer) { 1372 void LayerTreeImpl::UnregisterPictureLayerImpl(PictureLayerImpl* layer) {
1373 layer_tree_host_impl_->UnregisterPictureLayerImpl(layer); 1373 layer_tree_host_impl_->UnregisterPictureLayerImpl(layer);
1374 } 1374 }
1375 1375
1376 void LayerTreeImpl::InputScrollAnimationFinished() { 1376 void LayerTreeImpl::InputScrollAnimationFinished() {
1377 layer_tree_host_impl_->ScrollEnd(); 1377 layer_tree_host_impl_->ScrollEnd();
1378 } 1378 }
1379 1379
1380 size_t LayerTreeImpl::NumLayers() {
danakj 2014/07/10 21:27:44 can you move up below Register/UnregisterLayer()
dneto 2014/07/11 15:23:30 Acknowledged.
1381 return layer_id_map_.size();
1382 }
1383
1380 } // namespace cc 1384 } // namespace cc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698