| 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/memory/ptr_util.h" | 5 #include "base/memory/ptr_util.h" |
| 6 #include "base/trace_event/trace_event_argument.h" | 6 #include "base/trace_event/trace_event_argument.h" |
| 7 #include "cc/base/math_util.h" | 7 #include "cc/base/math_util.h" |
| 8 #include "cc/layers/layer.h" | 8 #include "cc/layers/layer.h" |
| 9 #include "cc/proto/cc_conversions.h" | |
| 10 #include "cc/proto/gfx_conversions.h" | |
| 11 #include "cc/trees/clip_node.h" | 9 #include "cc/trees/clip_node.h" |
| 12 #include "cc/trees/property_tree.h" | 10 #include "cc/trees/property_tree.h" |
| 13 | 11 |
| 14 namespace cc { | 12 namespace cc { |
| 15 | 13 |
| 16 ClipNode::ClipNode() | 14 ClipNode::ClipNode() |
| 17 : id(ClipTree::kInvalidNodeId), | 15 : id(ClipTree::kInvalidNodeId), |
| 18 parent_id(ClipTree::kInvalidNodeId), | 16 parent_id(ClipTree::kInvalidNodeId), |
| 19 owning_layer_id(Layer::INVALID_ID), | 17 owning_layer_id(Layer::INVALID_ID), |
| 20 clip_type(ClipType::NONE), | 18 clip_type(ClipType::NONE), |
| (...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 113 value->SetInteger("target_effect_id", target_effect_id); | 111 value->SetInteger("target_effect_id", target_effect_id); |
| 114 value->SetBoolean("layer_clipping_uses_only_local_clip", | 112 value->SetBoolean("layer_clipping_uses_only_local_clip", |
| 115 layer_clipping_uses_only_local_clip); | 113 layer_clipping_uses_only_local_clip); |
| 116 value->SetBoolean("layers_are_clipped", layers_are_clipped); | 114 value->SetBoolean("layers_are_clipped", layers_are_clipped); |
| 117 value->SetBoolean("layers_are_clipped_when_surfaces_disabled", | 115 value->SetBoolean("layers_are_clipped_when_surfaces_disabled", |
| 118 layers_are_clipped_when_surfaces_disabled); | 116 layers_are_clipped_when_surfaces_disabled); |
| 119 value->SetBoolean("resets_clip", resets_clip); | 117 value->SetBoolean("resets_clip", resets_clip); |
| 120 } | 118 } |
| 121 | 119 |
| 122 } // namespace cc | 120 } // namespace cc |
| OLD | NEW |