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

Unified Diff: cc/trees/layer_tree_host_perftest.cc

Issue 178123003: Make it possible to cancel commits following an animation (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix cc_perftests failure. Make unit test limits stricter. Created 6 years, 10 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
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 57cff63117e5e1d7e96f152e8712fc3334c139ea..ce69e132163bd6c061f66e1dc251fdf1d6248cd3 100644
--- a/cc/trees/layer_tree_host_perftest.cc
+++ b/cc/trees/layer_tree_host_perftest.cc
@@ -54,8 +54,10 @@ class LayerTreeHostPerfTest : public LayerTreeTest {
}
virtual void Animate(base::TimeTicks monotonic_time) OVERRIDE {
- if (animation_driven_drawing_ && !TestEnded())
+ if (animation_driven_drawing_ && !TestEnded()) {
layer_tree_host()->SetNeedsAnimate();
+ layer_tree_host()->SetNextCommitForcesRedraw();
+ }
}
virtual void BeginCommitOnThread(LayerTreeHostImpl* host_impl) OVERRIDE {

Powered by Google App Engine
This is Rietveld 408576698