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

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

Issue 817653003: Update from https://crrev.com/309717 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 11 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
« no previous file with comments | « cc/animation/keyframed_animation_curve.cc ('k') | cc/animation/layer_animation_controller.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 127
128 bool FilterAnimationBoundsForBox(const gfx::BoxF& box, 128 bool FilterAnimationBoundsForBox(const gfx::BoxF& box,
129 gfx::BoxF* bounds) const; 129 gfx::BoxF* bounds) const;
130 bool TransformAnimationBoundsForBox(const gfx::BoxF& box, 130 bool TransformAnimationBoundsForBox(const gfx::BoxF& box,
131 gfx::BoxF* bounds) const; 131 gfx::BoxF* bounds) const;
132 132
133 bool HasAnimationThatAffectsScale() const; 133 bool HasAnimationThatAffectsScale() const;
134 134
135 bool HasOnlyTranslationTransforms() const; 135 bool HasOnlyTranslationTransforms() const;
136 136
137 bool AnimationsPreserveAxisAlignment() const;
138
137 // Sets |max_scale| to the maximum scale along any dimension at any 139 // Sets |max_scale| to the maximum scale along any dimension at any
138 // destination in active animations. Returns false if the maximum scale cannot 140 // destination in active animations. Returns false if the maximum scale cannot
139 // be computed. 141 // be computed.
140 bool MaximumTargetScale(float* max_scale) const; 142 bool MaximumTargetScale(float* max_scale) const;
141 143
142 bool needs_to_start_animations_for_testing() { 144 bool needs_to_start_animations_for_testing() {
143 return needs_to_start_animations_; 145 return needs_to_start_animations_;
144 } 146 }
145 147
146 protected: 148 protected:
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
213 // Only try to start animations when new animations are added or when the 215 // Only try to start animations when new animations are added or when the
214 // previous attempt at starting animations failed to start all animations. 216 // previous attempt at starting animations failed to start all animations.
215 bool needs_to_start_animations_; 217 bool needs_to_start_animations_;
216 218
217 DISALLOW_COPY_AND_ASSIGN(LayerAnimationController); 219 DISALLOW_COPY_AND_ASSIGN(LayerAnimationController);
218 }; 220 };
219 221
220 } // namespace cc 222 } // namespace cc
221 223
222 #endif // CC_ANIMATION_LAYER_ANIMATION_CONTROLLER_H_ 224 #endif // CC_ANIMATION_LAYER_ANIMATION_CONTROLLER_H_
OLDNEW
« no previous file with comments | « cc/animation/keyframed_animation_curve.cc ('k') | cc/animation/layer_animation_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698