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

Unified Diff: cc/animation/animation_registrar.h

Issue 368883003: cc: Disallow scroll offset animations when impl-scrolling isn't supported (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 6 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
« no previous file with comments | « no previous file | cc/animation/animation_registrar.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/animation/animation_registrar.h
diff --git a/cc/animation/animation_registrar.h b/cc/animation/animation_registrar.h
index 579b11f8202da6e4f44c011c4d2c0cc32154932e..36c45c789049afec27223731ef745b8c962ba23a 100644
--- a/cc/animation/animation_registrar.h
+++ b/cc/animation/animation_registrar.h
@@ -51,12 +51,20 @@ class CC_EXPORT AnimationRegistrar {
return all_animation_controllers_;
}
+ void set_supports_scroll_animations(bool supports_scroll_animations) {
+ supports_scroll_animations_ = supports_scroll_animations;
+ }
+
+ bool supports_scroll_animations() { return supports_scroll_animations_; }
+
private:
AnimationRegistrar();
AnimationControllerMap active_animation_controllers_;
AnimationControllerMap all_animation_controllers_;
+ bool supports_scroll_animations_;
+
DISALLOW_COPY_AND_ASSIGN(AnimationRegistrar);
};
« no previous file with comments | « no previous file | cc/animation/animation_registrar.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698