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

Unified Diff: webkit/renderer/compositor_bindings/web_filter_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_filter_animation_curve_impl.cc
diff --git a/webkit/renderer/compositor_bindings/web_filter_animation_curve_impl.cc b/webkit/renderer/compositor_bindings/web_filter_animation_curve_impl.cc
index 6663267011a4e32d77fce8ced474e138176ac7da..75fd2d91328472c3f38998c9475e29e5dd0313c5 100644
--- a/webkit/renderer/compositor_bindings/web_filter_animation_curve_impl.cc
+++ b/webkit/renderer/compositor_bindings/web_filter_animation_curve_impl.cc
@@ -34,6 +34,19 @@ void WebFilterAnimationCurveImpl::add(const WebFilterKeyframe& keyframe,
}
void WebFilterAnimationCurveImpl::add(const WebFilterKeyframe& keyframe,
+ int steps,
+ bool stepsAtStart) {
+ const cc::FilterOperations& filter_operations =
+ static_cast<const webkit::WebFilterOperationsImpl&>(keyframe.value())
+ .AsFilterOperations();
+ curve_->AddKeyframe(cc::FilterKeyframe::Create(
+ keyframe.time(),
+ filter_operations,
+ cc::StepsTimingFunction::Create(steps, stepsAtStart)
+ .PassAs<cc::TimingFunction>()));
+}
+
+void WebFilterAnimationCurveImpl::add(const WebFilterKeyframe& keyframe,
double x1,
double y1,
double x2,

Powered by Google App Engine
This is Rietveld 408576698