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

Unified Diff: cc/debug/rasterize_and_record_benchmark_impl.cc

Issue 2629233002: cc: Remove separate x/y raster scales. (Closed)
Patch Set: 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 | « no previous file | cc/layers/picture_layer_impl.cc » ('j') | no next file with comments »
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 1cb09663781afe4c0a1fed943022de072bbf2125..ca6d294223a580f1867ff344970720a3bb85dd33 100644
--- a/cc/debug/rasterize_and_record_benchmark_impl.cc
+++ b/cc/debug/rasterize_and_record_benchmark_impl.cc
@@ -27,7 +27,7 @@ const int kDefaultRasterizeRepeatCount = 100;
void RunBenchmark(RasterSource* raster_source,
const gfx::Rect& content_rect,
- const gfx::SizeF& raster_scales,
+ float contents_scale,
size_t repeat_count,
base::TimeDelta* min_time,
bool* is_solid_color) {
@@ -45,7 +45,7 @@ void RunBenchmark(RasterSource* raster_source,
kTimeCheckInterval);
SkColor color = SK_ColorTRANSPARENT;
*is_solid_color = raster_source->PerformSolidColorAnalysis(
- content_rect, raster_scales, &color);
+ content_rect, contents_scale, &color);
do {
SkBitmap bitmap;
@@ -54,7 +54,7 @@ void RunBenchmark(RasterSource* raster_source,
SkCanvas canvas(bitmap);
raster_source->PlaybackToCanvas(&canvas, content_rect, content_rect,
- raster_scales,
+ contents_scale,
RasterSource::PlaybackSettings());
timer.NextLap();
@@ -188,11 +188,11 @@ void RasterizeAndRecordBenchmarkImpl::RunOnLayer(PictureLayerImpl* layer) {
DCHECK(*it);
gfx::Rect content_rect = (*it)->content_rect();
- const gfx::SizeF& raster_scales = (*it)->raster_scales();
+ float contents_scale = (*it)->contents_scale();
base::TimeDelta min_time;
bool is_solid_color = false;
- RunBenchmark(raster_source, content_rect, raster_scales,
+ RunBenchmark(raster_source, content_rect, contents_scale,
rasterize_repeat_count_, &min_time, &is_solid_color);
int tile_size = content_rect.width() * content_rect.height();
« no previous file with comments | « no previous file | cc/layers/picture_layer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698