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

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

Issue 23874019: Web Animations CSS: Start running animations on the compositor (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase and rename hasActiveAnimationOnCompositor to hasActiveAnimationsOnCompositor 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 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 bool serviceAnimations(); 64 bool serviceAnimations();
65 65
66 // Creates a player attached to this timeline, but without a start time. 66 // Creates a player attached to this timeline, but without a start time.
67 Player* createPlayer(TimedItem*); 67 Player* createPlayer(TimedItem*);
68 Player* play(TimedItem*); 68 Player* play(TimedItem*);
69 69
70 // Called from setReadyState() in Document.cpp to set m_zeroTime to 70 // Called from setReadyState() in Document.cpp to set m_zeroTime to
71 // performance.timing.domInteractive 71 // performance.timing.domInteractive
72 void setZeroTime(double); 72 void setZeroTime(double);
73 bool hasStarted() const { return !isNull(m_zeroTime); } 73 bool hasStarted() const { return !isNull(m_zeroTime); }
74 double zeroTime() const { return m_zeroTime; }
74 double currentTime(); 75 double currentTime();
75 void pauseAnimationsForTesting(double); 76 void pauseAnimationsForTesting(double);
76 size_t numberOfActiveAnimationsForTesting() const; 77 size_t numberOfActiveAnimationsForTesting() const;
77 78
78 void addEventToDispatch(EventTarget* target, PassRefPtr<Event> event) 79 void addEventToDispatch(EventTarget* target, PassRefPtr<Event> event)
79 { 80 {
80 m_events.append(EventToDispatch(target, event)); 81 m_events.append(EventToDispatch(target, event));
81 } 82 }
82 83
83 void dispatchEvents(); 84 void dispatchEvents();
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
127 Timer<DocumentTimelineTiming> m_timer; 128 Timer<DocumentTimelineTiming> m_timer;
128 129
129 }; 130 };
130 131
131 friend class AnimationDocumentTimelineTest; 132 friend class AnimationDocumentTimelineTest;
132 }; 133 };
133 134
134 } // namespace 135 } // namespace
135 136
136 #endif 137 #endif
OLDNEW
« no previous file with comments | « Source/core/animation/CompositorAnimationsTest.cpp ('k') | Source/core/animation/DocumentTimeline.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698