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

Unified Diff: cc/trees/layer_tree_host_common_unittest.cc

Issue 2253233003: cc : Add OnOpacityAnimated to effect tree (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 years, 4 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_common_unittest.cc
diff --git a/cc/trees/layer_tree_host_common_unittest.cc b/cc/trees/layer_tree_host_common_unittest.cc
index 37711b2f8f846ff220dde68ee7abeec62d30b97d..427490c0482af180db53fa66774bd50801034ed3 100644
--- a/cc/trees/layer_tree_host_common_unittest.cc
+++ b/cc/trees/layer_tree_host_common_unittest.cc
@@ -1490,8 +1490,10 @@ TEST_F(LayerTreeHostCommonTest,
EXPECT_TRUE(node->is_drawn);
// When root is transparent, the layer should not be drawn.
- root->OnOpacityAnimated(0.f);
- render_surface1->OnOpacityAnimated(1.f);
+ effect_tree.OnOpacityAnimated(0.f, root->effect_tree_index(),
+ root->layer_tree_impl());
+ effect_tree.OnOpacityAnimated(1.f, render_surface1->effect_tree_index(),
+ root->layer_tree_impl());
render_surface1->set_visible_layer_rect(gfx::Rect());
{
LayerImplList render_surface_layer_list;

Powered by Google App Engine
This is Rietveld 408576698