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

Unified Diff: cc/debug/invalidation_benchmark.cc

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/debug/invalidation_benchmark.cc
diff --git a/cc/debug/invalidation_benchmark.cc b/cc/debug/invalidation_benchmark.cc
index 681e29ef7cced1b62c1f9303d22c0c26df7494af..745d1f8cdfe1579a1db831e3ebdf8bf4695ef350 100644
--- a/cc/debug/invalidation_benchmark.cc
+++ b/cc/debug/invalidation_benchmark.cc
@@ -65,7 +65,8 @@ InvalidationBenchmark::~InvalidationBenchmark() {
void InvalidationBenchmark::DidUpdateLayers(LayerTreeHost* host) {
Khushal 2016/08/15 17:46:39 How about updating the MicroBenchmark interface to
xingliu 2016/08/15 21:29:12 I think it makes sense, and there isn't too much w
LayerTreeHostCommon::CallFunctionForEveryLayer(
- host, [this](Layer* layer) { layer->RunMicroBenchmark(this); });
+ host->GetLayerTree(),
+ [this](Layer* layer) { layer->RunMicroBenchmark(this); });
}
void InvalidationBenchmark::RunOnLayer(PictureLayer* layer) {

Powered by Google App Engine
This is Rietveld 408576698