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

Side by Side Diff: third_party/WebKit/Source/core/svg/animation/SMILTimeContainer.h

Issue 2257803002: Refactor SMILTimeContainer can-schedule-frame predicate (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@smilcontainer-timeline-cleanup
Patch Set: Rebase Created 4 years, 4 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/svg/animation/SMILTimeContainer.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) 2008 Apple Inc. All rights reserved. 2 * Copyright (C) 2008 Apple 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 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 bool isTimelineRunning() const; 98 bool isTimelineRunning() const;
99 void synchronizeToDocumentTimeline(); 99 void synchronizeToDocumentTimeline();
100 void scheduleAnimationFrame(double delayTime); 100 void scheduleAnimationFrame(double delayTime);
101 void cancelAnimationFrame(); 101 void cancelAnimationFrame();
102 void wakeupTimerFired(TimerBase*); 102 void wakeupTimerFired(TimerBase*);
103 void scheduleAnimationPolicyTimer(); 103 void scheduleAnimationPolicyTimer();
104 void cancelAnimationPolicyTimer(); 104 void cancelAnimationPolicyTimer();
105 void animationPolicyTimerFired(TimerBase*); 105 void animationPolicyTimerFired(TimerBase*);
106 ImageAnimationPolicy animationPolicy() const; 106 ImageAnimationPolicy animationPolicy() const;
107 bool handleAnimationPolicy(AnimationPolicyOnceAction); 107 bool handleAnimationPolicy(AnimationPolicyOnceAction);
108 bool canScheduleFrame(SMILTime earliestFireTime) const;
108 void updateAnimationsAndScheduleFrameIfNeeded(SMILTime elapsed, bool seekToT ime = false); 109 void updateAnimationsAndScheduleFrameIfNeeded(SMILTime elapsed, bool seekToT ime = false);
109 SMILTime updateAnimations(SMILTime elapsed, bool seekToTime = false); 110 SMILTime updateAnimations(SMILTime elapsed, bool seekToTime = false);
110 void serviceOnNextFrame(); 111 void serviceOnNextFrame();
111 void scheduleWakeUp(double delayTime, FrameSchedulingState); 112 void scheduleWakeUp(double delayTime, FrameSchedulingState);
112 bool hasPendingSynchronization() const; 113 bool hasPendingSynchronization() const;
113 114
114 void updateDocumentOrderIndexes(); 115 void updateDocumentOrderIndexes();
115 116
116 SVGSVGElement& ownerSVGElement() const; 117 SVGSVGElement& ownerSVGElement() const;
117 Document& document() const; 118 Document& document() const;
(...skipping 20 matching lines...) Expand all
138 139
139 Member<SVGSVGElement> m_ownerSVGElement; 140 Member<SVGSVGElement> m_ownerSVGElement;
140 141
141 #if ENABLE(ASSERT) 142 #if ENABLE(ASSERT)
142 bool m_preventScheduledAnimationsChanges; 143 bool m_preventScheduledAnimationsChanges;
143 #endif 144 #endif
144 }; 145 };
145 } // namespace blink 146 } // namespace blink
146 147
147 #endif // SMILTimeContainer_h 148 #endif // SMILTimeContainer_h
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/svg/animation/SMILTimeContainer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698