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

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

Powered by Google App Engine
This is Rietveld 408576698