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

Unified Diff: trunk/src/cc/trees/layer_tree_host_unittest.cc

Issue 141833002: Revert 245445 "Unifies LayerTreeHost::SetNeedsUpdateLayers and S..." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 6 years, 11 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: trunk/src/cc/trees/layer_tree_host_unittest.cc
===================================================================
--- trunk/src/cc/trees/layer_tree_host_unittest.cc (revision 245527)
+++ trunk/src/cc/trees/layer_tree_host_unittest.cc (working copy)
@@ -4691,6 +4691,17 @@
EXPECT_EQ(0, set_needs_redraw_count);
}
+ {
+ scoped_ptr<SimpleSwapPromiseMonitor> swap_promise_monitor(
+ new SimpleSwapPromiseMonitor(layer_tree_host(),
+ NULL,
+ &set_needs_commit_count,
+ &set_needs_redraw_count));
+ layer_tree_host()->SetNeedsAnimate();
+ EXPECT_EQ(3, set_needs_commit_count);
+ EXPECT_EQ(0, set_needs_redraw_count);
+ }
+
EndTest();
}
« no previous file with comments | « trunk/src/cc/trees/layer_tree_host_perftest.cc ('k') | trunk/src/cc/trees/layer_tree_host_unittest_animation.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698