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

Unified Diff: cc/debug/rasterize_and_record_benchmark_impl.cc

Issue 716283003: cc: Remove GetRasterSource from PictureLayerTilingClient. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: ::Create instead of ctor Created 6 years, 1 month 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 | « no previous file | cc/layers/picture_layer_impl.h » ('j') | cc/resources/picture_layer_tiling.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/debug/rasterize_and_record_benchmark_impl.cc
diff --git a/cc/debug/rasterize_and_record_benchmark_impl.cc b/cc/debug/rasterize_and_record_benchmark_impl.cc
index 07058d0871fae4b0a443a64d82d06d5023547ea8..394a74e9ffa2210e66e30844d2b738192797b521 100644
--- a/cc/debug/rasterize_and_record_benchmark_impl.cc
+++ b/cc/debug/rasterize_and_record_benchmark_impl.cc
@@ -99,10 +99,6 @@ class FixedInvalidationPictureLayerTilingClient
return base_client_->CreateTile(tiling, content_rect);
}
- RasterSource* GetRasterSource() override {
- return base_client_->GetRasterSource();
- }
-
gfx::Size CalculateTileSize(const gfx::Size& content_bounds) const override {
return base_client_->CalculateTileSize(content_bounds);
}
@@ -217,10 +213,11 @@ void RasterizeAndRecordBenchmarkImpl::RunOnLayer(PictureLayerImpl* layer) {
FixedInvalidationPictureLayerTilingClient client(
layer, gfx::Rect(layer->content_bounds()));
- PictureLayerTilingSet tiling_set(&client);
+ auto tiling_set =
+ PictureLayerTilingSet::Create(&client, layer->GetRasterSource());
PictureLayerTiling* tiling =
- tiling_set.AddTiling(layer->contents_scale_x(), layer->bounds());
+ tiling_set->AddTiling(layer->contents_scale_x(), layer->bounds());
tiling->CreateAllTilesForTesting();
for (PictureLayerTiling::CoverageIterator it(
tiling, layer->contents_scale_x(), layer->visible_content_rect());
« no previous file with comments | « no previous file | cc/layers/picture_layer_impl.h » ('j') | cc/resources/picture_layer_tiling.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698