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

Side by Side Diff: include/animator/SkAnimator.h

Issue 1811613004: Change SkTime::GetMSecs to double; ensure values stored in SkMSec do not overflow. (Closed) Base URL: https://skia.googlesource.com/skia@master
Patch Set: Rebase. Created 4 years, 9 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 | « gm/SkAnimTimer.h ('k') | include/core/SkTime.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 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
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
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
OLDNEW
« no previous file with comments | « gm/SkAnimTimer.h ('k') | include/core/SkTime.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698