| 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/size_f.h" |
| 11 | 12 |
| 12 namespace base { | 13 namespace base { |
| 13 namespace trace_event { | 14 namespace trace_event { |
| 14 class TracedValue; | 15 class TracedValue; |
| 15 } // namespace trace_event | 16 } // namespace trace_event |
| 16 } // namespace base | 17 } // namespace base |
| 17 | 18 |
| 18 namespace cc { | 19 namespace cc { |
| 19 | 20 |
| 20 class RenderSurfaceImpl; | 21 class RenderSurfaceImpl; |
| (...skipping 13 matching lines...) Expand all Loading... |
| 34 float opacity; | 35 float opacity; |
| 35 float screen_space_opacity; | 36 float screen_space_opacity; |
| 36 | 37 |
| 37 FilterOperations filters; | 38 FilterOperations filters; |
| 38 FilterOperations background_filters; | 39 FilterOperations background_filters; |
| 39 | 40 |
| 40 SkXfermode::Mode blend_mode; | 41 SkXfermode::Mode blend_mode; |
| 41 | 42 |
| 42 gfx::Vector2dF surface_contents_scale; | 43 gfx::Vector2dF surface_contents_scale; |
| 43 | 44 |
| 45 gfx::Size unscaled_mask_target_size; |
| 46 |
| 44 bool has_render_surface; | 47 bool has_render_surface; |
| 45 RenderSurfaceImpl* render_surface; | 48 RenderSurfaceImpl* render_surface; |
| 46 bool has_copy_request; | 49 bool has_copy_request; |
| 47 bool hidden_by_backface_visibility; | 50 bool hidden_by_backface_visibility; |
| 48 bool double_sided; | 51 bool double_sided; |
| 49 bool is_drawn; | 52 bool is_drawn; |
| 50 // TODO(jaydasika) : Delete this after implementation of | 53 // TODO(jaydasika) : Delete this after implementation of |
| 51 // SetHideLayerAndSubtree is cleaned up. (crbug.com/595843) | 54 // SetHideLayerAndSubtree is cleaned up. (crbug.com/595843) |
| 52 bool subtree_hidden; | 55 bool subtree_hidden; |
| 53 bool has_potential_filter_animation; | 56 bool has_potential_filter_animation; |
| (...skipping 16 matching lines...) Expand all Loading... |
| 70 bool operator==(const EffectNode& other) const; | 73 bool operator==(const EffectNode& other) const; |
| 71 | 74 |
| 72 void ToProtobuf(proto::TreeNode* proto) const; | 75 void ToProtobuf(proto::TreeNode* proto) const; |
| 73 void FromProtobuf(const proto::TreeNode& proto); | 76 void FromProtobuf(const proto::TreeNode& proto); |
| 74 void AsValueInto(base::trace_event::TracedValue* value) const; | 77 void AsValueInto(base::trace_event::TracedValue* value) const; |
| 75 }; | 78 }; |
| 76 | 79 |
| 77 } // namespace cc | 80 } // namespace cc |
| 78 | 81 |
| 79 #endif // CC_TREES_EFFECT_NODE_H_ | 82 #endif // CC_TREES_EFFECT_NODE_H_ |
| OLD | NEW |