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

Unified Diff: cc/benchmarks/rasterize_and_record_benchmark_impl.cc

Issue 2566613002: [4/5] Add translated rasterization support for PictureLayerTilingSet & below (Closed)
Patch Set: rebase & add unitests for coverage verification and slot conflict resolution Created 3 years, 9 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 | « no previous file | cc/layers/picture_layer_impl.cc » ('j') | cc/tiles/picture_layer_tiling.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/benchmarks/rasterize_and_record_benchmark_impl.cc
diff --git a/cc/benchmarks/rasterize_and_record_benchmark_impl.cc b/cc/benchmarks/rasterize_and_record_benchmark_impl.cc
index e222aac07d6f88e3d9c4fb1e4aab839e38db611f..0630064e142dd5761dc253b96641bccec0066e27 100644
--- a/cc/benchmarks/rasterize_and_record_benchmark_impl.cc
+++ b/cc/benchmarks/rasterize_and_record_benchmark_impl.cc
@@ -179,7 +179,7 @@ void RasterizeAndRecordBenchmarkImpl::RunOnLayer(PictureLayerImpl* layer) {
settings.max_preraster_distance_in_screen_pixels);
PictureLayerTiling* tiling =
- tiling_set->AddTiling(1.f, layer->GetRasterSource());
+ tiling_set->AddTiling(ScaleTranslate2d(), layer->GetRasterSource());
tiling->set_resolution(HIGH_RESOLUTION);
tiling->CreateAllTilesForTesting();
RasterSource* raster_source = tiling->raster_source().get();
@@ -189,7 +189,7 @@ void RasterizeAndRecordBenchmarkImpl::RunOnLayer(PictureLayerImpl* layer) {
DCHECK(*it);
gfx::Rect content_rect = (*it)->content_rect();
- float contents_scale = (*it)->contents_scale();
+ float contents_scale = (*it)->raster_transform().scale();
base::TimeDelta min_time;
bool is_solid_color = false;
« no previous file with comments | « no previous file | cc/layers/picture_layer_impl.cc » ('j') | cc/tiles/picture_layer_tiling.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698