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

Unified Diff: cc/debug/rasterize_and_record_benchmark.cc

Issue 2216203002: Refactor MutatorHostClient from LayerTreeHost to LayerTree. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase on another LTH refactor CL. 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
« no previous file with comments | « cc/debug/rasterize_and_record_benchmark.h ('k') | cc/debug/unittest_only_benchmark.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/debug/rasterize_and_record_benchmark.cc
diff --git a/cc/debug/rasterize_and_record_benchmark.cc b/cc/debug/rasterize_and_record_benchmark.cc
index 4e4013236a84294ac053b5b9f16dae1e296c4c55..bb833ec65def4465d4ab30eb250ad515ef252abf 100644
--- a/cc/debug/rasterize_and_record_benchmark.cc
+++ b/cc/debug/rasterize_and_record_benchmark.cc
@@ -20,7 +20,7 @@
#include "cc/layers/picture_layer.h"
#include "cc/playback/display_item_list.h"
#include "cc/playback/recording_source.h"
-#include "cc/trees/layer_tree_host.h"
+#include "cc/trees/layer_tree.h"
#include "cc/trees/layer_tree_host_common.h"
#include "skia/ext/analysis_canvas.h"
#include "third_party/skia/include/utils/SkPictureUtils.h"
@@ -54,7 +54,7 @@ RasterizeAndRecordBenchmark::RasterizeAndRecordBenchmark(
record_repeat_count_(kDefaultRecordRepeatCount),
settings_(std::move(value)),
main_thread_benchmark_done_(false),
- host_(nullptr),
+ layer_tree_(nullptr),
weak_ptr_factory_(this) {
base::DictionaryValue* settings = nullptr;
settings_->GetAsDictionary(&settings);
@@ -69,10 +69,10 @@ RasterizeAndRecordBenchmark::~RasterizeAndRecordBenchmark() {
weak_ptr_factory_.InvalidateWeakPtrs();
}
-void RasterizeAndRecordBenchmark::DidUpdateLayers(LayerTreeHost* host) {
- host_ = host;
+void RasterizeAndRecordBenchmark::DidUpdateLayers(LayerTree* layer_tree) {
+ layer_tree_ = layer_tree;
LayerTreeHostCommon::CallFunctionForEveryLayer(
- host, [this](Layer* layer) { layer->RunMicroBenchmark(this); });
+ layer_tree, [this](Layer* layer) { layer->RunMicroBenchmark(this); });
DCHECK(!results_.get());
results_ = base::WrapUnique(new base::DictionaryValue);
@@ -111,7 +111,7 @@ RasterizeAndRecordBenchmark::CreateBenchmarkImpl(
}
void RasterizeAndRecordBenchmark::RunOnLayer(PictureLayer* layer) {
- DCHECK(host_);
+ DCHECK(layer_tree_);
if (!layer->DrawsContent())
return;
« no previous file with comments | « cc/debug/rasterize_and_record_benchmark.h ('k') | cc/debug/unittest_only_benchmark.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698