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

Unified Diff: cc/debug/rasterize_and_record_benchmark.cc

Issue 1226503006: cc: More consistent reasoning about display list memory usage. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: adjust DisplayItemListTest.ApproximateMemoryUsage Created 5 years, 5 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
« no previous file with comments | « cc/base/sidecar_list_container.h ('k') | cc/playback/clip_display_item.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 bed367dd6fee8f7c786881b94cb131a3f5cad2e7..b474e431fd2d3f42d5024af2e9a11e02d4f09340 100644
--- a/cc/debug/rasterize_and_record_benchmark.cc
+++ b/cc/debug/rasterize_and_record_benchmark.cc
@@ -223,9 +223,9 @@ void RasterizeAndRecordBenchmark::RunOnDisplayListLayer(
if (memory_used) {
// Verify we are recording the same thing each time.
- DCHECK(memory_used == display_list->PictureMemoryUsage());
+ DCHECK_EQ(memory_used, display_list->ApproximateMemoryUsage());
} else {
- memory_used = display_list->PictureMemoryUsage();
+ memory_used = display_list->ApproximateMemoryUsage();
}
timer.NextLap();
« no previous file with comments | « cc/base/sidecar_list_container.h ('k') | cc/playback/clip_display_item.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698