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

Unified Diff: cc/trees/layer_tree_host_common.h

Issue 2216203002: Refactor MutatorHostClient from LayerTreeHost to LayerTree. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix call site in cc_perftest. Created 4 years, 4 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_host_common.h
diff --git a/cc/trees/layer_tree_host_common.h b/cc/trees/layer_tree_host_common.h
index e50a51410e2b29c66cf960515abd2a9ede3c98fc..c97bc071d75b8d544fbf9a2dd7ff1a1d6057f471 100644
--- a/cc/trees/layer_tree_host_common.h
+++ b/cc/trees/layer_tree_host_common.h
@@ -17,6 +17,7 @@
#include "cc/layers/layer.h"
#include "cc/layers/layer_collections.h"
#include "cc/layers/layer_impl.h"
+#include "cc/trees/layer_tree.h"
#include "cc/trees/layer_tree_host.h"
#include "cc/trees/layer_tree_impl.h"
#include "cc/trees/property_tree.h"
@@ -123,7 +124,7 @@ class CC_EXPORT LayerTreeHostCommon {
CalcDrawPropsImplInputsForTesting* inputs);
template <typename Function>
- static void CallFunctionForEveryLayer(LayerTreeHost* layer,
+ static void CallFunctionForEveryLayer(LayerTree* layer,
const Function& function);
template <typename Function>
@@ -170,7 +171,7 @@ struct CC_EXPORT ScrollAndScaleSet {
};
template <typename Function>
-void LayerTreeHostCommon::CallFunctionForEveryLayer(LayerTreeHost* host,
+void LayerTreeHostCommon::CallFunctionForEveryLayer(LayerTree* host,
const Function& function) {
for (auto* layer : *host) {
function(layer);

Powered by Google App Engine
This is Rietveld 408576698