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

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

Issue 189883003: Web Animations: Allow animations with delay to start on compositor (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: 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 29 matching lines...) Expand all
119 bool m_held; 120 bool m_held;
120 bool m_isPausedForTesting; 121 bool m_isPausedForTesting;
121 122
122 // This indicates timing information relevant to the player has changed 123 // This indicates timing information relevant to the player has changed
123 bool m_outdated; 124 bool m_outdated;
124 }; 125 };
125 126
126 } // namespace 127 } // namespace
127 128
128 #endif 129 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698