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_; |