OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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_TREES_EFFECT_NODE_H_ | 5 #ifndef CC_TREES_EFFECT_NODE_H_ |
6 #define CC_TREES_EFFECT_NODE_H_ | 6 #define CC_TREES_EFFECT_NODE_H_ |
7 | 7 |
8 #include "cc/base/filter_operations.h" | 8 #include "cc/base/filter_operations.h" |
9 #include "cc/cc_export.h" | 9 #include "cc/cc_export.h" |
10 #include "third_party/skia/include/core/SkBlendMode.h" | 10 #include "third_party/skia/include/core/SkBlendMode.h" |
(...skipping 26 matching lines...) Expand all Loading... |
37 FilterOperations background_filters; | 37 FilterOperations background_filters; |
38 gfx::PointF filters_origin; | 38 gfx::PointF filters_origin; |
39 | 39 |
40 SkBlendMode blend_mode; | 40 SkBlendMode blend_mode; |
41 | 41 |
42 gfx::Vector2dF surface_contents_scale; | 42 gfx::Vector2dF surface_contents_scale; |
43 | 43 |
44 gfx::Size unscaled_mask_target_size; | 44 gfx::Size unscaled_mask_target_size; |
45 | 45 |
46 bool has_render_surface; | 46 bool has_render_surface; |
47 // Only applicable if has render surface. A true value means a clip needs to | |
48 // be applied to the output of the surface when it is drawn onto its parent | |
49 // surface. | |
50 // TODO(crbug.com/504464): There is ongoing work to delay render surface | |
51 // decision to later phase of the pipeline. This flag shall be removed and | |
52 // computed during render surface decision. | |
53 bool surface_is_clipped; | |
54 bool has_copy_request; | 47 bool has_copy_request; |
55 bool hidden_by_backface_visibility; | 48 bool hidden_by_backface_visibility; |
56 bool double_sided; | 49 bool double_sided; |
57 bool is_drawn; | 50 bool is_drawn; |
58 // TODO(jaydasika) : Delete this after implementation of | 51 // TODO(jaydasika) : Delete this after implementation of |
59 // SetHideLayerAndSubtree is cleaned up. (crbug.com/595843) | 52 // SetHideLayerAndSubtree is cleaned up. (crbug.com/595843) |
60 bool subtree_hidden; | 53 bool subtree_hidden; |
61 bool has_potential_filter_animation; | 54 bool has_potential_filter_animation; |
62 bool has_potential_opacity_animation; | 55 bool has_potential_opacity_animation; |
63 bool is_currently_animating_filter; | 56 bool is_currently_animating_filter; |
64 bool is_currently_animating_opacity; | 57 bool is_currently_animating_opacity; |
65 // We need to track changes to effects on the compositor to compute damage | 58 // We need to track changes to effects on the compositor to compute damage |
66 // rect. | 59 // rect. |
67 bool effect_changed; | 60 bool effect_changed; |
68 int num_copy_requests_in_subtree; | 61 int num_copy_requests_in_subtree; |
69 bool has_unclipped_descendants; | |
70 int transform_id; | 62 int transform_id; |
71 int clip_id; | 63 int clip_id; |
72 // Effect node id of which this effect contributes to. | 64 // Effect node id of which this effect contributes to. |
73 int target_id; | 65 int target_id; |
74 int mask_layer_id; | 66 int mask_layer_id; |
75 | 67 |
76 bool operator==(const EffectNode& other) const; | 68 bool operator==(const EffectNode& other) const; |
77 | 69 |
78 void AsValueInto(base::trace_event::TracedValue* value) const; | 70 void AsValueInto(base::trace_event::TracedValue* value) const; |
79 }; | 71 }; |
80 | 72 |
81 } // namespace cc | 73 } // namespace cc |
82 | 74 |
83 #endif // CC_TREES_EFFECT_NODE_H_ | 75 #endif // CC_TREES_EFFECT_NODE_H_ |
OLD | NEW |