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

Side by Side Diff: cc/layers/layer_impl.h

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
« no previous file with comments | « no previous file | cc/layers/layer_impl.cc » ('j') | cc/trees/layer_tree_host_impl.cc » ('J')
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 #ifndef CC_LAYERS_LAYER_IMPL_H_ 5 #ifndef CC_LAYERS_LAYER_IMPL_H_
6 #define CC_LAYERS_LAYER_IMPL_H_ 6 #define CC_LAYERS_LAYER_IMPL_H_
7 7
8 #include <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 10
(...skipping 506 matching lines...) Expand 10 before | Expand all | Expand 10 after
517 return scroll_clip_layer_ ? scroll_clip_layer_->bounds().height() : 0; 517 return scroll_clip_layer_ ? scroll_clip_layer_->bounds().height() : 0;
518 } 518 }
519 519
520 gfx::Rect LayerRectToContentRect(const gfx::RectF& layer_rect) const; 520 gfx::Rect LayerRectToContentRect(const gfx::RectF& layer_rect) const;
521 521
522 virtual skia::RefPtr<SkPicture> GetPicture(); 522 virtual skia::RefPtr<SkPicture> GetPicture();
523 523
524 virtual scoped_ptr<LayerImpl> CreateLayerImpl(LayerTreeImpl* tree_impl); 524 virtual scoped_ptr<LayerImpl> CreateLayerImpl(LayerTreeImpl* tree_impl);
525 virtual void PushPropertiesTo(LayerImpl* layer); 525 virtual void PushPropertiesTo(LayerImpl* layer);
526 526
527 virtual void AllTilesForTracingInto(std::set<const Tile*>* tiles) const;
527 virtual void AsValueInto(base::debug::TracedValue* dict) const; 528 virtual void AsValueInto(base::debug::TracedValue* dict) const;
528 529
529 virtual size_t GPUMemoryUsageInBytes() const; 530 virtual size_t GPUMemoryUsageInBytes() const;
530 531
531 void SetNeedsPushProperties(); 532 void SetNeedsPushProperties();
532 void AddDependentNeedsPushProperties(); 533 void AddDependentNeedsPushProperties();
533 void RemoveDependentNeedsPushProperties(); 534 void RemoveDependentNeedsPushProperties();
534 bool parent_should_know_need_push_properties() const { 535 bool parent_should_know_need_push_properties() const {
535 return needs_push_properties() || descendant_needs_push_properties(); 536 return needs_push_properties() || descendant_needs_push_properties();
536 } 537 }
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after
704 DrawProperties<LayerImpl> draw_properties_; 705 DrawProperties<LayerImpl> draw_properties_;
705 706
706 scoped_refptr<base::debug::ConvertableToTraceFormat> debug_info_; 707 scoped_refptr<base::debug::ConvertableToTraceFormat> debug_info_;
707 708
708 DISALLOW_COPY_AND_ASSIGN(LayerImpl); 709 DISALLOW_COPY_AND_ASSIGN(LayerImpl);
709 }; 710 };
710 711
711 } // namespace cc 712 } // namespace cc
712 713
713 #endif // CC_LAYERS_LAYER_IMPL_H_ 714 #endif // CC_LAYERS_LAYER_IMPL_H_
OLDNEW
« no previous file with comments | « no previous file | cc/layers/layer_impl.cc » ('j') | cc/trees/layer_tree_host_impl.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698