| OLD | NEW |
| 1 // Copyright 2010 The Chromium Authors. All rights reserved. | 1 // Copyright 2010 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_H_ | 5 #ifndef CC_LAYERS_LAYER_H_ |
| 6 #define CC_LAYERS_LAYER_H_ | 6 #define CC_LAYERS_LAYER_H_ |
| 7 | 7 |
| 8 #include <set> | 8 #include <set> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 589 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 600 | 600 |
| 601 // LayerAnimationValueProvider implementation. | 601 // LayerAnimationValueProvider implementation. |
| 602 gfx::ScrollOffset ScrollOffsetForAnimation() const override; | 602 gfx::ScrollOffset ScrollOffsetForAnimation() const override; |
| 603 | 603 |
| 604 // LayerAnimationValueObserver implementation. | 604 // LayerAnimationValueObserver implementation. |
| 605 void OnFilterAnimated(const FilterOperations& filters) override; | 605 void OnFilterAnimated(const FilterOperations& filters) override; |
| 606 void OnOpacityAnimated(float opacity) override; | 606 void OnOpacityAnimated(float opacity) override; |
| 607 void OnTransformAnimated(const gfx::Transform& transform) override; | 607 void OnTransformAnimated(const gfx::Transform& transform) override; |
| 608 void OnScrollOffsetAnimated(const gfx::ScrollOffset& scroll_offset) override; | 608 void OnScrollOffsetAnimated(const gfx::ScrollOffset& scroll_offset) override; |
| 609 void OnAnimationWaitingForDeletion() override; | 609 void OnAnimationWaitingForDeletion() override; |
| 610 void OnScrollOffsetAnimationRemoved() override; |
| 610 bool IsActive() const override; | 611 bool IsActive() const override; |
| 611 | 612 |
| 612 // If this layer has a scroll parent, it removes |this| from its list of | 613 // If this layer has a scroll parent, it removes |this| from its list of |
| 613 // scroll children. | 614 // scroll children. |
| 614 void RemoveFromScrollTree(); | 615 void RemoveFromScrollTree(); |
| 615 | 616 |
| 616 // If this layer has a clip parent, it removes |this| from its list of clip | 617 // If this layer has a clip parent, it removes |this| from its list of clip |
| 617 // children. | 618 // children. |
| 618 void RemoveFromClipTree(); | 619 void RemoveFromClipTree(); |
| 619 | 620 |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 652 bool hide_layer_and_subtree_ : 1; | 653 bool hide_layer_and_subtree_ : 1; |
| 653 bool masks_to_bounds_ : 1; | 654 bool masks_to_bounds_ : 1; |
| 654 bool contents_opaque_ : 1; | 655 bool contents_opaque_ : 1; |
| 655 bool double_sided_ : 1; | 656 bool double_sided_ : 1; |
| 656 bool should_flatten_transform_ : 1; | 657 bool should_flatten_transform_ : 1; |
| 657 bool use_parent_backface_visibility_ : 1; | 658 bool use_parent_backface_visibility_ : 1; |
| 658 bool draw_checkerboard_for_missing_tiles_ : 1; | 659 bool draw_checkerboard_for_missing_tiles_ : 1; |
| 659 bool force_render_surface_ : 1; | 660 bool force_render_surface_ : 1; |
| 660 bool transform_is_invertible_ : 1; | 661 bool transform_is_invertible_ : 1; |
| 661 bool has_render_surface_ : 1; | 662 bool has_render_surface_ : 1; |
| 663 bool clear_impl_scroll_delta_ : 1; |
| 662 Region non_fast_scrollable_region_; | 664 Region non_fast_scrollable_region_; |
| 663 Region touch_event_handler_region_; | 665 Region touch_event_handler_region_; |
| 664 gfx::PointF position_; | 666 gfx::PointF position_; |
| 665 SkColor background_color_; | 667 SkColor background_color_; |
| 666 float opacity_; | 668 float opacity_; |
| 667 SkXfermode::Mode blend_mode_; | 669 SkXfermode::Mode blend_mode_; |
| 668 FilterOperations filters_; | 670 FilterOperations filters_; |
| 669 FilterOperations background_filters_; | 671 FilterOperations background_filters_; |
| 670 LayerPositionConstraint position_constraint_; | 672 LayerPositionConstraint position_constraint_; |
| 671 Layer* scroll_parent_; | 673 Layer* scroll_parent_; |
| (...skipping 24 matching lines...) Expand all Loading... |
| 696 // and should get removed once it is no longer needed on main thread. | 698 // and should get removed once it is no longer needed on main thread. |
| 697 scoped_ptr<RenderSurface> render_surface_; | 699 scoped_ptr<RenderSurface> render_surface_; |
| 698 | 700 |
| 699 gfx::Rect visible_rect_from_property_trees_; | 701 gfx::Rect visible_rect_from_property_trees_; |
| 700 DISALLOW_COPY_AND_ASSIGN(Layer); | 702 DISALLOW_COPY_AND_ASSIGN(Layer); |
| 701 }; | 703 }; |
| 702 | 704 |
| 703 } // namespace cc | 705 } // namespace cc |
| 704 | 706 |
| 705 #endif // CC_LAYERS_LAYER_H_ | 707 #endif // CC_LAYERS_LAYER_H_ |
| OLD | NEW |