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

Unified Diff: cc/tiles/gpu_image_decode_cache.cc

Issue 2535213002: [WIP] Add SharedMemoryTracker to dump base::SharedMemory usage
Patch Set: Implement buckets Created 3 years, 11 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
Index: cc/tiles/gpu_image_decode_cache.cc
diff --git a/cc/tiles/gpu_image_decode_cache.cc b/cc/tiles/gpu_image_decode_cache.cc
index 3ae2645f4b50695e545c5cabd4228115e8d3aa4f..3a1d1f8a54a86c5775280905ff4ba5276cd081ff 100644
--- a/cc/tiles/gpu_image_decode_cache.cc
+++ b/cc/tiles/gpu_image_decode_cache.cc
@@ -619,6 +619,9 @@ bool GpuImageDecodeCache::OnMemoryDump(
const int kImportance = 3;
pmd->CreateSharedGlobalAllocatorDump(guid);
pmd->AddOwnershipEdge(dump->guid(), guid, kImportance);
+ // TODO(hajimehoshi): |image_data::data_| might be allocated in
+ // DiscardableSharedMemory. Get shared memory handle of that and call
+ // base::SharedMemoryDumpProvider::AddOwnershipEdgeToSharedGlobalDump here
}
}

Powered by Google App Engine
This is Rietveld 408576698