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