Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(16)

Side by Side Diff: cc/layers/layer_impl.h

Issue 2270273002: cc : Add OnFilterAnimated to effect tree (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | cc/layers/layer_impl.cc » ('j') | cc/trees/layer_tree_host_impl.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
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_
OLDNEW
« no previous file with comments | « no previous file | cc/layers/layer_impl.cc » ('j') | cc/trees/layer_tree_host_impl.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698