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

Unified Diff: cc/debug/rasterize_and_record_benchmark.cc

Issue 2661523003: cc: Merge LayerTree into the LayerTreeHost. (Closed)
Patch Set: auto Created 3 years, 11 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 0ee705d13d93b1e9d512735dcdb1326f10f8eb5a..3b53a4ce9dd03cbf2fad507047f844f77bf08e37 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.h"
+#include "cc/trees/layer_tree_host.h"
#include "cc/trees/layer_tree_host_common.h"
#include "skia/ext/analysis_canvas.h"
#include "third_party/skia/include/utils/SkPictureUtils.h"
@@ -75,7 +75,7 @@ RasterizeAndRecordBenchmark::RasterizeAndRecordBenchmark(
record_repeat_count_(kDefaultRecordRepeatCount),
settings_(std::move(value)),
main_thread_benchmark_done_(false),
- layer_tree_(nullptr),
+ layer_tree_host_(nullptr),
weak_ptr_factory_(this) {
base::DictionaryValue* settings = nullptr;
settings_->GetAsDictionary(&settings);
@@ -90,10 +90,12 @@ RasterizeAndRecordBenchmark::~RasterizeAndRecordBenchmark() {
weak_ptr_factory_.InvalidateWeakPtrs();
}
-void RasterizeAndRecordBenchmark::DidUpdateLayers(LayerTree* layer_tree) {
- layer_tree_ = layer_tree;
+void RasterizeAndRecordBenchmark::DidUpdateLayers(
+ LayerTreeHost* layer_tree_host) {
+ layer_tree_host_ = layer_tree_host;
LayerTreeHostCommon::CallFunctionForEveryLayer(
- layer_tree, [this](Layer* layer) { layer->RunMicroBenchmark(this); });
+ layer_tree_host_,
+ [this](Layer* layer) { layer->RunMicroBenchmark(this); });
DCHECK(!results_.get());
results_ = base::WrapUnique(new base::DictionaryValue);
@@ -132,7 +134,7 @@ RasterizeAndRecordBenchmark::CreateBenchmarkImpl(
}
void RasterizeAndRecordBenchmark::RunOnLayer(PictureLayer* layer) {
- DCHECK(layer_tree_);
+ DCHECK(layer_tree_host_);
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