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

Unified Diff: cc/trees/layer_tree_host_impl_unittest.cc

Issue 1840883002: cc : Calculate jitter without using layer hierarchy (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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 | « cc/trees/layer_tree_host_common.cc ('k') | 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_impl_unittest.cc
diff --git a/cc/trees/layer_tree_host_impl_unittest.cc b/cc/trees/layer_tree_host_impl_unittest.cc
index d81c3a8b4b790141b88935188548c5eff9792080..04d65929d60cd6d002d9fcd78e59467c4bc13bda 100644
--- a/cc/trees/layer_tree_host_impl_unittest.cc
+++ b/cc/trees/layer_tree_host_impl_unittest.cc
@@ -10374,8 +10374,7 @@ TEST_F(LayerTreeHostImplTest, JitterTest) {
pending_tree->set_needs_update_draw_properties();
pending_tree->UpdateDrawProperties(false);
- float jitter =
- LayerTreeHostCommon::CalculateFrameJitter(last_scrolled_layer);
+ float jitter = LayerTreeHostCommon::CalculateLayerJitter(content_layer);
// There should not be any jitter measured till we hit the fixed point hits
// threshold.
float expected_jitter =
« no previous file with comments | « cc/trees/layer_tree_host_common.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698