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

Unified Diff: cc/trees/layer_tree_host_unittest_serialization.cc

Issue 1808373002: cc : Make tree synchronization independent of layer tree hierarchy (2) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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_unittest_serialization.cc
diff --git a/cc/trees/layer_tree_host_unittest_serialization.cc b/cc/trees/layer_tree_host_unittest_serialization.cc
index db166edeaff0560968095ad7cf13f3021d04cf26..88615839b98236c508a9ccf29bca7e5a2e4cdc07 100644
--- a/cc/trees/layer_tree_host_unittest_serialization.cc
+++ b/cc/trees/layer_tree_host_unittest_serialization.cc
@@ -49,6 +49,9 @@ class LayerTreeHostSerializationTest : public testing::Test {
void VerifySerializationAndDeserialization() {
proto::LayerTreeHost proto;
+
+ std::unordered_set<Layer*> layers_that_should_push_properties_src_ =
ajuma 2016/03/21 13:41:20 Nit: local variable name shouldn't end with an und
jaydasika 2016/03/21 17:32:03 Done.
+ layer_tree_host_src_->LayersThatShouldPushProperties();
layer_tree_host_src_->ToProtobufForCommit(&proto);
layer_tree_host_dst_->FromProtobufForCommit(proto);
@@ -102,6 +105,10 @@ class LayerTreeHostSerializationTest : public testing::Test {
EXPECT_EQ(layer_tree_host_src_->id_, layer_tree_host_dst_->id_);
EXPECT_EQ(layer_tree_host_src_->next_commit_forces_redraw_,
layer_tree_host_dst_->next_commit_forces_redraw_);
+ for (auto layer : layers_that_should_push_properties_src_) {
+ EXPECT_TRUE(layer_tree_host_dst_->LayerNeedsPushPropertiesForTesting(
+ layer_tree_host_dst_->LayerById(layer->id())));
+ }
if (layer_tree_host_src_->hud_layer_) {
EXPECT_EQ(layer_tree_host_src_->hud_layer_->id(),

Powered by Google App Engine
This is Rietveld 408576698