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

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

Issue 465853004: Moving RenderSurface creation outside of CalcDrawProps (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years 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 "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 178 matching lines...) Expand 10 before | Expand all | Expand 10 after
189 189
190 // AnimationCurve implementation 190 // AnimationCurve implementation
191 base::TimeDelta Duration() const override; 191 base::TimeDelta Duration() const override;
192 scoped_ptr<AnimationCurve> Clone() const override; 192 scoped_ptr<AnimationCurve> Clone() const override;
193 193
194 // TransformAnimationCurve implementation 194 // TransformAnimationCurve implementation
195 gfx::Transform GetValue(double t) const override; 195 gfx::Transform GetValue(double t) const override;
196 bool AnimatedBoundsForBox(const gfx::BoxF& box, 196 bool AnimatedBoundsForBox(const gfx::BoxF& box,
197 gfx::BoxF* bounds) const override; 197 gfx::BoxF* bounds) const override;
198 bool AffectsScale() const override; 198 bool AffectsScale() const override;
199 bool PreservesAxisAlignment() const override;
199 bool IsTranslation() const override; 200 bool IsTranslation() const override;
200 bool MaximumTargetScale(bool forward_direction, 201 bool MaximumTargetScale(bool forward_direction,
201 float* max_scale) const override; 202 float* max_scale) const override;
202 203
203 private: 204 private:
204 KeyframedTransformAnimationCurve(); 205 KeyframedTransformAnimationCurve();
205 206
206 // Always sorted in order of increasing time. No two keyframes have the 207 // Always sorted in order of increasing time. No two keyframes have the
207 // same time. 208 // same time.
208 ScopedPtrVector<TransformKeyframe> keyframes_; 209 ScopedPtrVector<TransformKeyframe> keyframes_;
(...skipping 30 matching lines...) Expand all
239 // same time. 240 // same time.
240 ScopedPtrVector<FilterKeyframe> keyframes_; 241 ScopedPtrVector<FilterKeyframe> keyframes_;
241 scoped_ptr<TimingFunction> timing_function_; 242 scoped_ptr<TimingFunction> timing_function_;
242 243
243 DISALLOW_COPY_AND_ASSIGN(KeyframedFilterAnimationCurve); 244 DISALLOW_COPY_AND_ASSIGN(KeyframedFilterAnimationCurve);
244 }; 245 };
245 246
246 } // namespace cc 247 } // namespace cc
247 248
248 #endif // CC_ANIMATION_KEYFRAMED_ANIMATION_CURVE_H_ 249 #endif // CC_ANIMATION_KEYFRAMED_ANIMATION_CURVE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698