OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CC_TREES_EFFECT_NODE_H_ |
| 6 #define CC_TREES_EFFECT_NODE_H_ |
| 7 |
| 8 #include "cc/base/cc_export.h" |
| 9 #include "cc/output/filter_operations.h" |
| 10 |
| 11 namespace base { |
| 12 namespace trace_event { |
| 13 class TracedValue; |
| 14 } // namespace trace_event |
| 15 } // namespace base |
| 16 |
| 17 namespace cc { |
| 18 |
| 19 class RenderSurfaceImpl; |
| 20 |
| 21 namespace proto { |
| 22 class TreeNode; |
| 23 } // namespace proto |
| 24 |
| 25 struct CC_EXPORT EffectNode { |
| 26 EffectNode(); |
| 27 EffectNode(const EffectNode& other); |
| 28 |
| 29 int id; |
| 30 int parent_id; |
| 31 int owner_id; |
| 32 |
| 33 float opacity; |
| 34 float screen_space_opacity; |
| 35 |
| 36 FilterOperations background_filters; |
| 37 |
| 38 gfx::Vector2dF sublayer_scale; |
| 39 |
| 40 bool has_render_surface; |
| 41 RenderSurfaceImpl* render_surface; |
| 42 bool has_copy_request; |
| 43 bool hidden_by_backface_visibility; |
| 44 bool double_sided; |
| 45 bool is_drawn; |
| 46 // TODO(jaydasika) : Delete this after implementation of |
| 47 // SetHideLayerAndSubtree is cleaned up. (crbug.com/595843) |
| 48 bool subtree_hidden; |
| 49 bool has_potential_opacity_animation; |
| 50 bool is_currently_animating_opacity; |
| 51 // We need to track changes to effects on the compositor to compute damage |
| 52 // rect. |
| 53 bool effect_changed; |
| 54 int num_copy_requests_in_subtree; |
| 55 bool has_unclipped_descendants; |
| 56 int transform_id; |
| 57 int clip_id; |
| 58 // Effect node id of which this effect contributes to. |
| 59 int target_id; |
| 60 int mask_layer_id; |
| 61 int replica_layer_id; |
| 62 int replica_mask_layer_id; |
| 63 |
| 64 bool operator==(const EffectNode& other) const; |
| 65 |
| 66 void ToProtobuf(proto::TreeNode* proto) const; |
| 67 void FromProtobuf(const proto::TreeNode& proto); |
| 68 void AsValueInto(base::trace_event::TracedValue* value) const; |
| 69 }; |
| 70 |
| 71 } // namespace cc |
| 72 |
| 73 #endif // CC_TREES_EFFECT_NODE_H_ |
OLD | NEW |