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 5a938af9c3181182658467e60a8eb47332376406..70b2a645236b977abcdce3f542c90ebf4015d9ca 100644 |
--- a/cc/trees/layer_tree_host_perftest.cc |
+++ b/cc/trees/layer_tree_host_perftest.cc |
@@ -38,7 +38,6 @@ |
base::TimeDelta::FromMilliseconds(kTimeLimitMillis), |
kTimeCheckInterval), |
commit_timer_(0, base::TimeDelta(), 1), |
- animation_frame_(0), |
full_damage_each_frame_(false), |
animation_driven_drawing_(false), |
measure_commit_cost_(false) { |
@@ -57,9 +56,7 @@ |
virtual void Animate(base::TimeTicks monotonic_time) OVERRIDE { |
if (animation_driven_drawing_ && !TestEnded()) { |
layer_tree_host()->SetNeedsAnimate(); |
- // Simulate a transform animation on the root layer. |
- Layer* layer = layer_tree_host()->root_layer(); |
- layer->SetPosition(gfx::PointF(0, animation_frame_++ % 2)); |
+ layer_tree_host()->SetNextCommitForcesRedraw(); |
} |
} |
@@ -107,7 +104,6 @@ |
protected: |
LapTimer draw_timer_; |
LapTimer commit_timer_; |
- int animation_frame_; |
std::string test_name_; |
FakeContentLayerClient fake_content_layer_client_; |