| 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 #include "base/trace_event/trace_event_argument.h" | 5 #include "base/trace_event/trace_event_argument.h" |
| 6 #include "cc/proto/gfx_conversions.h" | 6 #include "cc/proto/gfx_conversions.h" |
| 7 #include "cc/proto/property_tree.pb.h" | 7 #include "cc/proto/property_tree.pb.h" |
| 8 #include "cc/proto/skia_conversions.h" | 8 #include "cc/proto/skia_conversions.h" |
| 9 #include "cc/trees/effect_node.h" | 9 #include "cc/trees/effect_node.h" |
| 10 | 10 |
| (...skipping 15 matching lines...) Expand all Loading... |
| 26 subtree_hidden(false), | 26 subtree_hidden(false), |
| 27 has_potential_filter_animation(false), | 27 has_potential_filter_animation(false), |
| 28 has_potential_opacity_animation(false), | 28 has_potential_opacity_animation(false), |
| 29 is_currently_animating_filter(false), | 29 is_currently_animating_filter(false), |
| 30 is_currently_animating_opacity(false), | 30 is_currently_animating_opacity(false), |
| 31 effect_changed(false), | 31 effect_changed(false), |
| 32 num_copy_requests_in_subtree(0), | 32 num_copy_requests_in_subtree(0), |
| 33 has_unclipped_descendants(false), | 33 has_unclipped_descendants(false), |
| 34 transform_id(0), | 34 transform_id(0), |
| 35 clip_id(0), | 35 clip_id(0), |
| 36 target_id(1), | 36 target_id(0), |
| 37 mask_layer_id(-1) {} | 37 mask_layer_id(-1) {} |
| 38 | 38 |
| 39 EffectNode::EffectNode(const EffectNode& other) = default; | 39 EffectNode::EffectNode(const EffectNode& other) = default; |
| 40 | 40 |
| 41 bool EffectNode::operator==(const EffectNode& other) const { | 41 bool EffectNode::operator==(const EffectNode& other) const { |
| 42 return id == other.id && parent_id == other.parent_id && | 42 return id == other.id && parent_id == other.parent_id && |
| 43 owner_id == other.owner_id && opacity == other.opacity && | 43 owner_id == other.owner_id && opacity == other.opacity && |
| 44 screen_space_opacity == other.screen_space_opacity && | 44 screen_space_opacity == other.screen_space_opacity && |
| 45 has_render_surface == other.has_render_surface && | 45 has_render_surface == other.has_render_surface && |
| 46 has_copy_request == other.has_copy_request && | 46 has_copy_request == other.has_copy_request && |
| (...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 145 value->SetBoolean("effect_changed", effect_changed); | 145 value->SetBoolean("effect_changed", effect_changed); |
| 146 value->SetInteger("num_copy_requests_in_subtree", | 146 value->SetInteger("num_copy_requests_in_subtree", |
| 147 num_copy_requests_in_subtree); | 147 num_copy_requests_in_subtree); |
| 148 value->SetInteger("transform_id", transform_id); | 148 value->SetInteger("transform_id", transform_id); |
| 149 value->SetInteger("clip_id", clip_id); | 149 value->SetInteger("clip_id", clip_id); |
| 150 value->SetInteger("target_id", target_id); | 150 value->SetInteger("target_id", target_id); |
| 151 value->SetInteger("mask_layer_id", mask_layer_id); | 151 value->SetInteger("mask_layer_id", mask_layer_id); |
| 152 } | 152 } |
| 153 | 153 |
| 154 } // namespace cc | 154 } // namespace cc |
| OLD | NEW |