Index: cc/layers/layer_proto_converter.cc |
diff --git a/cc/layers/layer_proto_converter.cc b/cc/layers/layer_proto_converter.cc |
index ff1632cc5649fcd582246d520b31301d01200b09..281b5fb6116ad61b04257be43b014a2e626be13a 100644 |
--- a/cc/layers/layer_proto_converter.cc |
+++ b/cc/layers/layer_proto_converter.cc |
@@ -57,9 +57,9 @@ void LayerProtoConverter::SerializeLayerProperties( |
LayerTreeHost* host, |
proto::LayerUpdate* layer_update) { |
TRACE_EVENT0("cc.remote", "LayerProtoConverter::SerializeLayerProperties"); |
- for (auto* layer : host->LayersThatShouldPushProperties()) |
+ for (auto* layer : host->GetLayerTree()->LayersThatShouldPushProperties()) |
layer->ToLayerPropertiesProto(layer_update); |
- host->LayersThatShouldPushProperties().clear(); |
+ host->GetLayerTree()->LayersThatShouldPushProperties().clear(); |
} |
// static |