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

Unified Diff: cc/trees/layer_tree_impl.h

Issue 23621021: (not for review yet) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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
« no previous file with comments | « cc/trees/layer_tree_host_impl.cc ('k') | cc/trees/layer_tree_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/trees/layer_tree_impl.h
diff --git a/cc/trees/layer_tree_impl.h b/cc/trees/layer_tree_impl.h
index 4dfc51110520c23755ce58e142d3b5ec135e4cd9..d2f69c12d4fe23e295dc433c8772a9cc2c04d71c 100644
--- a/cc/trees/layer_tree_impl.h
+++ b/cc/trees/layer_tree_impl.h
@@ -179,6 +179,11 @@ class CC_EXPORT LayerTreeImpl {
void DidBecomeActive();
+ void SetUIResourceEvictionCountAcked(uint64 ui_resource_eviction_count_acked);
+ uint64 ui_resource_eviction_count_acked() const {
+ return ui_resource_eviction_count_acked_;
+ }
+
bool ContentsTexturesPurged() const;
void SetContentsTexturesPurged();
void ResetContentsTexturesPurged();
@@ -243,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_acked_;
+
bool contents_textures_purged_;
bool viewport_size_invalid_;
bool needs_update_draw_properties_;
« no previous file with comments | « cc/trees/layer_tree_host_impl.cc ('k') | cc/trees/layer_tree_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698