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

Unified Diff: webkit/renderer/compositor_bindings/web_float_animation_curve_impl.cc

Issue 140253013: Define accelerated steps time function. Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: git cl upload Created 6 years, 10 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
Index: webkit/renderer/compositor_bindings/web_float_animation_curve_impl.cc
diff --git a/webkit/renderer/compositor_bindings/web_float_animation_curve_impl.cc b/webkit/renderer/compositor_bindings/web_float_animation_curve_impl.cc
index fe2ae81d44018e48fcecbc537b1c7f587c42ad02..248d04506109586ec7d5a2e77a593386cf58dd3b 100644
--- a/webkit/renderer/compositor_bindings/web_float_animation_curve_impl.cc
+++ b/webkit/renderer/compositor_bindings/web_float_animation_curve_impl.cc
@@ -34,6 +34,16 @@ void WebFloatAnimationCurveImpl::add(const WebFloatKeyframe& keyframe,
}
void WebFloatAnimationCurveImpl::add(const WebFloatKeyframe& keyframe,
+ int steps,
+ bool stepsAtStart) {
+ curve_->AddKeyframe(cc::FloatKeyframe::Create(
+ keyframe.time,
+ keyframe.value,
+ cc::StepsTimingFunction::Create(steps, stepsAtStart)
+ .PassAs<cc::TimingFunction>()));
+}
+
+void WebFloatAnimationCurveImpl::add(const WebFloatKeyframe& keyframe,
double x1,
double y1,
double x2,

Powered by Google App Engine
This is Rietveld 408576698