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

Side by Side Diff: Source/core/animation/Player.h

Issue 46043014: Web Animations CSS: Unfreeze AnimationClock if sampling timelines does not trigger style recalc (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Reinstate assert Created 7 years, 1 month 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 | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2013 Google Inc. All rights reserved. 2 * Copyright (C) 2013 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 42
43 public: 43 public:
44 ~Player(); 44 ~Player();
45 static PassRefPtr<Player> create(DocumentTimeline&, TimedItem*); 45 static PassRefPtr<Player> create(DocumentTimeline&, TimedItem*);
46 46
47 // Returns whether this player is still current or in effect. 47 // Returns whether this player is still current or in effect.
48 // timeToEffectChange returns: 48 // timeToEffectChange returns:
49 // infinity - if this player is no longer in effect 49 // infinity - if this player is no longer in effect
50 // 0 - if this player requires an update on the next frame 50 // 0 - if this player requires an update on the next frame
51 // n - if this player requires an update after 'n' units of time 51 // n - if this player requires an update after 'n' units of time
52 bool update(double* timeToEffectChange = 0); 52 bool update(double* timeToEffectChange = 0, bool* didTriggerStyleRecalc = 0) ;
53 53
54 void cancel(); 54 void cancel();
55 double currentTime() const; 55 double currentTime() const;
56 void setCurrentTime(double); 56 void setCurrentTime(double);
57 bool paused() const { return !m_isPausedForTesting && pausedInternal(); } 57 bool paused() const { return !m_isPausedForTesting && pausedInternal(); }
58 void setPaused(bool); 58 void setPaused(bool);
59 double playbackRate() const { return m_playbackRate; } 59 double playbackRate() const { return m_playbackRate; }
60 void setPlaybackRate(double); 60 void setPlaybackRate(double);
61 double startTime() const { return m_startTime; } 61 double startTime() const { return m_startTime; }
62 double timeDrift() const; 62 double timeDrift() const;
(...skipping 19 matching lines...) Expand all
82 const double m_startTime; 82 const double m_startTime;
83 83
84 RefPtr<TimedItem> m_content; 84 RefPtr<TimedItem> m_content;
85 DocumentTimeline& m_timeline; 85 DocumentTimeline& m_timeline;
86 bool m_isPausedForTesting; 86 bool m_isPausedForTesting;
87 }; 87 };
88 88
89 } // namespace 89 } // namespace
90 90
91 #endif 91 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698