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

Unified Diff: cc/blink/web_to_cc_animation_delegate_adapter.cc

Issue 1587073011: Plumb NotifyAnimationAborted from the compositor to blink animation delegate. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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: cc/blink/web_to_cc_animation_delegate_adapter.cc
diff --git a/cc/blink/web_to_cc_animation_delegate_adapter.cc b/cc/blink/web_to_cc_animation_delegate_adapter.cc
index fcec11fd92ea436984dac1144949579e0f6eb0f2..3bdf0d47f8536293931c763450f165ce3fdbf318 100644
--- a/cc/blink/web_to_cc_animation_delegate_adapter.cc
+++ b/cc/blink/web_to_cc_animation_delegate_adapter.cc
@@ -40,4 +40,12 @@ void WebToCCAnimationDelegateAdapter::NotifyAnimationFinished(
#endif
}
+void WebToCCAnimationDelegateAdapter::NotifyAnimationAborted(
+ base::TimeTicks monotonic_time,
+ cc::Animation::TargetProperty target_property,
+ int group) {
+ delegate_->notifyAnimationAborted(
+ (monotonic_time - base::TimeTicks()).InSecondsF(), group);
+}
+
} // namespace cc_blink

Powered by Google App Engine
This is Rietveld 408576698