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

Unified Diff: cc/tiles/gpu_image_decode_cache.cc

Issue 2535213002: [WIP] Add SharedMemoryTracker to dump base::SharedMemory usage
Patch Set: (wip) Created 3 years, 9 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 3ea22ba20faaea37deda12875dc380c9f21f948d..bde9821f70323bdc18d8b2d5a50dd5eb17316c7b 100644
--- a/cc/tiles/gpu_image_decode_cache.cc
+++ b/cc/tiles/gpu_image_decode_cache.cc
@@ -650,6 +650,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