Chromium Code Reviews

Unified Diff: ui/gl/gl_image_io_surface.mm

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.
Jump to:
View side-by-side diff with in-line comments
Index: ui/gl/gl_image_io_surface.mm
diff --git a/ui/gl/gl_image_io_surface.mm b/ui/gl/gl_image_io_surface.mm
index 7b24aeaa67e119af7636709e6fc5ac92b09708fb..4dcb686aa9d4e71d59f3615b99d8e5bcaf7f8f6b 100644
--- a/ui/gl/gl_image_io_surface.mm
+++ b/ui/gl/gl_image_io_surface.mm
@@ -365,6 +365,9 @@ void GLImageIOSurface::OnMemoryDump(base::trace_event::ProcessMemoryDump* pmd,
GetGenericSharedMemoryGUIDForTracing(process_tracing_id, io_surface_id_);
pmd->CreateSharedGlobalAllocatorDump(guid);
pmd->AddOwnershipEdge(dump->guid(), guid);
+ // TODO(hajimehoshi): Call
+ // base::SharedMemoryDumpProvider::AddOwnershipEdgeToSharedGlobalDump to
+ // report shared memory usage correctly.
}
bool GLImageIOSurface::EmulatingRGB() const {

Powered by Google App Engine