| 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 #include "third_party/skia/include/core/SkXfermode.h" |
| 10 | 11 |
| 11 namespace base { | 12 namespace base { |
| 12 namespace trace_event { | 13 namespace trace_event { |
| 13 class TracedValue; | 14 class TracedValue; |
| 14 } // namespace trace_event | 15 } // namespace trace_event |
| 15 } // namespace base | 16 } // namespace base |
| 16 | 17 |
| 17 namespace cc { | 18 namespace cc { |
| 18 | 19 |
| 19 class RenderSurfaceImpl; | 20 class RenderSurfaceImpl; |
| 20 | 21 |
| 21 namespace proto { | 22 namespace proto { |
| 22 class TreeNode; | 23 class TreeNode; |
| 23 } // namespace proto | 24 } // namespace proto |
| 24 | 25 |
| 25 struct CC_EXPORT EffectNode { | 26 struct CC_EXPORT EffectNode { |
| 26 EffectNode(); | 27 EffectNode(); |
| 27 EffectNode(const EffectNode& other); | 28 EffectNode(const EffectNode& other); |
| 28 | 29 |
| 29 int id; | 30 int id; |
| 30 int parent_id; | 31 int parent_id; |
| 31 int owner_id; | 32 int owner_id; |
| 32 | 33 |
| 33 float opacity; | 34 float opacity; |
| 34 float screen_space_opacity; | 35 float screen_space_opacity; |
| 35 | 36 |
| 36 FilterOperations filters; | 37 FilterOperations filters; |
| 37 FilterOperations background_filters; | 38 FilterOperations background_filters; |
| 38 | 39 |
| 40 SkXfermode::Mode blend_mode; |
| 41 |
| 39 gfx::Vector2dF surface_contents_scale; | 42 gfx::Vector2dF surface_contents_scale; |
| 40 | 43 |
| 41 bool has_render_surface; | 44 bool has_render_surface; |
| 42 RenderSurfaceImpl* render_surface; | 45 RenderSurfaceImpl* render_surface; |
| 43 bool has_copy_request; | 46 bool has_copy_request; |
| 44 bool hidden_by_backface_visibility; | 47 bool hidden_by_backface_visibility; |
| 45 bool double_sided; | 48 bool double_sided; |
| 46 bool is_drawn; | 49 bool is_drawn; |
| 47 // TODO(jaydasika) : Delete this after implementation of | 50 // TODO(jaydasika) : Delete this after implementation of |
| 48 // SetHideLayerAndSubtree is cleaned up. (crbug.com/595843) | 51 // SetHideLayerAndSubtree is cleaned up. (crbug.com/595843) |
| (...skipping 18 matching lines...) Expand all Loading... |
| 67 bool operator==(const EffectNode& other) const; | 70 bool operator==(const EffectNode& other) const; |
| 68 | 71 |
| 69 void ToProtobuf(proto::TreeNode* proto) const; | 72 void ToProtobuf(proto::TreeNode* proto) const; |
| 70 void FromProtobuf(const proto::TreeNode& proto); | 73 void FromProtobuf(const proto::TreeNode& proto); |
| 71 void AsValueInto(base::trace_event::TracedValue* value) const; | 74 void AsValueInto(base::trace_event::TracedValue* value) const; |
| 72 }; | 75 }; |
| 73 | 76 |
| 74 } // namespace cc | 77 } // namespace cc |
| 75 | 78 |
| 76 #endif // CC_TREES_EFFECT_NODE_H_ | 79 #endif // CC_TREES_EFFECT_NODE_H_ |
| OLD | NEW |