Index: cc/trees/layer_tree_host_perftest.cc |
diff --git a/cc/trees/layer_tree_host_perftest.cc b/cc/trees/layer_tree_host_perftest.cc |
index cd1ba44422fd4fccd353865334dd84ee938cc535..49ef6e1cd1df591e79632b4d5ad541405f763e57 100644 |
--- a/cc/trees/layer_tree_host_perftest.cc |
+++ b/cc/trees/layer_tree_host_perftest.cc |
@@ -228,6 +228,8 @@ class ScrollingLayerTreePerfTest : public LayerTreeHostPerfTestJsonReader { |
} |
virtual void Layout() OVERRIDE { |
+ if (TestEnded()) |
+ return; |
static const gfx::Vector2d delta = gfx::Vector2d(0, 10); |
scrollable_->SetScrollOffset(scrollable_->scroll_offset() + delta); |
} |