Chromium Code Reviews| Index: content/child/web_process_memory_dump_impl.h |
| diff --git a/content/child/web_process_memory_dump_impl.h b/content/child/web_process_memory_dump_impl.h |
| index 221db61f1f6dee494656ab52d00eca007308b724..f602065032d6c96a4d62074478ec7f32aa987011 100644 |
| --- a/content/child/web_process_memory_dump_impl.h |
| +++ b/content/child/web_process_memory_dump_impl.h |
| @@ -18,6 +18,10 @@ class ProcessMemoryDump; |
| } // namespace base |
| } // namespace trace_event |
| +namespace skia { |
| +class SkTraceMemoryDump_Chrome; |
| +} // namespace skia |
| + |
| namespace content { |
| class WebMemoryAllocatorDumpImpl; |
| @@ -53,6 +57,8 @@ class CONTENT_EXPORT WebProcessMemoryDumpImpl final |
| int importance); |
| virtual void AddOwnershipEdge(blink::WebMemoryAllocatorDumpGuid source, |
| blink::WebMemoryAllocatorDumpGuid target); |
| + virtual SkTraceMemoryDump* CreateSkiaTraceMemoryDump( |
|
Primiano Tucci (use gerrit)
2015/09/04 10:02:16
I'd probably call this CreateDumpAdapterForSkia(du
ssid
2015/09/07 17:29:53
Done.
|
| + const blink::WebString& dumpNamePrefix); |
| const base::trace_event::ProcessMemoryDump* process_memory_dump() const { |
| return process_memory_dump_; |
| @@ -80,6 +86,9 @@ class CONTENT_EXPORT WebProcessMemoryDumpImpl final |
| scoped_ptr<WebMemoryAllocatorDumpImpl>> |
| memory_allocator_dumps_; |
| + // Stores SkTraceMemoryDump for the current ProcessMemoryDump. |
| + scoped_ptr<skia::SkTraceMemoryDump_Chrome> sk_trace_dump_; |
| + |
| DISALLOW_COPY_AND_ASSIGN(WebProcessMemoryDumpImpl); |
| }; |