Index: skia/ext/skia_trace_memory_dump_impl.cc |
diff --git a/skia/ext/skia_trace_memory_dump_impl.cc b/skia/ext/skia_trace_memory_dump_impl.cc |
index b7784e722ff22be951893cf6d2234ee243983d3a..97b2549632a3c2d25d9d80797f8e9b858586e3c0 100644 |
--- a/skia/ext/skia_trace_memory_dump_impl.cc |
+++ b/skia/ext/skia_trace_memory_dump_impl.cc |
@@ -13,6 +13,7 @@ namespace skia { |
namespace { |
const char kMallocBackingType[] = "malloc"; |
+const char kSkMallocBackingType[] = "skia/sk_malloc"; |
} |
SkiaTraceMemoryDumpImpl::SkiaTraceMemoryDumpImpl( |
@@ -53,6 +54,9 @@ void SkiaTraceMemoryDumpImpl::setMemoryBacking(const char* dumpName, |
process_memory_dump_->AddSuballocation(dump->guid(), |
system_allocator_name); |
} |
+ } else if (strcmp(backingType, kSkMallocBackingType) == 0) { |
+ auto dump = process_memory_dump_->GetOrCreateAllocatorDump(dumpName); |
+ process_memory_dump_->AddSuballocation(dump->guid(), backingType); |
} else { |
NOTREACHED(); |
} |