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 #include "third_party/skia/include/core/SkXfermode.h" |
| 11 #include "ui/gfx/geometry/point_f.h" |
11 #include "ui/gfx/geometry/size_f.h" | 12 #include "ui/gfx/geometry/size_f.h" |
12 | 13 |
13 namespace base { | 14 namespace base { |
14 namespace trace_event { | 15 namespace trace_event { |
15 class TracedValue; | 16 class TracedValue; |
16 } // namespace trace_event | 17 } // namespace trace_event |
17 } // namespace base | 18 } // namespace base |
18 | 19 |
19 namespace cc { | 20 namespace cc { |
20 | 21 |
21 class RenderSurfaceImpl; | 22 class RenderSurfaceImpl; |
22 | 23 |
23 namespace proto { | 24 namespace proto { |
24 class TreeNode; | 25 class TreeNode; |
25 } // namespace proto | 26 } // namespace proto |
26 | 27 |
27 struct CC_EXPORT EffectNode { | 28 struct CC_EXPORT EffectNode { |
28 EffectNode(); | 29 EffectNode(); |
29 EffectNode(const EffectNode& other); | 30 EffectNode(const EffectNode& other); |
30 | 31 |
31 int id; | 32 int id; |
32 int parent_id; | 33 int parent_id; |
33 int owner_id; | 34 int owner_id; |
34 | 35 |
35 float opacity; | 36 float opacity; |
36 float screen_space_opacity; | 37 float screen_space_opacity; |
37 | 38 |
38 FilterOperations filters; | 39 FilterOperations filters; |
39 FilterOperations background_filters; | 40 FilterOperations background_filters; |
| 41 gfx::PointF filters_origin; |
40 | 42 |
41 SkXfermode::Mode blend_mode; | 43 SkXfermode::Mode blend_mode; |
42 | 44 |
43 gfx::Vector2dF surface_contents_scale; | 45 gfx::Vector2dF surface_contents_scale; |
44 | 46 |
45 gfx::Size unscaled_mask_target_size; | 47 gfx::Size unscaled_mask_target_size; |
46 | 48 |
47 bool has_render_surface; | 49 bool has_render_surface; |
48 RenderSurfaceImpl* render_surface; | 50 RenderSurfaceImpl* render_surface; |
49 bool has_copy_request; | 51 bool has_copy_request; |
(...skipping 23 matching lines...) Expand all Loading... |
73 bool operator==(const EffectNode& other) const; | 75 bool operator==(const EffectNode& other) const; |
74 | 76 |
75 void ToProtobuf(proto::TreeNode* proto) const; | 77 void ToProtobuf(proto::TreeNode* proto) const; |
76 void FromProtobuf(const proto::TreeNode& proto); | 78 void FromProtobuf(const proto::TreeNode& proto); |
77 void AsValueInto(base::trace_event::TracedValue* value) const; | 79 void AsValueInto(base::trace_event::TracedValue* value) const; |
78 }; | 80 }; |
79 | 81 |
80 } // namespace cc | 82 } // namespace cc |
81 | 83 |
82 #endif // CC_TREES_EFFECT_NODE_H_ | 84 #endif // CC_TREES_EFFECT_NODE_H_ |
OLD | NEW |