OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/trees/property_tree_builder.h" | 5 #include "cc/trees/property_tree_builder.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 | 8 |
9 #include <map> | 9 #include <map> |
10 #include <set> | 10 #include <set> |
(...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
234 !layer->transform().IsIdentityOr2DTranslation(); | 234 !layer->transform().IsIdentityOr2DTranslation(); |
235 | 235 |
236 const bool has_potentially_animated_transform = | 236 const bool has_potentially_animated_transform = |
237 layer->HasPotentiallyRunningTransformAnimation(); | 237 layer->HasPotentiallyRunningTransformAnimation(); |
238 | 238 |
239 // A transform node is needed even for a finished animation, since differences | 239 // A transform node is needed even for a finished animation, since differences |
240 // in the timing of animation state updates can mean that an animation that's | 240 // in the timing of animation state updates can mean that an animation that's |
241 // in the Finished state at tree-building time on the main thread is still in | 241 // in the Finished state at tree-building time on the main thread is still in |
242 // the Running state right after commit on the compositor thread. | 242 // the Running state right after commit on the compositor thread. |
243 const bool has_any_transform_animation = | 243 const bool has_any_transform_animation = |
244 layer->HasAnyAnimationTargetingProperty(Animation::TRANSFORM); | 244 layer->HasAnyAnimationTargetingProperty(TargetProperty::TRANSFORM); |
245 | 245 |
246 const bool has_surface = created_render_surface; | 246 const bool has_surface = created_render_surface; |
247 | 247 |
248 // A transform node is needed to change the render target for subtree when | 248 // A transform node is needed to change the render target for subtree when |
249 // a scroll child's render target is different from the scroll parent's render | 249 // a scroll child's render target is different from the scroll parent's render |
250 // target. | 250 // target. |
251 const bool scroll_child_has_different_target = | 251 const bool scroll_child_has_different_target = |
252 layer->scroll_parent() && | 252 layer->scroll_parent() && |
253 layer->parent()->effect_tree_index() != | 253 layer->parent()->effect_tree_index() != |
254 layer->scroll_parent()->effect_tree_index(); | 254 layer->scroll_parent()->effect_tree_index(); |
(...skipping 705 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
960 const gfx::Transform& device_transform, | 960 const gfx::Transform& device_transform, |
961 PropertyTrees* property_trees) { | 961 PropertyTrees* property_trees) { |
962 BuildPropertyTreesTopLevelInternal( | 962 BuildPropertyTreesTopLevelInternal( |
963 root_layer, page_scale_layer, inner_viewport_scroll_layer, | 963 root_layer, page_scale_layer, inner_viewport_scroll_layer, |
964 outer_viewport_scroll_layer, overscroll_elasticity_layer, | 964 outer_viewport_scroll_layer, overscroll_elasticity_layer, |
965 elastic_overscroll, page_scale_factor, device_scale_factor, viewport, | 965 elastic_overscroll, page_scale_factor, device_scale_factor, viewport, |
966 device_transform, property_trees); | 966 device_transform, property_trees); |
967 } | 967 } |
968 | 968 |
969 } // namespace cc | 969 } // namespace cc |
OLD | NEW |