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

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: CanDraw returns false when UI resources are evicted 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
« no previous file with comments | « cc/trees/layer_tree_host.cc ('k') | cc/trees/layer_tree_host_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..7642fa43cf86717b58315c7c54430e1fe6ac3798 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:
@@ -555,6 +558,8 @@ class CC_EXPORT LayerTreeHostImpl
bool need_to_update_visible_tiles_before_draw_;
+ bool ui_resources_evicted_;
+
// Optional callback to notify of new tree activations.
base::Closure tree_activation_callback_;
« no previous file with comments | « cc/trees/layer_tree_host.cc ('k') | cc/trees/layer_tree_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698