Chromium Code Reviews| 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 435 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 446 void SetTransform(const gfx::Transform& transform); | 446 void SetTransform(const gfx::Transform& transform); |
| 447 const gfx::Transform& transform() const { return transform_; } | 447 const gfx::Transform& transform() const { return transform_; } |
| 448 bool TransformIsAnimating() const; | 448 bool TransformIsAnimating() const; |
| 449 bool TransformIsAnimatingOnImplOnly() const; | 449 bool TransformIsAnimatingOnImplOnly() const; |
| 450 | 450 |
| 451 // Note this rect is in layer space (not content space). | 451 // Note this rect is in layer space (not content space). |
| 452 void SetUpdateRect(const gfx::RectF& update_rect); | 452 void SetUpdateRect(const gfx::RectF& update_rect); |
| 453 | 453 |
| 454 const gfx::RectF& update_rect() const { return update_rect_; } | 454 const gfx::RectF& update_rect() const { return update_rect_; } |
| 455 | 455 |
| 456 void UnionDamageRect(gfx::Rect damage_rect); | |
|
enne (OOO)
2014/04/14 17:08:29
Can you name this function to be in the right spac
reveman
2014/04/14 20:03:07
Also, maybe more consistent to have this be SetDam
sohanjg
2014/04/15 10:03:48
Done.
sohanjg
2014/04/15 10:03:48
In that case, the caller(LTHI) needs to maintain t
| |
| 457 | |
| 458 void ResetDamageRect() { damage_rect_ = gfx::Rect(); } | |
| 459 | |
| 460 const gfx::Rect& damage_rect() const { return damage_rect_; } | |
| 461 | |
| 456 virtual base::DictionaryValue* LayerTreeAsJson() const; | 462 virtual base::DictionaryValue* LayerTreeAsJson() const; |
| 457 | 463 |
| 458 void SetStackingOrderChanged(bool stacking_order_changed); | 464 void SetStackingOrderChanged(bool stacking_order_changed); |
| 459 | 465 |
| 460 bool LayerPropertyChanged() const { return layer_property_changed_; } | 466 bool LayerPropertyChanged() const { return layer_property_changed_; } |
| 461 | 467 |
| 462 void ResetAllChangeTrackingForSubtree(); | 468 void ResetAllChangeTrackingForSubtree(); |
| 463 | 469 |
| 464 LayerAnimationController* layer_animation_controller() { | 470 LayerAnimationController* layer_animation_controller() { |
| 465 return layer_animation_controller_.get(); | 471 return layer_animation_controller_.get(); |
| (...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 644 int num_dependents_need_push_properties_; | 650 int num_dependents_need_push_properties_; |
| 645 | 651 |
| 646 DrawMode current_draw_mode_; | 652 DrawMode current_draw_mode_; |
| 647 | 653 |
| 648 private: | 654 private: |
| 649 // Rect indicating what was repainted/updated during update. | 655 // Rect indicating what was repainted/updated during update. |
| 650 // Note that plugin layers bypass this and leave it empty. | 656 // Note that plugin layers bypass this and leave it empty. |
| 651 // Uses layer (not content) space. | 657 // Uses layer (not content) space. |
| 652 gfx::RectF update_rect_; | 658 gfx::RectF update_rect_; |
| 653 | 659 |
| 660 gfx::Rect damage_rect_; | |
| 661 | |
| 654 // Manages animations for this layer. | 662 // Manages animations for this layer. |
| 655 scoped_refptr<LayerAnimationController> layer_animation_controller_; | 663 scoped_refptr<LayerAnimationController> layer_animation_controller_; |
| 656 | 664 |
| 657 // Manages scrollbars for this layer | 665 // Manages scrollbars for this layer |
| 658 scoped_ptr<ScrollbarAnimationController> scrollbar_animation_controller_; | 666 scoped_ptr<ScrollbarAnimationController> scrollbar_animation_controller_; |
| 659 | 667 |
| 660 scoped_ptr<ScrollbarSet> scrollbars_; | 668 scoped_ptr<ScrollbarSet> scrollbars_; |
| 661 | 669 |
| 662 ScopedPtrVector<CopyOutputRequest> copy_requests_; | 670 ScopedPtrVector<CopyOutputRequest> copy_requests_; |
| 663 | 671 |
| 664 // Group of properties that need to be computed based on the layer tree | 672 // Group of properties that need to be computed based on the layer tree |
| 665 // hierarchy before layers can be drawn. | 673 // hierarchy before layers can be drawn. |
| 666 DrawProperties<LayerImpl> draw_properties_; | 674 DrawProperties<LayerImpl> draw_properties_; |
| 667 | 675 |
| 668 scoped_refptr<base::debug::ConvertableToTraceFormat> debug_info_; | 676 scoped_refptr<base::debug::ConvertableToTraceFormat> debug_info_; |
| 669 | 677 |
| 670 DISALLOW_COPY_AND_ASSIGN(LayerImpl); | 678 DISALLOW_COPY_AND_ASSIGN(LayerImpl); |
| 671 }; | 679 }; |
| 672 | 680 |
| 673 } // namespace cc | 681 } // namespace cc |
| 674 | 682 |
| 675 #endif // CC_LAYERS_LAYER_IMPL_H_ | 683 #endif // CC_LAYERS_LAYER_IMPL_H_ |
| OLD | NEW |