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

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

Issue 179293004: Drive SVG Animations via requestAnimationFrame (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Use AnimationClock. 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
« no previous file with comments | « Source/core/animation/AnimationClock.h ('k') | Source/core/page/PageAnimator.cpp » ('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 * 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 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 double m_zeroTime; 95 double m_zeroTime;
96 Document* m_document; 96 Document* m_document;
97 // Players which will be updated on the next frame 97 // Players which will be updated on the next frame
98 // i.e. current, in effect, or had timing changed 98 // i.e. current, in effect, or had timing changed
99 HashSet<RefPtr<Player> > m_playersNeedingUpdate; 99 HashSet<RefPtr<Player> > m_playersNeedingUpdate;
100 HashSet<Player*> m_players; 100 HashSet<Player*> m_players;
101 bool m_hasOutdatedPlayer; 101 bool m_hasOutdatedPlayer;
102 102
103 void wake(); 103 void wake();
104 104
105 friend class SMILTimeContainer;
105 static const double s_minimumDelay; 106 static const double s_minimumDelay;
106 107
107 OwnPtr<PlatformTiming> m_timing; 108 OwnPtr<PlatformTiming> m_timing;
108 109
109 class DocumentTimelineTiming FINAL : public PlatformTiming { 110 class DocumentTimelineTiming FINAL : public PlatformTiming {
110 public: 111 public:
111 DocumentTimelineTiming(DocumentTimeline* documentTimeline) 112 DocumentTimelineTiming(DocumentTimeline* documentTimeline)
112 : m_timeline(documentTimeline) 113 : m_timeline(documentTimeline)
113 , m_timer(this, &DocumentTimelineTiming::timerFired) 114 , m_timer(this, &DocumentTimelineTiming::timerFired)
114 { 115 {
(...skipping 11 matching lines...) Expand all
126 Timer<DocumentTimelineTiming> m_timer; 127 Timer<DocumentTimelineTiming> m_timer;
127 128
128 }; 129 };
129 130
130 friend class AnimationDocumentTimelineTest; 131 friend class AnimationDocumentTimelineTest;
131 }; 132 };
132 133
133 } // namespace 134 } // namespace
134 135
135 #endif 136 #endif
OLDNEW
« no previous file with comments | « Source/core/animation/AnimationClock.h ('k') | Source/core/page/PageAnimator.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698