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

Unified Diff: cc/debug/rasterize_and_record_benchmark_impl.cc

Issue 820703002: c:: Give the raster source to the PictureLayerTilings. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years 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_set_unittest.cc » ('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 03267a8e04b3244e0183e88ba0d155fe1ceb5163..2555f85a6440a000771a110eed08935f65ffbea6 100644
--- a/cc/debug/rasterize_and_record_benchmark_impl.cc
+++ b/cc/debug/rasterize_and_record_benchmark_impl.cc
@@ -95,9 +95,9 @@ class FixedInvalidationPictureLayerTilingClient
const Region invalidation)
: base_client_(base_client), invalidation_(invalidation) {}
- scoped_refptr<Tile> CreateTile(PictureLayerTiling* tiling,
+ scoped_refptr<Tile> CreateTile(float contents_scale,
const gfx::Rect& content_rect) override {
- return base_client_->CreateTile(tiling, content_rect);
+ return base_client_->CreateTile(contents_scale, content_rect);
}
gfx::Size CalculateTileSize(const gfx::Size& content_bounds) const override {
@@ -214,8 +214,8 @@ void RasterizeAndRecordBenchmarkImpl::RunOnLayer(PictureLayerImpl* layer) {
settings.skewport_target_time_in_seconds,
settings.skewport_extrapolation_limit_in_content_pixels);
- PictureLayerTiling* tiling =
- tiling_set->AddTiling(layer->contents_scale_x(), layer->bounds());
+ PictureLayerTiling* tiling = tiling_set->AddTiling(layer->contents_scale_x(),
+ layer->GetRasterSource());
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_set_unittest.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698