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

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

Issue 2388943002: cc: Delete unused AnimationCurve::AffectsScale and related code (Closed)
Patch Set: Created 4 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
« no previous file with comments | « no previous file | cc/animation/animation_player.h » ('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_ANIMATION_ANIMATION_CURVE_H_ 5 #ifndef CC_ANIMATION_ANIMATION_CURVE_H_
6 #define CC_ANIMATION_ANIMATION_CURVE_H_ 6 #define CC_ANIMATION_ANIMATION_CURVE_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "base/time/time.h" 10 #include "base/time/time.h"
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 ~TransformAnimationCurve() override {} 70 ~TransformAnimationCurve() override {}
71 71
72 virtual gfx::Transform GetValue(base::TimeDelta t) const = 0; 72 virtual gfx::Transform GetValue(base::TimeDelta t) const = 0;
73 73
74 // Sets |bounds| to be the bounding box for the region within which |box| 74 // Sets |bounds| to be the bounding box for the region within which |box|
75 // will move during this animation. If this region cannot be computed, 75 // will move during this animation. If this region cannot be computed,
76 // returns false. 76 // returns false.
77 virtual bool AnimatedBoundsForBox(const gfx::BoxF& box, 77 virtual bool AnimatedBoundsForBox(const gfx::BoxF& box,
78 gfx::BoxF* bounds) const = 0; 78 gfx::BoxF* bounds) const = 0;
79 79
80 // Returns true if this animation affects scale.
81 virtual bool AffectsScale() const = 0;
82
83 // Returns true if this animation is a translation. 80 // Returns true if this animation is a translation.
84 virtual bool IsTranslation() const = 0; 81 virtual bool IsTranslation() const = 0;
85 82
86 // Returns true if this animation preserves axis alignment. 83 // Returns true if this animation preserves axis alignment.
87 virtual bool PreservesAxisAlignment() const = 0; 84 virtual bool PreservesAxisAlignment() const = 0;
88 85
89 // Animation start scale 86 // Animation start scale
90 virtual bool AnimationStartScale(bool forward_direction, 87 virtual bool AnimationStartScale(bool forward_direction,
91 float* start_scale) const = 0; 88 float* start_scale) const = 0;
92 89
(...skipping 16 matching lines...) Expand all
109 virtual FilterOperations GetValue(base::TimeDelta t) const = 0; 106 virtual FilterOperations GetValue(base::TimeDelta t) const = 0;
110 virtual bool HasFilterThatMovesPixels() const = 0; 107 virtual bool HasFilterThatMovesPixels() const = 0;
111 108
112 // Partial Animation implementation. 109 // Partial Animation implementation.
113 CurveType Type() const override; 110 CurveType Type() const override;
114 }; 111 };
115 112
116 } // namespace cc 113 } // namespace cc
117 114
118 #endif // CC_ANIMATION_ANIMATION_CURVE_H_ 115 #endif // CC_ANIMATION_ANIMATION_CURVE_H_
OLDNEW
« no previous file with comments | « no previous file | cc/animation/animation_player.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698