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

Unified Diff: cc/layers/layer_proto_converter.cc

Issue 2159513003: Setup LayerTree class, refactor 2 functions from LayerTreeHost to it. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Layer GetLayerTree now directly uses LayerTree pointer. Created 4 years, 5 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/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

Powered by Google App Engine
This is Rietveld 408576698