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

Unified Diff: cc/trees/layer_tree_host_impl_unittest.cc

Issue 2339583002: cc: Move OnScrollOffsetAnimated to scroll tree (Closed)
Patch Set: Created 4 years, 3 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_impl.cc ('k') | cc/trees/layer_tree_host_unittest_animation.cc » ('j') | 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 bcb68a1823e6c8912c8f7ee5aac5d8aacd3cec92..e062725dee844f9a6f94c7dfee2581b936789157 100644
--- a/cc/trees/layer_tree_host_impl_unittest.cc
+++ b/cc/trees/layer_tree_host_impl_unittest.cc
@@ -1317,6 +1317,7 @@ TEST_F(LayerTreeHostImplTest, AnimationSchedulingPendingTree) {
AddAnimatedTransformToElementWithPlayer(child->element_id(), timeline(), 10.0,
3, 0);
+ host_impl_->pending_tree()->BuildPropertyTreesForTesting();
EXPECT_FALSE(did_request_next_frame_);
EXPECT_FALSE(did_request_redraw_);
@@ -1367,7 +1368,6 @@ TEST_F(LayerTreeHostImplTest, AnimationSchedulingActiveTree) {
child->SetBounds(gfx::Size(10, 10));
child->draw_properties().visible_layer_rect = gfx::Rect(10, 10);
child->SetDrawsContent(true);
- host_impl_->active_tree()->BuildPropertyTreesForTesting();
host_impl_->active_tree()->SetElementIdsForTesting();
// Add a translate from 6,7 to 8,9.
@@ -1377,6 +1377,7 @@ TEST_F(LayerTreeHostImplTest, AnimationSchedulingActiveTree) {
end.AppendTranslate(8.f, 9.f, 0.f);
AddAnimatedTransformToElementWithPlayer(child->element_id(), timeline(), 4.0,
start, end);
+ host_impl_->active_tree()->BuildPropertyTreesForTesting();
base::TimeTicks now = base::TimeTicks::Now();
host_impl_->WillBeginImplFrame(
@@ -1479,7 +1480,6 @@ TEST_F(LayerTreeHostImplTest, AnimationSchedulingOnLayerDestruction) {
child->draw_properties().visible_layer_rect = gfx::Rect(10, 10);
child->SetDrawsContent(true);
- host_impl_->active_tree()->BuildPropertyTreesForTesting();
host_impl_->active_tree()->SetElementIdsForTesting();
// Add a translate animation.
@@ -1489,6 +1489,7 @@ TEST_F(LayerTreeHostImplTest, AnimationSchedulingOnLayerDestruction) {
end.AppendTranslate(8.f, 9.f, 0.f);
AddAnimatedTransformToElementWithPlayer(child->element_id(), timeline(), 4.0,
start, end);
+ host_impl_->active_tree()->BuildPropertyTreesForTesting();
base::TimeTicks now = base::TimeTicks::Now();
host_impl_->WillBeginImplFrame(
@@ -1556,7 +1557,6 @@ TEST_F(LayerTreeHostImplTest, AnimationMarksLayerNotReady) {
child->SetBounds(gfx::Size(10, 10));
child->draw_properties().visible_layer_rect = gfx::Rect(10, 10);
child->SetDrawsContent(true);
- host_impl_->active_tree()->BuildPropertyTreesForTesting();
host_impl_->active_tree()->SetElementIdsForTesting();
@@ -1569,6 +1569,7 @@ TEST_F(LayerTreeHostImplTest, AnimationMarksLayerNotReady) {
end.AppendTranslate(8.f, 9.f, 0.f);
int animation_id = AddAnimatedTransformToElementWithPlayer(
child->element_id(), timeline(), 4.0, start, end);
+ host_impl_->active_tree()->BuildPropertyTreesForTesting();
base::TimeTicks now = base::TimeTicks::Now();
host_impl_->WillBeginImplFrame(
« no previous file with comments | « cc/trees/layer_tree_host_impl.cc ('k') | cc/trees/layer_tree_host_unittest_animation.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698