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 9083fe9053a54e0c6b81f339ba862a035b149ae2..97621e9e73c78a4fceb897ec0ac392f7719e7ded 100644 |
--- a/cc/debug/rasterize_and_record_benchmark.cc |
+++ b/cc/debug/rasterize_and_record_benchmark.cc |
@@ -147,7 +147,7 @@ void RasterizeAndRecordBenchmark::RunOnDisplayListLayer( |
} |
base::TimeDelta min_time = base::TimeDelta::Max(); |
size_t memory_used = 0; |
- |
+ gfx::Rect recording_viewport = visible_layer_rect; |
scoped_refptr<DisplayItemList> display_list; |
for (int i = 0; i < record_repeat_count_; ++i) { |
// Run for a minimum amount of time to avoid problems with timer |
@@ -157,8 +157,8 @@ void RasterizeAndRecordBenchmark::RunOnDisplayListLayer( |
kTimeCheckInterval); |
do { |
- display_list = painter->PaintContentsToDisplayList(visible_layer_rect, |
- painting_control); |
+ display_list = painter->PaintContentsToDisplayList(painting_control, |
+ &recording_viewport); |
if (display_list->ShouldBeAnalyzedForSolidColor()) { |
gfx::Size layer_size = layer->paint_properties().bounds; |
skia::AnalysisCanvas canvas(layer_size.width(), layer_size.height()); |