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

Unified Diff: cc/trees/layer_tree_host_impl.h

Issue 23478004: UI resource are evicted when LTH is set to not visible. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years, 4 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_impl.h
diff --git a/cc/trees/layer_tree_host_impl.h b/cc/trees/layer_tree_host_impl.h
index 31870ac48bd1e5e290fc620bbe1cf495903ec875..9cb7bd5432b2b3f9af74ecf183beef88797eca9d 100644
--- a/cc/trees/layer_tree_host_impl.h
+++ b/cc/trees/layer_tree_host_impl.h
@@ -383,6 +383,9 @@ class CC_EXPORT LayerTreeHostImpl
// Deletes a UI resource. May safely be called more than once.
void DeleteUIResource(UIResourceId uid);
+ // Release all the UI resources.
+ void ReleaseUIResources();
+
ResourceProvider::ResourceId ResourceIdForUIResource(UIResourceId uid) const;
protected:

Powered by Google App Engine
This is Rietveld 408576698