OLD | NEW |
1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 2012 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 "cc/layers/layer_impl.h" | 5 #include "cc/layers/layer_impl.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <algorithm> | 10 #include <algorithm> |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
73 clip_tree_index_(ClipTree::kInvalidNodeId), | 73 clip_tree_index_(ClipTree::kInvalidNodeId), |
74 scroll_tree_index_(ScrollTree::kInvalidNodeId), | 74 scroll_tree_index_(ScrollTree::kInvalidNodeId), |
75 current_draw_mode_(DRAW_MODE_NONE), | 75 current_draw_mode_(DRAW_MODE_NONE), |
76 mutable_properties_(MutableProperty::kNone), | 76 mutable_properties_(MutableProperty::kNone), |
77 debug_info_(nullptr), | 77 debug_info_(nullptr), |
78 has_will_change_transform_hint_(false), | 78 has_will_change_transform_hint_(false), |
79 needs_push_properties_(false), | 79 needs_push_properties_(false), |
80 scrollbars_hidden_(false), | 80 scrollbars_hidden_(false), |
81 needs_show_scrollbars_(false), | 81 needs_show_scrollbars_(false), |
82 raster_even_if_not_drawn_(false), | 82 raster_even_if_not_drawn_(false), |
83 has_transform_node_(false) { | 83 has_transform_node_(false), |
| 84 scroll_boundary_behavior_( |
| 85 ScrollBoundaryBehavior::kScrollBoundaryBehaviorTypeAuto) { |
84 DCHECK_GT(layer_id_, 0); | 86 DCHECK_GT(layer_id_, 0); |
85 | 87 |
86 DCHECK(layer_tree_impl_); | 88 DCHECK(layer_tree_impl_); |
87 layer_tree_impl_->RegisterLayer(this); | 89 layer_tree_impl_->RegisterLayer(this); |
88 layer_tree_impl_->AddToElementMap(this); | 90 layer_tree_impl_->AddToElementMap(this); |
89 | 91 |
90 SetNeedsPushProperties(); | 92 SetNeedsPushProperties(); |
91 } | 93 } |
92 | 94 |
93 LayerImpl::~LayerImpl() { | 95 LayerImpl::~LayerImpl() { |
(...skipping 880 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
974 | 976 |
975 const bool has_valid_scroll_node = | 977 const bool has_valid_scroll_node = |
976 !!GetScrollTree().Node(scroll_tree_index()); | 978 !!GetScrollTree().Node(scroll_tree_index()); |
977 DCHECK(has_valid_scroll_node); | 979 DCHECK(has_valid_scroll_node); |
978 | 980 |
979 return has_valid_transform_node && has_valid_effect_node && | 981 return has_valid_transform_node && has_valid_effect_node && |
980 has_valid_clip_node && has_valid_scroll_node; | 982 has_valid_clip_node && has_valid_scroll_node; |
981 } | 983 } |
982 | 984 |
983 } // namespace cc | 985 } // namespace cc |
OLD | NEW |