| Index: cc/debug/picture_record_benchmark.cc
|
| diff --git a/cc/debug/picture_record_benchmark.cc b/cc/debug/picture_record_benchmark.cc
|
| index 5f832ae489759c60e018bcf1adbaa1e3b0b08e97..3ec02dd75405892e6bad286b7a7e1ab6ed0fec32 100644
|
| --- a/cc/debug/picture_record_benchmark.cc
|
| +++ b/cc/debug/picture_record_benchmark.cc
|
| @@ -90,6 +90,8 @@ void PictureRecordBenchmark::Run(Layer* layer) {
|
| void PictureRecordBenchmark::RunOnLayer(PictureLayer* layer) {
|
| ContentLayerClient* painter = layer->client();
|
| gfx::Size content_bounds = layer->content_bounds();
|
| + bool can_use_lcd_text = layer->can_use_lcd_text();
|
| + bool contents_opaque = layer->contents_opaque();
|
|
|
| SkTileGridFactory::TileGridInfo tile_grid_info;
|
| tile_grid_info.fTileInterval.set(kTileGridSize - 2 * kTileGridBorder,
|
| @@ -110,8 +112,15 @@ void PictureRecordBenchmark::RunOnLayer(PictureLayer* layer) {
|
|
|
| base::TimeTicks start = base::TimeTicks::HighResNow();
|
|
|
| - scoped_refptr<Picture> picture = Picture::Create(
|
| - rect, painter, tile_grid_info, false, Picture::RECORD_NORMALLY);
|
| + bool gather_pixels_refs = false;
|
| + scoped_refptr<Picture> picture =
|
| + Picture::Create(rect,
|
| + painter,
|
| + can_use_lcd_text,
|
| + contents_opaque,
|
| + tile_grid_info,
|
| + gather_pixels_refs,
|
| + Picture::RECORD_NORMALLY);
|
|
|
| base::TimeTicks end = base::TimeTicks::HighResNow();
|
| base::TimeDelta duration = end - start;
|
|
|