| 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 0144636664c6eebe130b36487617f8a0f660af86..e222aac07d6f88e3d9c4fb1e4aab839e38db611f 100644
|
| --- a/cc/benchmarks/rasterize_and_record_benchmark_impl.cc
|
| +++ b/cc/benchmarks/rasterize_and_record_benchmark_impl.cc
|
| @@ -11,6 +11,7 @@
|
|
|
| #include "base/values.h"
|
| #include "cc/base/lap_timer.h"
|
| +#include "cc/base/scale_translate2d.h"
|
| #include "cc/layers/layer_impl.h"
|
| #include "cc/layers/picture_layer_impl.h"
|
| #include "cc/raster/raster_buffer_provider.h"
|
| @@ -52,9 +53,10 @@ void RunBenchmark(RasterSource* raster_source,
|
| bitmap.allocPixels(SkImageInfo::MakeN32Premul(content_rect.width(),
|
| content_rect.height()));
|
| SkCanvas canvas(bitmap);
|
| - raster_source->PlaybackToCanvas(&canvas, gfx::ColorSpace(), content_rect,
|
| - content_rect, contents_scale,
|
| - RasterSource::PlaybackSettings());
|
| + raster_source->PlaybackToCanvas(
|
| + &canvas, gfx::ColorSpace(), content_rect, content_rect,
|
| + ScaleTranslate2d(contents_scale, gfx::Vector2dF()),
|
| + RasterSource::PlaybackSettings());
|
|
|
| timer.NextLap();
|
| } while (!timer.HasTimeLimitExpired());
|
|
|