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 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
74 effect_tree_index_(EffectTree::kInvalidNodeId), | 74 effect_tree_index_(EffectTree::kInvalidNodeId), |
75 clip_tree_index_(ClipTree::kInvalidNodeId), | 75 clip_tree_index_(ClipTree::kInvalidNodeId), |
76 scroll_tree_index_(ScrollTree::kInvalidNodeId), | 76 scroll_tree_index_(ScrollTree::kInvalidNodeId), |
77 current_draw_mode_(DRAW_MODE_NONE), | 77 current_draw_mode_(DRAW_MODE_NONE), |
78 mutable_properties_(MutableProperty::kNone), | 78 mutable_properties_(MutableProperty::kNone), |
79 debug_info_(nullptr), | 79 debug_info_(nullptr), |
80 has_will_change_transform_hint_(false), | 80 has_will_change_transform_hint_(false), |
81 needs_push_properties_(false), | 81 needs_push_properties_(false), |
82 scrollbars_hidden_(false), | 82 scrollbars_hidden_(false), |
83 needs_show_scrollbars_(false), | 83 needs_show_scrollbars_(false), |
84 raster_even_if_not_in_rsll_(false) { | 84 raster_even_if_not_drawn_(false) { |
85 DCHECK_GT(layer_id_, 0); | 85 DCHECK_GT(layer_id_, 0); |
86 | 86 |
87 DCHECK(layer_tree_impl_); | 87 DCHECK(layer_tree_impl_); |
88 layer_tree_impl_->RegisterLayer(this); | 88 layer_tree_impl_->RegisterLayer(this); |
89 layer_tree_impl_->AddToElementMap(this); | 89 layer_tree_impl_->AddToElementMap(this); |
90 | 90 |
91 SetNeedsPushProperties(); | 91 SetNeedsPushProperties(); |
92 } | 92 } |
93 | 93 |
94 LayerImpl::~LayerImpl() { | 94 LayerImpl::~LayerImpl() { |
(...skipping 884 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
979 | 979 |
980 ScrollTree& LayerImpl::GetScrollTree() const { | 980 ScrollTree& LayerImpl::GetScrollTree() const { |
981 return GetPropertyTrees()->scroll_tree; | 981 return GetPropertyTrees()->scroll_tree; |
982 } | 982 } |
983 | 983 |
984 TransformTree& LayerImpl::GetTransformTree() const { | 984 TransformTree& LayerImpl::GetTransformTree() const { |
985 return GetPropertyTrees()->transform_tree; | 985 return GetPropertyTrees()->transform_tree; |
986 } | 986 } |
987 | 987 |
988 } // namespace cc | 988 } // namespace cc |
OLD | NEW |