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 <stddef.h> | 7 #include <stddef.h> |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <algorithm> | 10 #include <algorithm> |
(...skipping 1147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1158 layer->SetTouchEventHandlerRegion(inputs_.touch_event_handler_region); | 1158 layer->SetTouchEventHandlerRegion(inputs_.touch_event_handler_region); |
1159 layer->SetContentsOpaque(inputs_.contents_opaque); | 1159 layer->SetContentsOpaque(inputs_.contents_opaque); |
1160 layer->SetPosition(inputs_.position); | 1160 layer->SetPosition(inputs_.position); |
1161 layer->set_should_flatten_transform_from_property_tree( | 1161 layer->set_should_flatten_transform_from_property_tree( |
1162 should_flatten_transform_from_property_tree_); | 1162 should_flatten_transform_from_property_tree_); |
1163 layer->set_draw_blend_mode(draw_blend_mode_); | 1163 layer->set_draw_blend_mode(draw_blend_mode_); |
1164 layer->SetUseParentBackfaceVisibility(inputs_.use_parent_backface_visibility); | 1164 layer->SetUseParentBackfaceVisibility(inputs_.use_parent_backface_visibility); |
1165 layer->SetUseLocalTransformForBackfaceVisibility( | 1165 layer->SetUseLocalTransformForBackfaceVisibility( |
1166 use_local_transform_for_backface_visibility_); | 1166 use_local_transform_for_backface_visibility_); |
1167 layer->SetShouldCheckBackfaceVisibility(should_check_backface_visibility_); | 1167 layer->SetShouldCheckBackfaceVisibility(should_check_backface_visibility_); |
1168 layer->Set3dSortingContextId(inputs_.sorting_context_id); | |
1169 | 1168 |
1170 layer->SetScrollClipLayer(inputs_.scroll_clip_layer_id); | 1169 layer->SetScrollClipLayer(inputs_.scroll_clip_layer_id); |
1171 layer->set_user_scrollable_horizontal(inputs_.user_scrollable_horizontal); | 1170 layer->set_user_scrollable_horizontal(inputs_.user_scrollable_horizontal); |
1172 layer->set_user_scrollable_vertical(inputs_.user_scrollable_vertical); | 1171 layer->set_user_scrollable_vertical(inputs_.user_scrollable_vertical); |
1173 layer->SetElementId(inputs_.element_id); | 1172 layer->SetElementId(inputs_.element_id); |
1174 layer->SetMutableProperties(inputs_.mutable_properties); | 1173 layer->SetMutableProperties(inputs_.mutable_properties); |
1175 | 1174 |
1176 // When a scroll offset animation is interrupted the new scroll position on | 1175 // When a scroll offset animation is interrupted the new scroll position on |
1177 // the pending tree will clobber any impl-side scrolling occuring on the | 1176 // the pending tree will clobber any impl-side scrolling occuring on the |
1178 // active tree. To do so, avoid scrolling the pending tree along with it | 1177 // active tree. To do so, avoid scrolling the pending tree along with it |
(...skipping 485 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1664 | 1663 |
1665 LayerTree* Layer::GetLayerTree() const { | 1664 LayerTree* Layer::GetLayerTree() const { |
1666 return layer_tree_; | 1665 return layer_tree_; |
1667 } | 1666 } |
1668 | 1667 |
1669 void Layer::SetLayerIdForTesting(int id) { | 1668 void Layer::SetLayerIdForTesting(int id) { |
1670 inputs_.layer_id = id; | 1669 inputs_.layer_id = id; |
1671 } | 1670 } |
1672 | 1671 |
1673 } // namespace cc | 1672 } // namespace cc |
OLD | NEW |