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

Side by Side Diff: cc/test/animation_test_common.h

Issue 1076313006: Animation start scale should be considered for the raster scale (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebasing and Added more tests Created 5 years, 7 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/layers/picture_layer_impl_unittest.cc ('k') | cc/test/animation_test_common.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_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 28 matching lines...) Expand all
39 explicit FakeTransformTransition(double duration); 39 explicit FakeTransformTransition(double duration);
40 ~FakeTransformTransition() override; 40 ~FakeTransformTransition() override;
41 41
42 base::TimeDelta Duration() const override; 42 base::TimeDelta Duration() const override;
43 gfx::Transform GetValue(base::TimeDelta time) const override; 43 gfx::Transform GetValue(base::TimeDelta time) const override;
44 bool AnimatedBoundsForBox(const gfx::BoxF& box, 44 bool AnimatedBoundsForBox(const gfx::BoxF& box,
45 gfx::BoxF* bounds) const override; 45 gfx::BoxF* bounds) const override;
46 bool AffectsScale() const override; 46 bool AffectsScale() const override;
47 bool IsTranslation() const override; 47 bool IsTranslation() const override;
48 bool PreservesAxisAlignment() const override; 48 bool PreservesAxisAlignment() const override;
49 bool AnimationStartScale(bool forward_direction,
50 float* start_scale) const override;
49 bool MaximumTargetScale(bool forward_direction, 51 bool MaximumTargetScale(bool forward_direction,
50 float* max_scale) const override; 52 float* max_scale) const override;
51 53
52 scoped_ptr<AnimationCurve> Clone() const override; 54 scoped_ptr<AnimationCurve> Clone() const override;
53 55
54 private: 56 private:
55 base::TimeDelta duration_; 57 base::TimeDelta duration_;
56 }; 58 };
57 59
58 class FakeFloatTransition : public FloatAnimationCurve { 60 class FakeFloatTransition : public FloatAnimationCurve {
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
173 float end_brightness); 175 float end_brightness);
174 176
175 int AddAnimatedFilterToLayer(LayerImpl* layer, 177 int AddAnimatedFilterToLayer(LayerImpl* layer,
176 double duration, 178 double duration,
177 float start_brightness, 179 float start_brightness,
178 float end_brightness); 180 float end_brightness);
179 181
180 } // namespace cc 182 } // namespace cc
181 183
182 #endif // CC_TEST_ANIMATION_TEST_COMMON_H_ 184 #endif // CC_TEST_ANIMATION_TEST_COMMON_H_
OLDNEW
« no previous file with comments | « cc/layers/picture_layer_impl_unittest.cc ('k') | cc/test/animation_test_common.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698