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 1159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1170 if (subtree_property_changed_) | 1170 if (subtree_property_changed_) |
1171 layer->NoteLayerPropertyChanged(); | 1171 layer->NoteLayerPropertyChanged(); |
1172 if (!FilterIsAnimating()) | 1172 if (!FilterIsAnimating()) |
1173 layer->SetFilters(filters_); | 1173 layer->SetFilters(filters_); |
1174 layer->SetBackgroundFilters(background_filters()); | 1174 layer->SetBackgroundFilters(background_filters()); |
1175 layer->SetMasksToBounds(masks_to_bounds_); | 1175 layer->SetMasksToBounds(masks_to_bounds_); |
1176 layer->set_main_thread_scrolling_reasons(main_thread_scrolling_reasons_); | 1176 layer->set_main_thread_scrolling_reasons(main_thread_scrolling_reasons_); |
1177 layer->SetNonFastScrollableRegion(non_fast_scrollable_region_); | 1177 layer->SetNonFastScrollableRegion(non_fast_scrollable_region_); |
1178 layer->SetTouchEventHandlerRegion(touch_event_handler_region_); | 1178 layer->SetTouchEventHandlerRegion(touch_event_handler_region_); |
1179 layer->SetContentsOpaque(contents_opaque_); | 1179 layer->SetContentsOpaque(contents_opaque_); |
1180 if (!OpacityIsAnimating()) | |
1181 layer->SetOpacity(opacity_); | |
1182 layer->SetBlendMode(blend_mode_); | 1180 layer->SetBlendMode(blend_mode_); |
1183 layer->SetPosition(position_); | 1181 layer->SetPosition(position_); |
1184 layer->set_should_flatten_transform_from_property_tree( | 1182 layer->set_should_flatten_transform_from_property_tree( |
1185 should_flatten_transform_from_property_tree_); | 1183 should_flatten_transform_from_property_tree_); |
1186 layer->set_draw_blend_mode(draw_blend_mode_); | 1184 layer->set_draw_blend_mode(draw_blend_mode_); |
1187 layer->SetUseParentBackfaceVisibility(use_parent_backface_visibility_); | 1185 layer->SetUseParentBackfaceVisibility(use_parent_backface_visibility_); |
1188 layer->SetUseLocalTransformForBackfaceVisibility( | 1186 layer->SetUseLocalTransformForBackfaceVisibility( |
1189 use_local_transform_for_backface_visibility_); | 1187 use_local_transform_for_backface_visibility_); |
1190 layer->SetShouldCheckBackfaceVisibility(should_check_backface_visibility_); | 1188 layer->SetShouldCheckBackfaceVisibility(should_check_backface_visibility_); |
1191 if (!TransformIsAnimating()) | 1189 if (!TransformIsAnimating()) |
(...skipping 637 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1829 ->data.num_copy_requests_in_subtree; | 1827 ->data.num_copy_requests_in_subtree; |
1830 } | 1828 } |
1831 | 1829 |
1832 gfx::Transform Layer::screen_space_transform() const { | 1830 gfx::Transform Layer::screen_space_transform() const { |
1833 DCHECK_NE(transform_tree_index_, -1); | 1831 DCHECK_NE(transform_tree_index_, -1); |
1834 return draw_property_utils::ScreenSpaceTransform( | 1832 return draw_property_utils::ScreenSpaceTransform( |
1835 this, layer_tree_host_->property_trees()->transform_tree); | 1833 this, layer_tree_host_->property_trees()->transform_tree); |
1836 } | 1834 } |
1837 | 1835 |
1838 } // namespace cc | 1836 } // namespace cc |
OLD | NEW |