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 de6817005d4bd56648167de694d1fa66ed954e70..86340ab5731d8189b1748e10d3251121613084fb 100644 |
--- a/cc/debug/rasterize_and_record_benchmark_impl.cc |
+++ b/cc/debug/rasterize_and_record_benchmark_impl.cc |
@@ -43,20 +43,19 @@ void RunBenchmark(DisplayListRasterSource* raster_source, |
LapTimer timer(kWarmupRuns, |
base::TimeDelta::FromMilliseconds(kTimeLimitMillis), |
kTimeCheckInterval); |
+ SkColor color = SK_ColorTRANSPARENT; |
+ *is_solid_color = raster_source->PerformSolidColorAnalysis( |
+ content_rect, contents_scale, &color); |
+ |
do { |
SkBitmap bitmap; |
bitmap.allocPixels(SkImageInfo::MakeN32Premul(content_rect.width(), |
content_rect.height())); |
SkCanvas canvas(bitmap); |
- DisplayListRasterSource::SolidColorAnalysis analysis; |
- raster_source->PerformSolidColorAnalysis(content_rect, contents_scale, |
- &analysis); |
raster_source->PlaybackToCanvas(&canvas, content_rect, content_rect, |
contents_scale); |
- *is_solid_color = analysis.is_solid_color; |
- |
timer.NextLap(); |
} while (!timer.HasTimeLimitExpired()); |
base::TimeDelta duration = |