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

Unified Diff: cc/trees/layer_tree_impl.h

Issue 23548022: [cc] Evict UIResources when the renderer is not visible (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix RenderTreePriority bug Created 7 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
Index: cc/trees/layer_tree_impl.h
diff --git a/cc/trees/layer_tree_impl.h b/cc/trees/layer_tree_impl.h
index 3b186932663ae4f585d5cb46cf41603e094605c5..e699b5670bbe0289659602501cf030b42c372be7 100644
--- a/cc/trees/layer_tree_impl.h
+++ b/cc/trees/layer_tree_impl.h
@@ -180,6 +180,10 @@ class CC_EXPORT LayerTreeImpl {
void DidBecomeActive();
+ void SetUIResourceEvictionCountRecreated(
+ uint64 ui_resource_eviction_count_recreated);
+ bool UIResourcesEvictedHaveNotBeenRecreated() const;
+
bool ContentsTexturesPurged() const;
void SetContentsTexturesPurged();
void ResetContentsTexturesPurged();
@@ -244,6 +248,12 @@ class CC_EXPORT LayerTreeImpl {
// rendering and input event hit testing.
LayerImplList render_surface_layer_list_;
+ // The UI resource eviction count most recently acked. This value is updated
+ // through ProcessUIResourceRequestQueue. If this value is not equal to
+ // |layer_tree_host_impl_|'s UI resource eviction count, then this tree may
+ // may reference evicted UI resources and cannot be drawn.
+ uint64 ui_resource_eviction_count_recreated_;
+
bool contents_textures_purged_;
bool viewport_size_invalid_;
bool needs_update_draw_properties_;

Powered by Google App Engine
This is Rietveld 408576698