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

Unified Diff: cc/layers/layer.cc

Issue 1534813004: Run smooth scroll animations on the compositor when possible (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: nit Created 5 years 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/layers/layer.cc
diff --git a/cc/layers/layer.cc b/cc/layers/layer.cc
index a3a79b49cbb27b03ebca999a7bf5fe0dee5fd569..2490e64b9cb5b926eaba8f66635aad9f105dfe9e 100644
--- a/cc/layers/layer.cc
+++ b/cc/layers/layer.cc
@@ -1875,6 +1875,12 @@ void Layer::RemoveAnimation(int animation_id,
SetNeedsCommit();
}
+void Layer::AbortAnimation(int animation_id) {
+ DCHECK(layer_animation_controller_);
+ layer_animation_controller_->AbortAnimation(animation_id);
+ SetNeedsCommit();
+}
+
void Layer::SetLayerAnimationControllerForTest(
scoped_refptr<LayerAnimationController> controller) {
DCHECK(layer_animation_controller_);
« no previous file with comments | « cc/layers/layer.h ('k') | third_party/WebKit/LayoutTests/fast/scroll-behavior/smooth-scroll/keyboard-scroll.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698