summaryrefslogtreecommitdiffstats
path: root/cc/animation
diff options
context:
space:
mode:
Diffstat (limited to 'cc/animation')
-rw-r--r--cc/animation/animation_registrar.cc3
-rw-r--r--cc/animation/animation_registrar.h8
2 files changed, 10 insertions, 1 deletions
diff --git a/cc/animation/animation_registrar.cc b/cc/animation/animation_registrar.cc
index 05f522c..7af5fea 100644
--- a/cc/animation/animation_registrar.cc
+++ b/cc/animation/animation_registrar.cc
@@ -8,7 +8,8 @@
namespace cc {
-AnimationRegistrar::AnimationRegistrar() {}
+AnimationRegistrar::AnimationRegistrar() : supports_scroll_animations_(false) {
+}
AnimationRegistrar::~AnimationRegistrar() {
AnimationControllerMap copy = all_animation_controllers_;
diff --git a/cc/animation/animation_registrar.h b/cc/animation/animation_registrar.h
index 579b11f..36c45c7 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);
};