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

Unified Diff: cc/debug/rasterize_and_record_benchmark.cc

Issue 1452353002: Turn off computation of the interest rect in cc in synchronized paint mode. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month 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 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());

Powered by Google App Engine
This is Rietveld 408576698