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 497 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
508 bool HasScrollbar(ScrollbarOrientation orientation) const; | 508 bool HasScrollbar(ScrollbarOrientation orientation) const; |
509 void ScrollbarParametersDidChange(); | 509 void ScrollbarParametersDidChange(); |
510 int clip_height() { | 510 int clip_height() { |
511 return scroll_clip_layer_ ? scroll_clip_layer_->bounds().height() : 0; | 511 return scroll_clip_layer_ ? scroll_clip_layer_->bounds().height() : 0; |
512 } | 512 } |
513 | 513 |
514 gfx::Rect LayerRectToContentRect(const gfx::RectF& layer_rect) const; | 514 gfx::Rect LayerRectToContentRect(const gfx::RectF& layer_rect) const; |
515 | 515 |
516 virtual skia::RefPtr<SkPicture> GetPicture(); | 516 virtual skia::RefPtr<SkPicture> GetPicture(); |
517 | 517 |
518 virtual bool AreVisibleResourcesReady() const; | |
519 | |
520 virtual scoped_ptr<LayerImpl> CreateLayerImpl(LayerTreeImpl* tree_impl); | 518 virtual scoped_ptr<LayerImpl> CreateLayerImpl(LayerTreeImpl* tree_impl); |
521 virtual void PushPropertiesTo(LayerImpl* layer); | 519 virtual void PushPropertiesTo(LayerImpl* layer); |
522 | 520 |
523 scoped_ptr<base::Value> AsValue() const; | 521 scoped_ptr<base::Value> AsValue() const; |
524 virtual size_t GPUMemoryUsageInBytes() const; | 522 virtual size_t GPUMemoryUsageInBytes() const; |
525 | 523 |
526 void SetNeedsPushProperties(); | 524 void SetNeedsPushProperties(); |
527 void AddDependentNeedsPushProperties(); | 525 void AddDependentNeedsPushProperties(); |
528 void RemoveDependentNeedsPushProperties(); | 526 void RemoveDependentNeedsPushProperties(); |
529 bool parent_should_know_need_push_properties() const { | 527 bool parent_should_know_need_push_properties() const { |
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
690 DrawProperties<LayerImpl> draw_properties_; | 688 DrawProperties<LayerImpl> draw_properties_; |
691 | 689 |
692 scoped_refptr<base::debug::ConvertableToTraceFormat> debug_info_; | 690 scoped_refptr<base::debug::ConvertableToTraceFormat> debug_info_; |
693 | 691 |
694 DISALLOW_COPY_AND_ASSIGN(LayerImpl); | 692 DISALLOW_COPY_AND_ASSIGN(LayerImpl); |
695 }; | 693 }; |
696 | 694 |
697 } // namespace cc | 695 } // namespace cc |
698 | 696 |
699 #endif // CC_LAYERS_LAYER_IMPL_H_ | 697 #endif // CC_LAYERS_LAYER_IMPL_H_ |
OLD | NEW |