| 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 OnOpacityAnimated(float opacity); | 96 void OnOpacityAnimated(float opacity); |
| 99 void OnTransformAnimated(const gfx::Transform& transform); | 97 void OnTransformAnimated(const gfx::Transform& transform); |
| 100 void OnScrollOffsetAnimated(const gfx::ScrollOffset& scroll_offset); | 98 void OnScrollOffsetAnimated(const gfx::ScrollOffset& scroll_offset); |
| 101 void OnTransformIsCurrentlyAnimatingChanged(bool is_currently_animating); | 99 void OnTransformIsCurrentlyAnimatingChanged(bool is_currently_animating); |
| 102 void OnTransformIsPotentiallyAnimatingChanged(bool has_potential_animation); | 100 void OnTransformIsPotentiallyAnimatingChanged(bool has_potential_animation); |
| 103 void OnOpacityIsCurrentlyAnimatingChanged(bool is_currently_animating); | 101 void OnOpacityIsCurrentlyAnimatingChanged(bool is_currently_animating); |
| 104 void OnOpacityIsPotentiallyAnimatingChanged(bool has_potential_animation); | 102 void OnOpacityIsPotentiallyAnimatingChanged(bool has_potential_animation); |
| 105 void OnFilterIsCurrentlyAnimatingChanged(bool is_currently_animating); | 103 void OnFilterIsCurrentlyAnimatingChanged(bool is_currently_animating); |
| 106 void OnFilterIsPotentiallyAnimatingChanged(bool has_potential_animation); | 104 void OnFilterIsPotentiallyAnimatingChanged(bool has_potential_animation); |
| 107 bool IsActive() const; | 105 bool IsActive() const; |
| (...skipping 475 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 583 bool scrolls_drawn_descendant_ : 1; | 581 bool scrolls_drawn_descendant_ : 1; |
| 584 bool has_will_change_transform_hint_ : 1; | 582 bool has_will_change_transform_hint_ : 1; |
| 585 bool needs_push_properties_ : 1; | 583 bool needs_push_properties_ : 1; |
| 586 | 584 |
| 587 DISALLOW_COPY_AND_ASSIGN(LayerImpl); | 585 DISALLOW_COPY_AND_ASSIGN(LayerImpl); |
| 588 }; | 586 }; |
| 589 | 587 |
| 590 } // namespace cc | 588 } // namespace cc |
| 591 | 589 |
| 592 #endif // CC_LAYERS_LAYER_IMPL_H_ | 590 #endif // CC_LAYERS_LAYER_IMPL_H_ |
| OLD | NEW |