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

Unified Diff: content/child/blink_platform_impl.cc

Issue 1251323002: Plumb smooth scrolling in Chromium compositor (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 5 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: content/child/blink_platform_impl.cc
diff --git a/content/child/blink_platform_impl.cc b/content/child/blink_platform_impl.cc
index d743fffac4636fee02a2845e2dc1a113205cf13d..ad6eef3f71c260eb8ad489fbb065968837776ee6 100644
--- a/content/child/blink_platform_impl.cc
+++ b/content/child/blink_platform_impl.cc
@@ -1145,6 +1145,20 @@ blink::WebGestureCurve* BlinkPlatformImpl::createFlingAnimationCurve(
IsMainThread()).release();
}
+blink::WebGestureCurve* BlinkPlatformImpl::createSmoothScrollAnimationCurve(
+ blink::WebGestureDevice device_source,
+ float start_x,
+ float start_y,
+ float dx,
+ float dy,
+ int64 duration) {
+ base::TimeDelta duration_time_delta =
+ base::TimeDelta::FromMilliseconds(duration);
+ return ui::WebGestureCurveImpl::CreateFromSmoothScrollingCurve(
+ start_x, start_y, dx, dy, duration_time_delta, IsMainThread())
+ .release();
+}
+
void BlinkPlatformImpl::didStartWorkerRunLoop() {
WorkerTaskRunner* worker_task_runner = WorkerTaskRunner::Instance();
worker_task_runner->OnWorkerRunLoopStarted();

Powered by Google App Engine
This is Rietveld 408576698