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 505 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 Loading... |
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_ |
OLD | NEW |