| OLD | NEW |
| 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_CURVE_H_ | 5 #ifndef CC_ANIMATION_CURVE_H_ |
| 6 #define CC_ANIMATION_CURVE_H_ | 6 #define CC_ANIMATION_CURVE_H_ |
| 7 | 7 |
| 8 #include <public/WebTransformationMatrix.h> | |
| 9 | |
| 10 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
| 11 #include "cc/cc_export.h" | 9 #include "cc/cc_export.h" |
| 10 #include "third_party/WebKit/Source/Platform/chromium/public/WebTransformationMa
trix.h" |
| 12 | 11 |
| 13 namespace cc { | 12 namespace cc { |
| 14 | 13 |
| 15 class FloatAnimationCurve; | 14 class FloatAnimationCurve; |
| 16 class TransformAnimationCurve; | 15 class TransformAnimationCurve; |
| 17 class TransformOperations; | 16 class TransformOperations; |
| 18 | 17 |
| 19 // An animation curve is a function that returns a value given a time. | 18 // An animation curve is a function that returns a value given a time. |
| 20 // There are currently only two types of curve, float and transform. | 19 // There are currently only two types of curve, float and transform. |
| 21 class CC_EXPORT AnimationCurve { | 20 class CC_EXPORT AnimationCurve { |
| (...skipping 26 matching lines...) Expand all Loading... |
| 48 | 47 |
| 49 virtual WebKit::WebTransformationMatrix getValue(double t) const = 0; | 48 virtual WebKit::WebTransformationMatrix getValue(double t) const = 0; |
| 50 | 49 |
| 51 // Partial Animation implementation. | 50 // Partial Animation implementation. |
| 52 virtual Type type() const OVERRIDE; | 51 virtual Type type() const OVERRIDE; |
| 53 }; | 52 }; |
| 54 | 53 |
| 55 } // namespace cc | 54 } // namespace cc |
| 56 | 55 |
| 57 #endif // CC_ANIMATION_CURVE_H_ | 56 #endif // CC_ANIMATION_CURVE_H_ |
| OLD | NEW |