OLD | NEW |
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 Loading... |
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 Loading... |
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_ |
OLD | NEW |