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

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

Issue 493543002: cc: Report only on active tiles in tracing. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 4 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 | Annotate | Revision Log
« cc/trees/layer_tree_impl.h ('K') | « cc/trees/layer_tree_impl.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 808 matching lines...) Expand 10 before | Expand all | Expand 10 after
819 } 819 }
820 820
821 DebugRectHistory* LayerTreeImpl::debug_rect_history() const { 821 DebugRectHistory* LayerTreeImpl::debug_rect_history() const {
822 return layer_tree_host_impl_->debug_rect_history(); 822 return layer_tree_host_impl_->debug_rect_history();
823 } 823 }
824 824
825 AnimationRegistrar* LayerTreeImpl::animationRegistrar() const { 825 AnimationRegistrar* LayerTreeImpl::animationRegistrar() const {
826 return layer_tree_host_impl_->animation_registrar(); 826 return layer_tree_host_impl_->animation_registrar();
827 } 827 }
828 828
829 void LayerTreeImpl::AllTilesForTracingInto(std::set<const Tile*>* tiles) const {
830 typedef LayerIterator<LayerImpl> LayerIteratorType;
831 LayerIteratorType end = LayerIteratorType::End(&render_surface_layer_list_);
832 for (LayerIteratorType it =
833 LayerIteratorType::Begin(&render_surface_layer_list_);
834 it != end;
835 ++it) {
836 if (!it.represents_itself())
837 continue;
838 LayerImpl* layer_impl = *it;
839 layer_impl->AllTilesForTracingInto(tiles);
840 }
841 }
842
829 void LayerTreeImpl::AsValueInto(base::debug::TracedValue* state) const { 843 void LayerTreeImpl::AsValueInto(base::debug::TracedValue* state) const {
830 TracedValue::MakeDictIntoImplicitSnapshot(state, "cc::LayerTreeImpl", this); 844 TracedValue::MakeDictIntoImplicitSnapshot(state, "cc::LayerTreeImpl", this);
831 845
832 state->BeginDictionary("root_layer"); 846 state->BeginDictionary("root_layer");
833 root_layer_->AsValueInto(state); 847 root_layer_->AsValueInto(state);
834 state->EndDictionary(); 848 state->EndDictionary();
835 849
836 state->BeginArray("render_surface_layer_list"); 850 state->BeginArray("render_surface_layer_list");
837 typedef LayerIterator<LayerImpl> LayerIteratorType; 851 typedef LayerIterator<LayerImpl> LayerIteratorType;
838 LayerIteratorType end = LayerIteratorType::End(&render_surface_layer_list_); 852 LayerIteratorType end = LayerIteratorType::End(&render_surface_layer_list_);
(...skipping 557 matching lines...) Expand 10 before | Expand all | Expand 10 after
1396 1410
1397 void LayerTreeImpl::UnregisterPictureLayerImpl(PictureLayerImpl* layer) { 1411 void LayerTreeImpl::UnregisterPictureLayerImpl(PictureLayerImpl* layer) {
1398 layer_tree_host_impl_->UnregisterPictureLayerImpl(layer); 1412 layer_tree_host_impl_->UnregisterPictureLayerImpl(layer);
1399 } 1413 }
1400 1414
1401 void LayerTreeImpl::InputScrollAnimationFinished() { 1415 void LayerTreeImpl::InputScrollAnimationFinished() {
1402 layer_tree_host_impl_->ScrollEnd(); 1416 layer_tree_host_impl_->ScrollEnd();
1403 } 1417 }
1404 1418
1405 } // namespace cc 1419 } // namespace cc
OLDNEW
« cc/trees/layer_tree_impl.h ('K') | « cc/trees/layer_tree_impl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698