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

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: comment 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') | no next file with comments »
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 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
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_
OLDNEW
« no previous file with comments | « no previous file | cc/layers/layer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698