Lines Matching refs:layer

15 bool HasAnimationThatInflatesBounds(const LayerImpl& layer) {
16 return layer.layer_animation_controller()->HasAnimationThatInflatesBounds();
19 bool HasFilterAnimationThatInflatesBounds(const LayerImpl& layer) {
20 return layer.layer_animation_controller()
24 bool HasTransformAnimationThatInflatesBounds(const LayerImpl& layer) {
25 return layer.layer_animation_controller()
29 inline bool HasAncestorTransformAnimation(const LayerImpl& layer) {
30 return layer.screen_space_transform_is_animating();
33 inline bool HasAncestorFilterAnimation(const LayerImpl& layer) {
34 for (const LayerImpl* current = &layer; current;
51 // animated layer.
56 // To compute the inflated bounds for a layer, we start by taking its bounds
58 // repeatedly as we walk up the layer tree to the root.
60 // At each layer we apply the following transformations to the box:
62 // 2) We either apply the layer's transform or inflate if the layer's
65 // to account for the layer's position.
77 for (const LayerImpl* layer = &layer_in; layer; layer = layer->parent()) {
78 int transform_origin_x = layer->transform_origin().x();
79 int transform_origin_y = layer->transform_origin().y();
80 int transform_origin_z = layer->transform_origin().z();
82 gfx::PointF position = layer->position();
83 if (layer->parent() && !HasAnimationThatInflatesBounds(*layer)) {
93 composite_layer_transform.PreconcatTransform(layer->transform());
97 // Add this layer's contributions to the |coalesced_transform|.
106 // We need to apply the inflation about the layer's anchor point. Rather
113 if (HasFilterAnimationThatInflatesBounds(*layer)) {
115 if (!layer->layer_animation_controller()->FilterAnimationBoundsForBox(
121 if (HasTransformAnimationThatInflatesBounds(*layer)) {
123 if (!layer->layer_animation_controller()->TransformAnimationBoundsForBox(