Chromium Code Reviews| 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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 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 bool has_copy_request; | 47 bool has_copy_request; |
| 48 bool hidden_by_backface_visibility; | 48 bool hidden_by_backface_visibility; |
| 49 bool double_sided; | 49 bool double_sided; |
| 50 bool is_drawn; | 50 bool is_drawn; |
| 51 // TODO(jaydasika) : Delete this after implementation of | 51 // TODO(jaydasika) : Delete this after implementation of |
| 52 // SetHideLayerAndSubtree is cleaned up. (crbug.com/595843) | 52 // SetHideLayerAndSubtree is cleaned up. (crbug.com/595843) |
| 53 bool subtree_hidden; | 53 bool subtree_hidden; |
| 54 // Whether this node has a potentially running (i.e., irrespective | |
| 55 // of exact timeline) filter animation. | |
| 54 bool has_potential_filter_animation; | 56 bool has_potential_filter_animation; |
|
pdr.
2017/05/18 23:52:47
Is it just for this node, or this node or any ance
wkorman
2017/05/19 00:37:03
Just this node.
| |
| 57 // Whether this node has a potentially running (i.e., irrespective | |
| 58 // of exact timeline) opacity animation. | |
| 55 bool has_potential_opacity_animation; | 59 bool has_potential_opacity_animation; |
| 60 // Whether this node has a currently running filter animation. | |
| 56 bool is_currently_animating_filter; | 61 bool is_currently_animating_filter; |
| 62 // Whether this node has a currently running opacity animation. | |
| 57 bool is_currently_animating_opacity; | 63 bool is_currently_animating_opacity; |
| 58 // We need to track changes to effects on the compositor to compute damage | 64 // Whether this node's effect has been changed since last |
|
pdr.
2017/05/18 23:52:47
Nit: since [the] last frame.
wkorman
2017/05/19 00:37:03
Done.
| |
| 59 // rect. | 65 // frame. Needed in order to compute damage rect. |
| 60 bool effect_changed; | 66 bool effect_changed; |
| 61 bool subtree_has_copy_request; | 67 bool subtree_has_copy_request; |
| 68 // The transform node index of the transform to apply to this effect | |
| 69 // node's content when rendering to a surface. | |
| 62 int transform_id; | 70 int transform_id; |
| 71 // The clip node index of the clip to apply to this effect node's | |
| 72 // content when rendering to a surface. | |
| 63 int clip_id; | 73 int clip_id; |
| 64 | 74 |
| 65 // This is the id of the ancestor effect node that induces a | 75 // This is the id of the ancestor effect node that induces a |
| 66 // RenderSurfaceImpl. | 76 // RenderSurfaceImpl. |
| 67 int target_id; | 77 int target_id; |
| 78 // The layer id of the mask layer, if any, to apply to this effect | |
| 79 // node's content when rendering to a surface. | |
| 80 // TODO(wkorman): It appears the only reads of this value are to | |
|
wkorman
2017/05/18 23:57:03
I found the one reference of impact -- RenderSurfa
| |
| 81 // determine whether the node has a mask for occlusion tracking | |
| 82 // purposes. Perhaps it can just be a bool? | |
| 68 int mask_layer_id; | 83 int mask_layer_id; |
| 69 int closest_ancestor_with_copy_request_id; | 84 int closest_ancestor_with_copy_request_id; |
| 70 | 85 |
| 71 bool operator==(const EffectNode& other) const; | 86 bool operator==(const EffectNode& other) const; |
| 72 | 87 |
| 73 void AsValueInto(base::trace_event::TracedValue* value) const; | 88 void AsValueInto(base::trace_event::TracedValue* value) const; |
| 74 }; | 89 }; |
| 75 | 90 |
| 76 } // namespace cc | 91 } // namespace cc |
| 77 | 92 |
| 78 #endif // CC_TREES_EFFECT_NODE_H_ | 93 #endif // CC_TREES_EFFECT_NODE_H_ |
| OLD | NEW |