| 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/cc_export.h" | 8 #include "cc/base/cc_export.h" |
| 9 #include "cc/output/filter_operations.h" | 9 #include "cc/output/filter_operations.h" |
| 10 | 10 |
| (...skipping 15 matching lines...) Expand all Loading... |
| 26 EffectNode(); | 26 EffectNode(); |
| 27 EffectNode(const EffectNode& other); | 27 EffectNode(const EffectNode& other); |
| 28 | 28 |
| 29 int id; | 29 int id; |
| 30 int parent_id; | 30 int parent_id; |
| 31 int owner_id; | 31 int owner_id; |
| 32 | 32 |
| 33 float opacity; | 33 float opacity; |
| 34 float screen_space_opacity; | 34 float screen_space_opacity; |
| 35 | 35 |
| 36 FilterOperations filters; |
| 36 FilterOperations background_filters; | 37 FilterOperations background_filters; |
| 37 | 38 |
| 38 gfx::Vector2dF surface_contents_scale; | 39 gfx::Vector2dF surface_contents_scale; |
| 39 | 40 |
| 40 bool has_render_surface; | 41 bool has_render_surface; |
| 41 RenderSurfaceImpl* render_surface; | 42 RenderSurfaceImpl* render_surface; |
| 42 bool has_copy_request; | 43 bool has_copy_request; |
| 43 bool hidden_by_backface_visibility; | 44 bool hidden_by_backface_visibility; |
| 44 bool double_sided; | 45 bool double_sided; |
| 45 bool is_drawn; | 46 bool is_drawn; |
| 46 // TODO(jaydasika) : Delete this after implementation of | 47 // TODO(jaydasika) : Delete this after implementation of |
| 47 // SetHideLayerAndSubtree is cleaned up. (crbug.com/595843) | 48 // SetHideLayerAndSubtree is cleaned up. (crbug.com/595843) |
| 48 bool subtree_hidden; | 49 bool subtree_hidden; |
| 50 bool has_potential_filter_animation; |
| 49 bool has_potential_opacity_animation; | 51 bool has_potential_opacity_animation; |
| 52 bool is_currently_animating_filter; |
| 50 bool is_currently_animating_opacity; | 53 bool is_currently_animating_opacity; |
| 51 // We need to track changes to effects on the compositor to compute damage | 54 // We need to track changes to effects on the compositor to compute damage |
| 52 // rect. | 55 // rect. |
| 53 bool effect_changed; | 56 bool effect_changed; |
| 54 int num_copy_requests_in_subtree; | 57 int num_copy_requests_in_subtree; |
| 55 bool has_unclipped_descendants; | 58 bool has_unclipped_descendants; |
| 56 int transform_id; | 59 int transform_id; |
| 57 int clip_id; | 60 int clip_id; |
| 58 // Effect node id of which this effect contributes to. | 61 // Effect node id of which this effect contributes to. |
| 59 int target_id; | 62 int target_id; |
| 60 int mask_layer_id; | 63 int mask_layer_id; |
| 61 int replica_layer_id; | 64 int replica_layer_id; |
| 62 int replica_mask_layer_id; | 65 int replica_mask_layer_id; |
| 63 | 66 |
| 64 bool operator==(const EffectNode& other) const; | 67 bool operator==(const EffectNode& other) const; |
| 65 | 68 |
| 66 void ToProtobuf(proto::TreeNode* proto) const; | 69 void ToProtobuf(proto::TreeNode* proto) const; |
| 67 void FromProtobuf(const proto::TreeNode& proto); | 70 void FromProtobuf(const proto::TreeNode& proto); |
| 68 void AsValueInto(base::trace_event::TracedValue* value) const; | 71 void AsValueInto(base::trace_event::TracedValue* value) const; |
| 69 }; | 72 }; |
| 70 | 73 |
| 71 } // namespace cc | 74 } // namespace cc |
| 72 | 75 |
| 73 #endif // CC_TREES_EFFECT_NODE_H_ | 76 #endif // CC_TREES_EFFECT_NODE_H_ |
| OLD | NEW |