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

Unified Diff: cc/trees/layer_tree_host_impl_unittest.cc

Issue 1991523002: cc : Track ids for which active opacity always wins on property trees (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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_impl_unittest.cc
diff --git a/cc/trees/layer_tree_host_impl_unittest.cc b/cc/trees/layer_tree_host_impl_unittest.cc
index 264af100de4932b8c495fbeb8d4f0f65a64cbe2f..46478087be464bb5c34dd8f69c71cfbcb367b66c 100644
--- a/cc/trees/layer_tree_host_impl_unittest.cc
+++ b/cc/trees/layer_tree_host_impl_unittest.cc
@@ -2887,9 +2887,15 @@ class LayerTreeHostImplTestScrollbarOpacity : public LayerTreeHostImplTest {
EffectNode* pending_tree_node =
host_impl_->pending_tree()->property_trees()->effect_tree.Node(
scrollbar_layer->effect_tree_index());
+ LayerImpl* pending_scrollbar_layer =
+ host_impl_->pending_tree()->LayerById(400);
+ host_impl_->pending_tree()
+ ->property_trees()
+ ->always_use_active_tree_opacity_effect_ids.push_back(400);
EXPECT_FLOAT_EQ(1.f, active_tree_node->data.opacity);
EXPECT_FLOAT_EQ(1.f, scrollbar_layer->opacity());
EXPECT_FLOAT_EQ(0.f, pending_tree_node->data.opacity);
+ pending_scrollbar_layer->SetNeedsPushProperties();
ajuma 2016/05/18 13:53:48 Is this line needed?
jaydasika 2016/05/19 00:27:09 I added this when I realized ScrollbarlayerImplBas
host_impl_->ActivateSyncTree();
active_tree_node =
host_impl_->active_tree()->property_trees()->effect_tree.Node(

Powered by Google App Engine
This is Rietveld 408576698