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

Unified Diff: cc/debug/rasterize_and_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/rasterize_and_record_benchmark.cc
diff --git a/cc/debug/rasterize_and_record_benchmark.cc b/cc/debug/rasterize_and_record_benchmark.cc
index f24dce3baf1b9d4aad306ebdf2d945485fef3d95..c0e20760624bb0c6aa61fb14605d3af95b65aeff 100644
--- a/cc/debug/rasterize_and_record_benchmark.cc
+++ b/cc/debug/rasterize_and_record_benchmark.cc
@@ -101,6 +101,8 @@ void RasterizeAndRecordBenchmark::Run(Layer* layer) {
void RasterizeAndRecordBenchmark::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();
DCHECK(host_);
gfx::Size tile_grid_size = host_->settings().default_tile_size;
@@ -131,8 +133,14 @@ void RasterizeAndRecordBenchmark::RunOnLayer(PictureLayer* layer) {
base::TimeDelta::FromMilliseconds(kTimeLimitMillis),
kTimeCheckInterval);
do {
- scoped_refptr<Picture> picture = Picture::Create(
- visible_content_rect, painter, tile_grid_info, false, mode);
+ bool gather_pixels_refs = false;
+ scoped_refptr<Picture> picture = Picture::Create(visible_content_rect,
+ painter,
+ can_use_lcd_text,
+ contents_opaque,
+ tile_grid_info,
+ gather_pixels_refs,
+ mode);
timer.NextLap();
} while (!timer.HasTimeLimitExpired());
base::TimeDelta duration =

Powered by Google App Engine
This is Rietveld 408576698