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

Unified Diff: cc/debug/rasterize_and_record_benchmark.cc

Issue 862133002: Update from https://crrev.com/312398 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 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
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 41d62100fb26d15204cc279e8c5af81c85926cde..51edc985a49338cdf619ea38121d53b380348b44 100644
--- a/cc/debug/rasterize_and_record_benchmark.cc
+++ b/cc/debug/rasterize_and_record_benchmark.cc
@@ -108,9 +108,6 @@ void RasterizeAndRecordBenchmark::RunOnLayer(PictureLayer* layer) {
DCHECK(host_);
gfx::Size tile_grid_size = host_->settings().default_tile_size;
- SkTileGridFactory::TileGridInfo tile_grid_info;
- PicturePile::ComputeTileGridInfo(tile_grid_size, &tile_grid_info);
-
gfx::Rect visible_content_rect = gfx::ScaleToEnclosingRect(
layer->visible_content_rect(), 1.f / layer->contents_scale_x());
if (visible_content_rect.IsEmpty())
@@ -136,7 +133,7 @@ void RasterizeAndRecordBenchmark::RunOnLayer(PictureLayer* layer) {
kTimeCheckInterval);
scoped_refptr<Picture> picture;
do {
- picture = Picture::Create(visible_content_rect, painter, tile_grid_info,
+ picture = Picture::Create(visible_content_rect, painter, tile_grid_size,
false, mode);
timer.NextLap();
} while (!timer.HasTimeLimitExpired());
« no previous file with comments | « cc/debug/picture_record_benchmark.cc ('k') | cc/layers/layer.h » ('j') | shell/BUILD.gn » ('J')

Powered by Google App Engine
This is Rietveld 408576698