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

Side by Side Diff: cc/animation/keyframed_animation_curve.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/animation_curve.h ('k') | cc/animation/keyframed_animation_curve.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_KEYFRAMED_ANIMATION_CURVE_H_ 5 #ifndef CC_ANIMATION_KEYFRAMED_ANIMATION_CURVE_H_
6 #define CC_ANIMATION_KEYFRAMED_ANIMATION_CURVE_H_ 6 #define CC_ANIMATION_KEYFRAMED_ANIMATION_CURVE_H_
7 7
8 #include "base/time/time.h" 8 #include "base/time/time.h"
9 #include "cc/animation/animation_curve.h" 9 #include "cc/animation/animation_curve.h"
10 #include "cc/animation/timing_function.h" 10 #include "cc/animation/timing_function.h"
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after
187 187
188 // AnimationCurve implementation 188 // AnimationCurve implementation
189 base::TimeDelta Duration() const override; 189 base::TimeDelta Duration() const override;
190 scoped_ptr<AnimationCurve> Clone() const override; 190 scoped_ptr<AnimationCurve> Clone() const override;
191 191
192 // TransformAnimationCurve implementation 192 // TransformAnimationCurve implementation
193 gfx::Transform GetValue(base::TimeDelta t) const override; 193 gfx::Transform GetValue(base::TimeDelta t) const override;
194 bool AnimatedBoundsForBox(const gfx::BoxF& box, 194 bool AnimatedBoundsForBox(const gfx::BoxF& box,
195 gfx::BoxF* bounds) const override; 195 gfx::BoxF* bounds) const override;
196 bool AffectsScale() const override; 196 bool AffectsScale() const override;
197 bool PreservesAxisAlignment() const override;
197 bool IsTranslation() const override; 198 bool IsTranslation() const override;
198 bool MaximumTargetScale(bool forward_direction, 199 bool MaximumTargetScale(bool forward_direction,
199 float* max_scale) const override; 200 float* max_scale) const override;
200 201
201 private: 202 private:
202 KeyframedTransformAnimationCurve(); 203 KeyframedTransformAnimationCurve();
203 204
204 // Always sorted in order of increasing time. No two keyframes have the 205 // Always sorted in order of increasing time. No two keyframes have the
205 // same time. 206 // same time.
206 ScopedPtrVector<TransformKeyframe> keyframes_; 207 ScopedPtrVector<TransformKeyframe> keyframes_;
(...skipping 30 matching lines...) Expand all
237 // same time. 238 // same time.
238 ScopedPtrVector<FilterKeyframe> keyframes_; 239 ScopedPtrVector<FilterKeyframe> keyframes_;
239 scoped_ptr<TimingFunction> timing_function_; 240 scoped_ptr<TimingFunction> timing_function_;
240 241
241 DISALLOW_COPY_AND_ASSIGN(KeyframedFilterAnimationCurve); 242 DISALLOW_COPY_AND_ASSIGN(KeyframedFilterAnimationCurve);
242 }; 243 };
243 244
244 } // namespace cc 245 } // namespace cc
245 246
246 #endif // CC_ANIMATION_KEYFRAMED_ANIMATION_CURVE_H_ 247 #endif // CC_ANIMATION_KEYFRAMED_ANIMATION_CURVE_H_
OLDNEW
« no previous file with comments | « cc/animation/animation_curve.h ('k') | cc/animation/keyframed_animation_curve.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698