Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(6446)

Unified Diff: cc/trees/layer_tree_host_perftest.cc

Issue 306023006: Revert of cc: Make heavy layer tree test more realistic (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698