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

Unified Diff: cc/trees/layer_tree_host_impl.cc

Issue 284553002: cc: Change tile manager perftest to use layers. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: link fix attempt Created 6 years, 7 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.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/trees/layer_tree_host_impl.cc
diff --git a/cc/trees/layer_tree_host_impl.cc b/cc/trees/layer_tree_host_impl.cc
index b51d6f9cbc3c1aa95a4f3ef58ef2b4c5586a3e1c..af12c38c8b65356eaca20a7569dac4e3769a195c 100644
--- a/cc/trees/layer_tree_host_impl.cc
+++ b/cc/trees/layer_tree_host_impl.cc
@@ -1140,6 +1140,18 @@ void LayerTreeHostImpl::DidInitializeVisibleTileForTesting() {
DidInitializeVisibleTile();
}
+void LayerTreeHostImpl::ResetTreesForTesting() {
+ if (active_tree_)
+ active_tree_->DetachLayerTree();
+ active_tree_ = LayerTreeImpl::create(this);
+ if (pending_tree_)
+ pending_tree_->DetachLayerTree();
+ pending_tree_.reset();
+ if (recycle_tree_)
+ recycle_tree_->DetachLayerTree();
+ recycle_tree_.reset();
+}
+
void LayerTreeHostImpl::EnforceManagedMemoryPolicy(
const ManagedMemoryPolicy& policy) {
« no previous file with comments | « cc/trees/layer_tree_host_impl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698