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

Unified Diff: cc/debug/picture_record_benchmark.cc

Issue 684653004: Plumb can_use_lcd_text, contents_opaque directly to ContentLayerClient. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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/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;

Powered by Google App Engine
This is Rietveld 408576698