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 #include <vector> | 10 #include <vector> |
(...skipping 486 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
497 const gfx::Transform& transform() const { return transform_; } | 497 const gfx::Transform& transform() const { return transform_; } |
498 bool TransformIsAnimating() const; | 498 bool TransformIsAnimating() const; |
499 bool TransformIsAnimatingOnImplOnly() const; | 499 bool TransformIsAnimatingOnImplOnly() const; |
500 void SetTransformAndInvertibility(const gfx::Transform& transform, | 500 void SetTransformAndInvertibility(const gfx::Transform& transform, |
501 bool transform_is_invertible); | 501 bool transform_is_invertible); |
502 bool transform_is_invertible() const { return transform_is_invertible_; } | 502 bool transform_is_invertible() const { return transform_is_invertible_; } |
503 | 503 |
504 // Note this rect is in layer space (not content space). | 504 // Note this rect is in layer space (not content space). |
505 void SetUpdateRect(const gfx::Rect& update_rect); | 505 void SetUpdateRect(const gfx::Rect& update_rect); |
506 gfx::Rect update_rect() const { return update_rect_; } | 506 gfx::Rect update_rect() const { return update_rect_; } |
| 507 void SetOverlayUpdateRect(const gfx::Rect& overlay_update_rect); |
| 508 gfx::Rect overlay_update_rect() const { return overlay_update_rect_; } |
507 | 509 |
508 void AddDamageRect(const gfx::RectF& damage_rect); | 510 void AddDamageRect(const gfx::RectF& damage_rect); |
509 | 511 |
510 const gfx::RectF& damage_rect() const { return damage_rect_; } | 512 const gfx::RectF& damage_rect() const { return damage_rect_; } |
511 | 513 |
512 virtual base::DictionaryValue* LayerTreeAsJson() const; | 514 virtual base::DictionaryValue* LayerTreeAsJson() const; |
513 | 515 |
514 void SetStackingOrderChanged(bool stacking_order_changed); | 516 void SetStackingOrderChanged(bool stacking_order_changed); |
515 | 517 |
516 bool LayerPropertyChanged() const { return layer_property_changed_; } | 518 bool LayerPropertyChanged() const { return layer_property_changed_; } |
(...skipping 224 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
741 int sorting_context_id_; | 743 int sorting_context_id_; |
742 | 744 |
743 DrawMode current_draw_mode_; | 745 DrawMode current_draw_mode_; |
744 | 746 |
745 private: | 747 private: |
746 // Rect indicating what was repainted/updated during update. | 748 // Rect indicating what was repainted/updated during update. |
747 // Note that plugin layers bypass this and leave it empty. | 749 // Note that plugin layers bypass this and leave it empty. |
748 // Uses layer (not content) space. | 750 // Uses layer (not content) space. |
749 gfx::Rect update_rect_; | 751 gfx::Rect update_rect_; |
750 | 752 |
| 753 // Rect indicating what was updated for an overlayable layer. |
| 754 gfx::Rect overlay_update_rect_; |
| 755 |
751 // This rect is in layer space. | 756 // This rect is in layer space. |
752 gfx::RectF damage_rect_; | 757 gfx::RectF damage_rect_; |
753 | 758 |
754 // Manages animations for this layer. | 759 // Manages animations for this layer. |
755 scoped_refptr<LayerAnimationController> layer_animation_controller_; | 760 scoped_refptr<LayerAnimationController> layer_animation_controller_; |
756 | 761 |
757 // Manages scrollbars for this layer | 762 // Manages scrollbars for this layer |
758 scoped_ptr<ScrollbarAnimationController> scrollbar_animation_controller_; | 763 scoped_ptr<ScrollbarAnimationController> scrollbar_animation_controller_; |
759 | 764 |
760 scoped_ptr<ScrollbarSet> scrollbars_; | 765 scoped_ptr<ScrollbarSet> scrollbars_; |
761 | 766 |
762 ScopedPtrVector<CopyOutputRequest> copy_requests_; | 767 ScopedPtrVector<CopyOutputRequest> copy_requests_; |
763 | 768 |
764 // Group of properties that need to be computed based on the layer tree | 769 // Group of properties that need to be computed based on the layer tree |
765 // hierarchy before layers can be drawn. | 770 // hierarchy before layers can be drawn. |
766 DrawProperties<LayerImpl> draw_properties_; | 771 DrawProperties<LayerImpl> draw_properties_; |
767 | 772 |
768 scoped_refptr<base::trace_event::ConvertableToTraceFormat> debug_info_; | 773 scoped_refptr<base::trace_event::ConvertableToTraceFormat> debug_info_; |
769 scoped_ptr<RenderSurfaceImpl> render_surface_; | 774 scoped_ptr<RenderSurfaceImpl> render_surface_; |
770 | 775 |
771 std::vector<FrameTimingRequest> frame_timing_requests_; | 776 std::vector<FrameTimingRequest> frame_timing_requests_; |
772 bool frame_timing_requests_dirty_; | 777 bool frame_timing_requests_dirty_; |
773 | 778 |
774 DISALLOW_COPY_AND_ASSIGN(LayerImpl); | 779 DISALLOW_COPY_AND_ASSIGN(LayerImpl); |
775 }; | 780 }; |
776 | 781 |
777 } // namespace cc | 782 } // namespace cc |
778 | 783 |
779 #endif // CC_LAYERS_LAYER_IMPL_H_ | 784 #endif // CC_LAYERS_LAYER_IMPL_H_ |
OLD | NEW |