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

Unified Diff: cc/trees/layer_tree_impl.cc

Issue 2668873002: cc: Add checker-imaging support to TileManager. (Closed)
Patch Set: Created 3 years, 11 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_impl.cc
diff --git a/cc/trees/layer_tree_impl.cc b/cc/trees/layer_tree_impl.cc
index 481a3703d9e63c09cd252979ccff3c663ad3231f..f2c1267c6633fc5f98407173de51c3d4d2b08849 100644
--- a/cc/trees/layer_tree_impl.cc
+++ b/cc/trees/layer_tree_impl.cc
@@ -318,6 +318,14 @@ void LayerTreeImpl::BuildLayerListForTesting() {
}
}
+void LayerTreeImpl::InvalidateRegionForImages(
+ const std::unordered_set<uint32_t>& images_to_invalidate) {
+ DCHECK(IsSyncTree());
+ for (auto* picture_layer : picture_layers_) {
+ picture_layer->InvalidateRegionForImages(images_to_invalidate);
+ }
+}
+
bool LayerTreeImpl::IsRootLayer(const LayerImpl* layer) const {
return layer_list_.empty() ? false : layer_list_[0] == layer;
}

Powered by Google App Engine
This is Rietveld 408576698