Index: cc/layer.cc |
diff --git a/cc/layer.cc b/cc/layer.cc |
index e300fe08c7278d2a6c5b6ec7f2c31c1e245f6a0e..2a4738f4ff8081313b700d9eb593880f0e148f07 100644 |
--- a/cc/layer.cc |
+++ b/cc/layer.cc |
@@ -9,7 +9,6 @@ |
#include "cc/layer_animation_controller.h" |
#include "cc/layer_impl.h" |
#include "cc/layer_tree_host.h" |
-#include "cc/settings.h" |
#include "third_party/skia/include/core/SkImageFilter.h" |
#include "ui/gfx/rect_conversions.h" |
#include <public/WebAnimationDelegate.h> |
@@ -768,7 +767,7 @@ bool Layer::addAnimation(scoped_ptr <ActiveAnimation> animation) |
if (!m_layerTreeHost) |
return false; |
- if (!Settings::acceleratedAnimationEnabled()) |
+ if (!m_layerTreeHost->settings().acceleratedAnimationEnabled) |
return false; |
m_layerAnimationController->addAnimation(animation.Pass()); |