| OLD | NEW |
| 1 | 1 |
| 2 /* | 2 /* |
| 3 * Copyright 2006 The Android Open Source Project | 3 * Copyright 2006 The Android Open Source Project |
| 4 * | 4 * |
| 5 * Use of this source code is governed by a BSD-style license that can be | 5 * Use of this source code is governed by a BSD-style license that can be |
| 6 * found in the LICENSE file. | 6 * found in the LICENSE file. |
| 7 */ | 7 */ |
| 8 | 8 |
| 9 | 9 |
| 10 #ifndef SkAnimator_DEFINED | 10 #ifndef SkAnimator_DEFINED |
| (...skipping 425 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 436 */ | 436 */ |
| 437 class Timeline { | 437 class Timeline { |
| 438 public: | 438 public: |
| 439 virtual ~Timeline() {} | 439 virtual ~Timeline() {} |
| 440 | 440 |
| 441 /** Returns the current time in milliseconds */ | 441 /** Returns the current time in milliseconds */ |
| 442 virtual SkMSec getMSecs() const = 0; | 442 virtual SkMSec getMSecs() const = 0; |
| 443 }; | 443 }; |
| 444 | 444 |
| 445 /** Sets a user class to return the current time to the animator. | 445 /** Sets a user class to return the current time to the animator. |
| 446 Optional; if not called, the system clock will be used by calling SkTime
::GetMSecs instead. | 446 Optional; if not called, the system clock will be used by calling |
| 447 SkEvent::GetMSecsSinceStartup instead. |
| 447 @param callBack the time function | 448 @param callBack the time function |
| 448 */ | 449 */ |
| 449 void setTimeline(const Timeline& ); | 450 void setTimeline(const Timeline& ); |
| 450 | 451 |
| 451 static void Init(bool runUnitTests); | 452 static void Init(bool runUnitTests); |
| 452 static void Term(); | 453 static void Term(); |
| 453 | 454 |
| 454 /** The event sink events generated by the animation are posted to. | 455 /** The event sink events generated by the animation are posted to. |
| 455 Screenplay also posts an inval event to this event sink after processing
an | 456 Screenplay also posts an inval event to this event sink after processing
an |
| 456 event to force a redraw. | 457 event to force a redraw. |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 491 friend class SkAnimatorScript; | 492 friend class SkAnimatorScript; |
| 492 friend class SkAnimatorScript2; | 493 friend class SkAnimatorScript2; |
| 493 friend class SkApply; | 494 friend class SkApply; |
| 494 friend class SkDisplayMovie; | 495 friend class SkDisplayMovie; |
| 495 friend class SkDisplayType; | 496 friend class SkDisplayType; |
| 496 friend class SkPost; | 497 friend class SkPost; |
| 497 friend class SkXMLAnimatorWriter; | 498 friend class SkXMLAnimatorWriter; |
| 498 }; | 499 }; |
| 499 | 500 |
| 500 #endif | 501 #endif |
| OLD | NEW |