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

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

Issue 642983003: cc: Make PictureLayerImpl use a better choice for animated raster scale. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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_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 "cc/animation/animation_curve.h" 8 #include "cc/animation/animation_curve.h"
9 #include "cc/animation/timing_function.h" 9 #include "cc/animation/timing_function.h"
10 #include "cc/animation/transform_operations.h" 10 #include "cc/animation/transform_operations.h"
(...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after
189 // AnimationCurve implementation 189 // AnimationCurve implementation
190 virtual double Duration() const override; 190 virtual double Duration() const override;
191 virtual scoped_ptr<AnimationCurve> Clone() const override; 191 virtual scoped_ptr<AnimationCurve> Clone() const override;
192 192
193 // TransformAnimationCurve implementation 193 // TransformAnimationCurve implementation
194 virtual gfx::Transform GetValue(double t) const override; 194 virtual gfx::Transform GetValue(double t) const override;
195 virtual bool AnimatedBoundsForBox(const gfx::BoxF& box, 195 virtual bool AnimatedBoundsForBox(const gfx::BoxF& box,
196 gfx::BoxF* bounds) const override; 196 gfx::BoxF* bounds) const override;
197 virtual bool AffectsScale() const override; 197 virtual bool AffectsScale() const override;
198 virtual bool IsTranslation() const override; 198 virtual bool IsTranslation() const override;
199 virtual bool MaximumScale(float* max_scale) const override; 199 virtual bool MaximumTargetScale(float* max_scale) const override;
200 200
201 private: 201 private:
202 KeyframedTransformAnimationCurve(); 202 KeyframedTransformAnimationCurve();
203 203
204 // Always sorted in order of increasing time. No two keyframes have the 204 // Always sorted in order of increasing time. No two keyframes have the
205 // same time. 205 // same time.
206 ScopedPtrVector<TransformKeyframe> keyframes_; 206 ScopedPtrVector<TransformKeyframe> keyframes_;
207 scoped_ptr<TimingFunction> timing_function_; 207 scoped_ptr<TimingFunction> timing_function_;
208 208
209 DISALLOW_COPY_AND_ASSIGN(KeyframedTransformAnimationCurve); 209 DISALLOW_COPY_AND_ASSIGN(KeyframedTransformAnimationCurve);
(...skipping 27 matching lines...) Expand all
237 // same time. 237 // same time.
238 ScopedPtrVector<FilterKeyframe> keyframes_; 238 ScopedPtrVector<FilterKeyframe> keyframes_;
239 scoped_ptr<TimingFunction> timing_function_; 239 scoped_ptr<TimingFunction> timing_function_;
240 240
241 DISALLOW_COPY_AND_ASSIGN(KeyframedFilterAnimationCurve); 241 DISALLOW_COPY_AND_ASSIGN(KeyframedFilterAnimationCurve);
242 }; 242 };
243 243
244 } // namespace cc 244 } // namespace cc
245 245
246 #endif // CC_ANIMATION_KEYFRAMED_ANIMATION_CURVE_H_ 246 #endif // CC_ANIMATION_KEYFRAMED_ANIMATION_CURVE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698