Index: cc/test/layer_tree_test.cc |
diff --git a/cc/test/layer_tree_test.cc b/cc/test/layer_tree_test.cc |
index 2666c8c534a9a305300ba7017789a32b5ae8b34e..d1d196267ffc8c702da95a3fb6ec34401246d297 100644 |
--- a/cc/test/layer_tree_test.cc |
+++ b/cc/test/layer_tree_test.cc |
@@ -53,6 +53,10 @@ |
raster_worker_pool, resource_pool, staging_resource_pool); |
} |
+base::TimeDelta TestHooks::LowFrequencyAnimationInterval() const { |
+ return base::TimeDelta::FromMilliseconds(16); |
+} |
+ |
// Adapts ThreadProxy for test. Injects test hooks for testing. |
class ThreadProxyForTest : public ThreadProxy { |
public: |
@@ -263,6 +267,10 @@ |
} |
} |
test_hooks_->UpdateAnimationState(this, has_unfinished_animation); |
+ } |
+ |
+ base::TimeDelta LowFrequencyAnimationInterval() const override { |
+ return test_hooks_->LowFrequencyAnimationInterval(); |
} |
private: |
@@ -667,7 +675,6 @@ |
// Spend less time waiting for BeginFrame because the output is |
// mocked out. |
settings_.refresh_rate = 200.0; |
- settings_.background_animation_rate = 200.0; |
settings_.impl_side_painting = impl_side_painting; |
InitializeSettings(&settings_); |