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

Unified Diff: cc/trees/layer_tree_host_common_unittest.cc

Issue 2616353003: Clarify property tree id-to-index map names. (Closed)
Patch Set: Sync to head. Created 3 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
« no previous file with comments | « cc/layers/render_surface_impl.cc ('k') | cc/trees/layer_tree_host_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 8a0d4a5efadcac07ce59e5b1923a9342eb120255..d589a3a9ce05cf1e0092375240c0e0d462dfdc95 100644
--- a/cc/trees/layer_tree_host_common_unittest.cc
+++ b/cc/trees/layer_tree_host_common_unittest.cc
@@ -10440,8 +10440,8 @@ TEST_F(LayerTreeHostCommonTest, PropertyTreesRebuildWithOpacityChanges) {
EXPECT_TRUE(property_trees->needs_rebuild);
ExecuteCalculateDrawPropertiesAndSaveUpdateLayerList(root.get());
- EXPECT_NE(property_trees->effect_id_to_index_map.find(child->id()),
- property_trees->effect_id_to_index_map.end());
+ EXPECT_NE(property_trees->layer_id_to_effect_node_index.find(child->id()),
+ property_trees->layer_id_to_effect_node_index.end());
// child already has an effect node. Changing its opacity shouldn't trigger
// a property trees rebuild.
@@ -10450,8 +10450,8 @@ TEST_F(LayerTreeHostCommonTest, PropertyTreesRebuildWithOpacityChanges) {
EXPECT_FALSE(property_trees->needs_rebuild);
ExecuteCalculateDrawPropertiesAndSaveUpdateLayerList(root.get());
- EXPECT_NE(property_trees->effect_id_to_index_map.find(child->id()),
- property_trees->effect_id_to_index_map.end());
+ EXPECT_NE(property_trees->layer_id_to_effect_node_index.find(child->id()),
+ property_trees->layer_id_to_effect_node_index.end());
// Changing the opacity from non-1 value to 1 should trigger a rebuild of
// property trees as the effect node may no longer be needed.
@@ -10460,8 +10460,8 @@ TEST_F(LayerTreeHostCommonTest, PropertyTreesRebuildWithOpacityChanges) {
EXPECT_TRUE(property_trees->needs_rebuild);
ExecuteCalculateDrawPropertiesAndSaveUpdateLayerList(root.get());
- EXPECT_EQ(property_trees->effect_id_to_index_map.find(child->id()),
- property_trees->effect_id_to_index_map.end());
+ EXPECT_EQ(property_trees->layer_id_to_effect_node_index.find(child->id()),
+ property_trees->layer_id_to_effect_node_index.end());
}
TEST_F(LayerTreeHostCommonTest, OpacityAnimationsTrackingTest) {
« no previous file with comments | « cc/layers/render_surface_impl.cc ('k') | cc/trees/layer_tree_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698