| 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 CompositorAnimation_h | 5 #ifndef CompositorAnimation_h |
| 6 #define CompositorAnimation_h | 6 #define CompositorAnimation_h |
| 7 | 7 |
| 8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
| 9 #include "platform/PlatformExport.h" | 9 #include "platform/PlatformExport.h" |
| 10 #include "platform/animation/CompositorTargetProperty.h" | 10 #include "platform/animation/CompositorTargetProperty.h" |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 64 virtual void setPlaybackRate(double); | 64 virtual void setPlaybackRate(double); |
| 65 | 65 |
| 66 virtual FillMode fillMode() const; | 66 virtual FillMode fillMode() const; |
| 67 virtual void setFillMode(FillMode); | 67 virtual void setFillMode(FillMode); |
| 68 | 68 |
| 69 virtual double iterationStart() const; | 69 virtual double iterationStart() const; |
| 70 virtual void setIterationStart(double); | 70 virtual void setIterationStart(double); |
| 71 | 71 |
| 72 scoped_ptr<cc::Animation> passAnimation(); | 72 scoped_ptr<cc::Animation> passAnimation(); |
| 73 | 73 |
| 74 // Removes ownership over cc animation. Identical to PassAnimation. | |
| 75 // TODO(loyso): Erase this method. crbug.com/575041 | |
| 76 cc::Animation* releaseCCAnimation(); | |
| 77 | |
| 78 protected: | 74 protected: |
| 79 CompositorAnimation(); | 75 CompositorAnimation(); |
| 80 | 76 |
| 81 private: | 77 private: |
| 82 scoped_ptr<cc::Animation> m_animation; | 78 scoped_ptr<cc::Animation> m_animation; |
| 83 }; | 79 }; |
| 84 | 80 |
| 85 } // namespace blink | 81 } // namespace blink |
| 86 | 82 |
| 87 #endif // CompositorAnimation_h | 83 #endif // CompositorAnimation_h |
| OLD | NEW |