summaryrefslogtreecommitdiffstats
path: root/cc/debug/rasterize_and_record_benchmark.cc
diff options
context:
space:
mode:
authorwangxianzhu <wangxianzhu@chromium.org>2015-03-17 20:17:15 -0700
committerCommit bot <commit-bot@chromium.org>2015-03-18 03:18:12 +0000
commitb5f03786ca860771925431aa3ec8c064d6b1f9d8 (patch)
treef71f41e645f5d164a9a6c8ff54c287551197bf77 /cc/debug/rasterize_and_record_benchmark.cc
parent924b0c833c711b0ed04a0b55d6fa5ce093e44b6b (diff)
downloadchromium_src-b5f03786ca860771925431aa3ec8c064d6b1f9d8.zip
chromium_src-b5f03786ca860771925431aa3ec8c064d6b1f9d8.tar.gz
chromium_src-b5f03786ca860771925431aa3ec8c064d6b1f9d8.tar.bz2
[S.P.] Accumulate bytes_used and pixels_recorded in normal recording mode only
This is to keep consistency with non-SP mode, so that the results are comparable. Review URL: https://codereview.chromium.org/1018793002 Cr-Commit-Position: refs/heads/master@{#321068}
Diffstat (limited to 'cc/debug/rasterize_and_record_benchmark.cc')
-rw-r--r--cc/debug/rasterize_and_record_benchmark.cc8
1 files changed, 5 insertions, 3 deletions
diff --git a/cc/debug/rasterize_and_record_benchmark.cc b/cc/debug/rasterize_and_record_benchmark.cc
index e46dcfe..73a0fa5 100644
--- a/cc/debug/rasterize_and_record_benchmark.cc
+++ b/cc/debug/rasterize_and_record_benchmark.cc
@@ -225,9 +225,11 @@ void RasterizeAndRecordBenchmark::RunOnDisplayListLayer(
min_time = duration;
}
- record_results_.bytes_used += memory_used;
- record_results_.pixels_recorded +=
- visible_content_rect.width() * visible_content_rect.height();
+ if (mode_index == RecordingSource::RECORD_NORMALLY) {
+ record_results_.bytes_used += memory_used;
+ record_results_.pixels_recorded +=
+ visible_content_rect.width() * visible_content_rect.height();
+ }
record_results_.total_best_time[mode_index] += min_time;
}
}