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

Unified Diff: cc/trees/layer_tree_host_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.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 b908bc135fa7bdef68afb54a5d74edd7f8eacabf..6d6ac6cf5a10050007c35409b12201d14ec5b58d 100644
--- a/cc/trees/layer_tree_host_impl.h
+++ b/cc/trees/layer_tree_host_impl.h
@@ -323,6 +323,10 @@ class CC_EXPORT LayerTreeHostImpl
return animation_registrar_.get();
}
+ uint64 ui_resource_eviction_count() const {
+ return ui_resource_eviction_count_;
+ }
+
void SetDebugState(const LayerTreeDebugState& new_debug_state);
const LayerTreeDebugState& debug_state() const { return debug_state_; }
@@ -565,6 +569,11 @@ class CC_EXPORT LayerTreeHostImpl
bool need_to_update_visible_tiles_before_draw_;
+ // The number of times that UI resources have been evicted since creation.
+ // When doing a commit, the LayerTreeHost will acknowledge the most recent
+ // eviction for which it has recreated all UI resources.
+ uint64 ui_resource_eviction_count_;
+
// 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