Chromium Code Reviews| Index: ui/gfx/animation/linear_animation.h |
| diff --git a/ui/gfx/animation/linear_animation.h b/ui/gfx/animation/linear_animation.h |
| index d9e6de32374afcf862285c9b92e953d04b870eb8..02caac907b937c132e514e4fe224cafd33356516 100644 |
| --- a/ui/gfx/animation/linear_animation.h |
| +++ b/ui/gfx/animation/linear_animation.h |
| @@ -17,13 +17,17 @@ class AnimationDelegate; |
| // invoked. |
| class GFX_EXPORT LinearAnimation : public Animation { |
| public: |
| + // Default frame rate (hz). |
| + static const int kDefaultFrameRate = 60; |
| + |
| // Initializes everything except the duration. |
| // |
| // Caller must make sure to call SetDuration() if they use this |
| // constructor; it is preferable to use the full one, but sometimes |
| // duration can change between calls to Start() and we need to |
| // expose this interface. |
| - LinearAnimation(int frame_rate, AnimationDelegate* delegate); |
| + LinearAnimation(AnimationDelegate* delegate, |
|
sky
2016/09/13 19:22:15
As the second parameter is optional I believe you
Evan Stade
2016/09/13 22:01:24
Done.
|
| + int frame_rate = kDefaultFrameRate); |
| // Initializes all fields. |
| LinearAnimation(int duration, int frame_rate, AnimationDelegate* delegate); |