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

Unified Diff: cc/layers/picture_layer.cc

Issue 2340143002: cc: Rename LayerTreeHost to LayerTreeHostInProcess. (Closed)
Patch Set: comment fix Created 4 years, 3 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/picture_image_layer.cc ('k') | cc/layers/picture_layer_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/layers/picture_layer.cc
diff --git a/cc/layers/picture_layer.cc b/cc/layers/picture_layer.cc
index 6f4f7ac05a409cc0472a698a8a2098686517cd46..f9976273c76e0ec53471d164ff18a5ab913e39f2 100644
--- a/cc/layers/picture_layer.cc
+++ b/cc/layers/picture_layer.cc
@@ -225,7 +225,7 @@ void PictureLayer::LayerSpecificPropertiesToProto(
if (!picture)
continue;
- layer_tree_host()->engine_picture_cache()->MarkUsed(picture.get());
+ GetLayerTree()->engine_picture_cache()->MarkUsed(picture.get());
}
}
@@ -254,7 +254,7 @@ void PictureLayer::FromLayerSpecificPropertiesProto(
ProtoToRect(picture.recorded_viewport());
ClientPictureCache* client_picture_cache =
- layer_tree_host()->client_picture_cache();
+ GetLayerTree()->client_picture_cache();
DCHECK(client_picture_cache);
// This might not exist if the |input_.display_list| of the serialized
// RecordingSource was null, which can happen if |Clear()| is
@@ -272,7 +272,7 @@ void PictureLayer::FromLayerSpecificPropertiesProto(
// Inform picture cache about which SkPictures are now in use.
for (uint32_t engine_picture_id : used_engine_picture_ids)
- layer_tree_host()->client_picture_cache()->MarkUsed(engine_picture_id);
+ GetLayerTree()->client_picture_cache()->MarkUsed(engine_picture_id);
Region new_invalidation = RegionFromProto(picture.invalidation());
last_updated_invalidation_.Swap(&new_invalidation);
« no previous file with comments | « cc/layers/picture_image_layer.cc ('k') | cc/layers/picture_layer_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698