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

Side by Side Diff: cc/test/animation_test_common.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: animationscale: fixes 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_TEST_ANIMATION_TEST_COMMON_H_ 5 #ifndef CC_TEST_ANIMATION_TEST_COMMON_H_
6 #define CC_TEST_ANIMATION_TEST_COMMON_H_ 6 #define CC_TEST_ANIMATION_TEST_COMMON_H_
7 7
8 #include "cc/animation/animation.h" 8 #include "cc/animation/animation.h"
9 #include "cc/animation/animation_curve.h" 9 #include "cc/animation/animation_curve.h"
10 #include "cc/animation/layer_animation_controller.h" 10 #include "cc/animation/layer_animation_controller.h"
(...skipping 27 matching lines...) Expand all
38 public: 38 public:
39 explicit FakeTransformTransition(double duration); 39 explicit FakeTransformTransition(double duration);
40 virtual ~FakeTransformTransition(); 40 virtual ~FakeTransformTransition();
41 41
42 virtual double Duration() const override; 42 virtual double Duration() const override;
43 virtual gfx::Transform GetValue(double time) const override; 43 virtual gfx::Transform GetValue(double time) const override;
44 virtual bool AnimatedBoundsForBox(const gfx::BoxF& box, 44 virtual bool AnimatedBoundsForBox(const gfx::BoxF& box,
45 gfx::BoxF* bounds) const override; 45 gfx::BoxF* bounds) const override;
46 virtual bool AffectsScale() const override; 46 virtual bool AffectsScale() const override;
47 virtual bool IsTranslation() const override; 47 virtual bool IsTranslation() const override;
48 virtual bool MaximumScale(float* max_scale) const override; 48 virtual bool MaximumTargetScale(float* max_scale) const override;
49 49
50 virtual scoped_ptr<AnimationCurve> Clone() const override; 50 virtual scoped_ptr<AnimationCurve> Clone() const override;
51 51
52 private: 52 private:
53 double duration_; 53 double duration_;
54 }; 54 };
55 55
56 class FakeFloatTransition : public FloatAnimationCurve { 56 class FakeFloatTransition : public FloatAnimationCurve {
57 public: 57 public:
58 FakeFloatTransition(double duration, float from, float to); 58 FakeFloatTransition(double duration, float from, float to);
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
172 float end_brightness); 172 float end_brightness);
173 173
174 int AddAnimatedFilterToLayer(LayerImpl* layer, 174 int AddAnimatedFilterToLayer(LayerImpl* layer,
175 double duration, 175 double duration,
176 float start_brightness, 176 float start_brightness,
177 float end_brightness); 177 float end_brightness);
178 178
179 } // namespace cc 179 } // namespace cc
180 180
181 #endif // CC_TEST_ANIMATION_TEST_COMMON_H_ 181 #endif // CC_TEST_ANIMATION_TEST_COMMON_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698