OLD | NEW |
1 // Copyright 2010 The Chromium Authors. All rights reserved. | 1 // Copyright 2010 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.h" | 5 #include "cc/layers/layer.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 | 8 |
9 #include "base/atomic_sequence_num.h" | 9 #include "base/atomic_sequence_num.h" |
10 #include "base/location.h" | 10 #include "base/location.h" |
(...skipping 1197 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1208 DCHECK(!(OpacityIsAnimating() && layer->OpacityIsAnimatingOnImplOnly())); | 1208 DCHECK(!(OpacityIsAnimating() && layer->OpacityIsAnimatingOnImplOnly())); |
1209 layer->SetBlendMode(blend_mode_); | 1209 layer->SetBlendMode(blend_mode_); |
1210 layer->SetIsRootForIsolatedGroup(is_root_for_isolated_group_); | 1210 layer->SetIsRootForIsolatedGroup(is_root_for_isolated_group_); |
1211 layer->SetPosition(position_); | 1211 layer->SetPosition(position_); |
1212 layer->SetIsContainerForFixedPositionLayers( | 1212 layer->SetIsContainerForFixedPositionLayers( |
1213 IsContainerForFixedPositionLayers()); | 1213 IsContainerForFixedPositionLayers()); |
1214 layer->SetPositionConstraint(position_constraint_); | 1214 layer->SetPositionConstraint(position_constraint_); |
1215 layer->SetShouldFlattenTransform(should_flatten_transform_); | 1215 layer->SetShouldFlattenTransform(should_flatten_transform_); |
1216 layer->set_should_flatten_transform_from_property_tree( | 1216 layer->set_should_flatten_transform_from_property_tree( |
1217 should_flatten_transform_from_property_tree_); | 1217 should_flatten_transform_from_property_tree_); |
| 1218 layer->set_is_clipped_from_property_tree(is_clipped_from_property_tree_); |
1218 layer->SetUseParentBackfaceVisibility(use_parent_backface_visibility_); | 1219 layer->SetUseParentBackfaceVisibility(use_parent_backface_visibility_); |
1219 if (!layer->TransformIsAnimatingOnImplOnly() && !TransformIsAnimating()) | 1220 if (!layer->TransformIsAnimatingOnImplOnly() && !TransformIsAnimating()) |
1220 layer->SetTransformAndInvertibility(transform_, transform_is_invertible_); | 1221 layer->SetTransformAndInvertibility(transform_, transform_is_invertible_); |
1221 DCHECK(!(TransformIsAnimating() && layer->TransformIsAnimatingOnImplOnly())); | 1222 DCHECK(!(TransformIsAnimating() && layer->TransformIsAnimatingOnImplOnly())); |
1222 layer->Set3dSortingContextId(sorting_context_id_); | 1223 layer->Set3dSortingContextId(sorting_context_id_); |
1223 layer->SetNumDescendantsThatDrawContent(num_descendants_that_draw_content_); | 1224 layer->SetNumDescendantsThatDrawContent(num_descendants_that_draw_content_); |
1224 | 1225 |
1225 layer->SetScrollClipLayer(scroll_clip_layer_id_); | 1226 layer->SetScrollClipLayer(scroll_clip_layer_id_); |
1226 layer->set_user_scrollable_horizontal(user_scrollable_horizontal_); | 1227 layer->set_user_scrollable_horizontal(user_scrollable_horizontal_); |
1227 layer->set_user_scrollable_vertical(user_scrollable_vertical_); | 1228 layer->set_user_scrollable_vertical(user_scrollable_vertical_); |
(...skipping 431 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1659 ? layer_tree_host()->meta_information_sequence_number() | 1660 ? layer_tree_host()->meta_information_sequence_number() |
1660 : 0; | 1661 : 0; |
1661 } | 1662 } |
1662 | 1663 |
1663 bool Layer::sorted_for_recursion() { | 1664 bool Layer::sorted_for_recursion() { |
1664 return sorted_for_recursion_tracker_ == | 1665 return sorted_for_recursion_tracker_ == |
1665 layer_tree_host()->meta_information_sequence_number(); | 1666 layer_tree_host()->meta_information_sequence_number(); |
1666 } | 1667 } |
1667 | 1668 |
1668 } // namespace cc | 1669 } // namespace cc |
OLD | NEW |