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 <stddef.h> | 8 #include <stddef.h> |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 | 10 |
(...skipping 12 matching lines...) Expand all Loading... |
23 #include "cc/base/cc_export.h" | 23 #include "cc/base/cc_export.h" |
24 #include "cc/base/region.h" | 24 #include "cc/base/region.h" |
25 #include "cc/base/synced_property.h" | 25 #include "cc/base/synced_property.h" |
26 #include "cc/input/input_handler.h" | 26 #include "cc/input/input_handler.h" |
27 #include "cc/layers/draw_properties.h" | 27 #include "cc/layers/draw_properties.h" |
28 #include "cc/layers/layer_collections.h" | 28 #include "cc/layers/layer_collections.h" |
29 #include "cc/layers/layer_impl_test_properties.h" | 29 #include "cc/layers/layer_impl_test_properties.h" |
30 #include "cc/layers/layer_position_constraint.h" | 30 #include "cc/layers/layer_position_constraint.h" |
31 #include "cc/layers/performance_properties.h" | 31 #include "cc/layers/performance_properties.h" |
32 #include "cc/layers/render_surface_impl.h" | 32 #include "cc/layers/render_surface_impl.h" |
33 #include "cc/output/filter_operations.h" | |
34 #include "cc/quads/shared_quad_state.h" | 33 #include "cc/quads/shared_quad_state.h" |
35 #include "cc/resources/resource_provider.h" | 34 #include "cc/resources/resource_provider.h" |
36 #include "cc/tiles/tile_priority.h" | 35 #include "cc/tiles/tile_priority.h" |
37 #include "cc/trees/mutator_host_client.h" | 36 #include "cc/trees/mutator_host_client.h" |
38 #include "third_party/skia/include/core/SkColor.h" | 37 #include "third_party/skia/include/core/SkColor.h" |
39 #include "third_party/skia/include/core/SkXfermode.h" | 38 #include "third_party/skia/include/core/SkXfermode.h" |
40 #include "ui/gfx/geometry/point3_f.h" | 39 #include "ui/gfx/geometry/point3_f.h" |
41 #include "ui/gfx/geometry/rect.h" | 40 #include "ui/gfx/geometry/rect.h" |
42 #include "ui/gfx/geometry/rect_f.h" | 41 #include "ui/gfx/geometry/rect_f.h" |
43 #include "ui/gfx/geometry/scroll_offset.h" | 42 #include "ui/gfx/geometry/scroll_offset.h" |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
87 static std::unique_ptr<LayerImpl> Create(LayerTreeImpl* tree_impl, int id) { | 86 static std::unique_ptr<LayerImpl> Create(LayerTreeImpl* tree_impl, int id) { |
88 return base::WrapUnique(new LayerImpl(tree_impl, id)); | 87 return base::WrapUnique(new LayerImpl(tree_impl, id)); |
89 } | 88 } |
90 | 89 |
91 virtual ~LayerImpl(); | 90 virtual ~LayerImpl(); |
92 | 91 |
93 int id() const { return layer_id_; } | 92 int id() const { return layer_id_; } |
94 | 93 |
95 // Interactions with attached animations. | 94 // Interactions with attached animations. |
96 gfx::ScrollOffset ScrollOffsetForAnimation() const; | 95 gfx::ScrollOffset ScrollOffsetForAnimation() const; |
97 void OnFilterAnimated(const FilterOperations& filters); | |
98 void OnScrollOffsetAnimated(const gfx::ScrollOffset& scroll_offset); | 96 void OnScrollOffsetAnimated(const gfx::ScrollOffset& scroll_offset); |
99 void OnTransformIsCurrentlyAnimatingChanged(bool is_currently_animating); | 97 void OnTransformIsCurrentlyAnimatingChanged(bool is_currently_animating); |
100 void OnTransformIsPotentiallyAnimatingChanged(bool has_potential_animation); | 98 void OnTransformIsPotentiallyAnimatingChanged(bool has_potential_animation); |
101 void OnOpacityIsCurrentlyAnimatingChanged(bool is_currently_animating); | 99 void OnOpacityIsCurrentlyAnimatingChanged(bool is_currently_animating); |
102 void OnOpacityIsPotentiallyAnimatingChanged(bool has_potential_animation); | 100 void OnOpacityIsPotentiallyAnimatingChanged(bool has_potential_animation); |
103 void OnFilterIsCurrentlyAnimatingChanged(bool is_currently_animating); | 101 void OnFilterIsCurrentlyAnimatingChanged(bool is_currently_animating); |
104 void OnFilterIsPotentiallyAnimatingChanged(bool has_potential_animation); | 102 void OnFilterIsPotentiallyAnimatingChanged(bool has_potential_animation); |
105 bool IsActive() const; | 103 bool IsActive() const; |
106 | 104 |
107 void DistributeScroll(ScrollState* scroll_state); | 105 void DistributeScroll(ScrollState* scroll_state); |
(...skipping 471 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
579 bool scrolls_drawn_descendant_ : 1; | 577 bool scrolls_drawn_descendant_ : 1; |
580 bool has_will_change_transform_hint_ : 1; | 578 bool has_will_change_transform_hint_ : 1; |
581 bool needs_push_properties_ : 1; | 579 bool needs_push_properties_ : 1; |
582 | 580 |
583 DISALLOW_COPY_AND_ASSIGN(LayerImpl); | 581 DISALLOW_COPY_AND_ASSIGN(LayerImpl); |
584 }; | 582 }; |
585 | 583 |
586 } // namespace cc | 584 } // namespace cc |
587 | 585 |
588 #endif // CC_LAYERS_LAYER_IMPL_H_ | 586 #endif // CC_LAYERS_LAYER_IMPL_H_ |
OLD | NEW |