| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 CompositorKeyframe_h | 5 #ifndef CompositorKeyframe_h |
| 6 #define CompositorKeyframe_h | 6 #define CompositorKeyframe_h |
| 7 | 7 |
| 8 #include "platform/PlatformExport.h" | 8 #include "platform/PlatformExport.h" |
| 9 #include "wtf/PassRefPtr.h" | 9 #include "platform/wtf/PassRefPtr.h" |
| 10 | 10 |
| 11 namespace cc { | 11 namespace cc { |
| 12 class TimingFunction; | 12 class TimingFunction; |
| 13 } | 13 } |
| 14 | 14 |
| 15 namespace blink { | 15 namespace blink { |
| 16 | 16 |
| 17 class TimingFunction; | 17 class TimingFunction; |
| 18 | 18 |
| 19 class PLATFORM_EXPORT CompositorKeyframe { | 19 class PLATFORM_EXPORT CompositorKeyframe { |
| 20 public: | 20 public: |
| 21 virtual ~CompositorKeyframe() {} | 21 virtual ~CompositorKeyframe() {} |
| 22 | 22 |
| 23 virtual double time() const = 0; | 23 virtual double time() const = 0; |
| 24 | 24 |
| 25 PassRefPtr<TimingFunction> getTimingFunctionForTesting() const; | 25 PassRefPtr<TimingFunction> getTimingFunctionForTesting() const; |
| 26 | 26 |
| 27 private: | 27 private: |
| 28 virtual const cc::TimingFunction* ccTimingFunction() const = 0; | 28 virtual const cc::TimingFunction* ccTimingFunction() const = 0; |
| 29 }; | 29 }; |
| 30 | 30 |
| 31 } // namespace blink | 31 } // namespace blink |
| 32 | 32 |
| 33 #endif // CompositorKeyframe_h | 33 #endif // CompositorKeyframe_h |
| OLD | NEW |