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

Unified Diff: cc/trees/property_tree_unittest.cc

Issue 2035863003: cc: Add mask and replica layer ids to the effect tree (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address review comments Created 4 years, 6 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/property_tree_builder.cc ('k') | cc/trees/tree_synchronizer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/trees/property_tree_unittest.cc
diff --git a/cc/trees/property_tree_unittest.cc b/cc/trees/property_tree_unittest.cc
index 23b34f29f1936c67a2ee20c410d4f5fe5d6f494a..bd773438e8ada694ab8f14b6a858efa4a9cce1af 100644
--- a/cc/trees/property_tree_unittest.cc
+++ b/cc/trees/property_tree_unittest.cc
@@ -187,6 +187,9 @@ TEST(PropertyTreeSerializationTest, EffectNodeDataSerialization) {
original.has_render_surface = false;
original.transform_id = 2;
original.clip_id = 3;
+ original.mask_layer_id = 6;
+ original.replica_layer_id = 10;
+ original.replica_mask_layer_id = 9;
proto::TreeNode proto;
original.ToProtobuf(&proto);
@@ -220,13 +223,19 @@ TEST(PropertyTreeSerializationTest, EffectTreeSerialization) {
second.owner_id = 6;
second.data.transform_id = 4;
second.data.opacity = true;
+ second.data.mask_layer_id = 32;
EffectNode third;
third.owner_id = 7;
third.data.clip_id = 3;
+ third.data.replica_layer_id = 44;
+ third.data.replica_mask_layer_id = 45;
third.data.has_render_surface = false;
original.Insert(second, 0);
original.Insert(third, 1);
+ original.AddMaskOrReplicaLayerId(32);
+ original.AddMaskOrReplicaLayerId(44);
+ original.AddMaskOrReplicaLayerId(45);
original.set_needs_update(true);
proto::PropertyTree proto;
« no previous file with comments | « cc/trees/property_tree_builder.cc ('k') | cc/trees/tree_synchronizer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698