Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(410)

Side by Side Diff: cc/animation/layer_animation_controller.h

Issue 1076313006: Animation start scale should be considered for the raster scale (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebasing and Added more tests Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2012 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 #ifndef CC_ANIMATION_LAYER_ANIMATION_CONTROLLER_H_ 5 #ifndef CC_ANIMATION_LAYER_ANIMATION_CONTROLLER_H_
6 #define CC_ANIMATION_LAYER_ANIMATION_CONTROLLER_H_ 6 #define CC_ANIMATION_LAYER_ANIMATION_CONTROLLER_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/containers/hash_tables.h" 9 #include "base/containers/hash_tables.h"
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
127 gfx::BoxF* bounds) const; 127 gfx::BoxF* bounds) const;
128 bool TransformAnimationBoundsForBox(const gfx::BoxF& box, 128 bool TransformAnimationBoundsForBox(const gfx::BoxF& box,
129 gfx::BoxF* bounds) const; 129 gfx::BoxF* bounds) const;
130 130
131 bool HasAnimationThatAffectsScale() const; 131 bool HasAnimationThatAffectsScale() const;
132 132
133 bool HasOnlyTranslationTransforms() const; 133 bool HasOnlyTranslationTransforms() const;
134 134
135 bool AnimationsPreserveAxisAlignment() const; 135 bool AnimationsPreserveAxisAlignment() const;
136 136
137 // Sets |start_scale| to the maximum of starting animation scale along any
138 // dimension at any destination in active animations. Returns false if the
139 // starting scale cannot be computed.
140 bool AnimationStartScale(float* start_scale) const;
141
137 // Sets |max_scale| to the maximum scale along any dimension at any 142 // Sets |max_scale| to the maximum scale along any dimension at any
138 // destination in active animations. Returns false if the maximum scale cannot 143 // destination in active animations. Returns false if the maximum scale cannot
139 // be computed. 144 // be computed.
140 bool MaximumTargetScale(float* max_scale) const; 145 bool MaximumTargetScale(float* max_scale) const;
141 146
142 // When a scroll animation is removed on the main thread, its compositor 147 // When a scroll animation is removed on the main thread, its compositor
143 // thread counterpart continues producing scroll deltas until activation. 148 // thread counterpart continues producing scroll deltas until activation.
144 // These scroll deltas need to be cleared at activation, so that the active 149 // These scroll deltas need to be cleared at activation, so that the active
145 // layer's scroll offset matches the offset provided by the main thread 150 // layer's scroll offset matches the offset provided by the main thread
146 // rather than a combination of this offset and scroll deltas produced by 151 // rather than a combination of this offset and scroll deltas produced by
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
222 bool needs_to_start_animations_; 227 bool needs_to_start_animations_;
223 228
224 bool scroll_offset_animation_was_interrupted_; 229 bool scroll_offset_animation_was_interrupted_;
225 230
226 DISALLOW_COPY_AND_ASSIGN(LayerAnimationController); 231 DISALLOW_COPY_AND_ASSIGN(LayerAnimationController);
227 }; 232 };
228 233
229 } // namespace cc 234 } // namespace cc
230 235
231 #endif // CC_ANIMATION_LAYER_ANIMATION_CONTROLLER_H_ 236 #endif // CC_ANIMATION_LAYER_ANIMATION_CONTROLLER_H_
OLDNEW
« no previous file with comments | « cc/animation/keyframed_animation_curve_unittest.cc ('k') | cc/animation/layer_animation_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698