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

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

Issue 189883003: Web Animations: Allow animations with delay to start on compositor (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Relax assert. Created 6 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 | 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 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 void setPlaybackRate(double); 70 void setPlaybackRate(double);
71 const DocumentTimeline* timeline() const { return m_timeline; } 71 const DocumentTimeline* timeline() const { return m_timeline; }
72 DocumentTimeline* timeline() { return m_timeline; } 72 DocumentTimeline* timeline() { return m_timeline; }
73 73
74 void timelineDestroyed() { m_timeline = 0; } 74 void timelineDestroyed() { m_timeline = 0; }
75 75
76 bool hasStartTime() const { return !isNull(m_startTime); } 76 bool hasStartTime() const { return !isNull(m_startTime); }
77 double startTime() const { return m_startTime; } 77 double startTime() const { return m_startTime; }
78 void setStartTime(double); 78 void setStartTime(double);
79 79
80 const TimedItem* source() const { return m_content.get(); }
80 TimedItem* source() { return m_content.get(); } 81 TimedItem* source() { return m_content.get(); }
81 TimedItem* source(bool& isNull) { isNull = !m_content; return m_content.get( ); } 82 TimedItem* source(bool& isNull) { isNull = !m_content; return m_content.get( ); }
82 void setSource(TimedItem*); 83 void setSource(TimedItem*);
83 84
84 double timeLag() { return currentTimeWithoutLag() - currentTime(); } 85 double timeLag() { return currentTimeWithoutLag() - currentTime(); }
85 86
86 // Pausing via this method is not reflected in the value returned by 87 // Pausing via this method is not reflected in the value returned by
87 // paused() and must never overlap with pausing via pause(). 88 // paused() and must never overlap with pausing via pause().
88 void pauseForTesting(double pauseTime); 89 void pauseForTesting(double pauseTime);
89 // This should only be used for CSS 90 // This should only be used for CSS
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 // This indicates timing information relevant to the player has changed by 125 // This indicates timing information relevant to the player has changed by
125 // means other than the ordinary progression of time 126 // means other than the ordinary progression of time
126 bool m_outdated; 127 bool m_outdated;
127 128
128 unsigned m_sequenceNumber; 129 unsigned m_sequenceNumber;
129 }; 130 };
130 131
131 } // namespace 132 } // namespace
132 133
133 #endif 134 #endif
OLDNEW
« no previous file with comments | « Source/core/animation/ActiveAnimations.cpp ('k') | Source/core/animation/CompositorAnimations.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698