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

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: capacity unit test 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..811211d999f890a6f666e2dd84badd4e3e613971 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(memory_used == display_list->ApproximateMemoryUsage());
enne (OOO) 2015/07/07 21:12:37 DCHECK_EQ?
jbroman 2015/07/07 21:39:03 Haha, the hazards of modifying an existing line of
} 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