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

Unified Diff: content/renderer/compositor_bindings/web_animation_impl.cc

Issue 423373003: CC: Support fractional iteration count on compositor animations (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase and review changes Created 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/renderer/compositor_bindings/web_animation_impl.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/compositor_bindings/web_animation_impl.cc
diff --git a/content/renderer/compositor_bindings/web_animation_impl.cc b/content/renderer/compositor_bindings/web_animation_impl.cc
index 67eedd1401be43e95e7498470d416dac87d1c541..9e9092b6cb27c1b7f874e30492eecc5bf28a56e7 100644
--- a/content/renderer/compositor_bindings/web_animation_impl.cc
+++ b/content/renderer/compositor_bindings/web_animation_impl.cc
@@ -79,6 +79,15 @@ WebCompositorAnimationImpl::targetProperty() const {
animation_->target_property());
}
+#if WEB_ANIMATION_SUPPORTS_FRACTIONAL_ITERATIONS
+double WebCompositorAnimationImpl::iterations() const {
+ return animation_->iterations();
+}
+
+void WebCompositorAnimationImpl::setIterations(double n) {
+ animation_->set_iterations(n);
+}
+#else
int WebCompositorAnimationImpl::iterations() const {
return animation_->iterations();
}
@@ -86,6 +95,7 @@ int WebCompositorAnimationImpl::iterations() const {
void WebCompositorAnimationImpl::setIterations(int n) {
animation_->set_iterations(n);
}
+#endif
double WebCompositorAnimationImpl::startTime() const {
return (animation_->start_time() - base::TimeTicks()).InSecondsF();
« no previous file with comments | « content/renderer/compositor_bindings/web_animation_impl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698