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

Unified Diff: content/child/web_process_memory_dump_impl.cc

Issue 1308523004: Implement GetSkiaTraceMemoryDump and AddSuballocation on chrome blink platform impl (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@web_cache_move
Patch Set: Created 5 years, 3 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: content/child/web_process_memory_dump_impl.cc
diff --git a/content/child/web_process_memory_dump_impl.cc b/content/child/web_process_memory_dump_impl.cc
index 688b6c1616690ad85a52505759f6414de37044af..ed35f1ac65c61c2330b8407d3590c76b3b57491d 100644
--- a/content/child/web_process_memory_dump_impl.cc
+++ b/content/child/web_process_memory_dump_impl.cc
@@ -6,6 +6,7 @@
#include "base/trace_event/process_memory_dump.h"
#include "content/child/web_memory_allocator_dump_impl.h"
+#include "skia/ext/SkTraceMemoryDump_chrome.h"
ssid 2015/09/04 08:54:00 Also, deps addition is not required, it is already
namespace content {
@@ -132,4 +133,11 @@ void WebProcessMemoryDumpImpl::AddOwnershipEdge(
base::trace_event::MemoryAllocatorDumpGuid(target));
}
+SkTraceMemoryDump* WebProcessMemoryDumpImpl::CreateSkiaTraceMemoryDump(
+ const blink::WebString& dumpNamePrefix) {
+ sk_trace_dump_.reset(new skia::SkTraceMemoryDump_Chrome(
Primiano Tucci (use gerrit) 2015/09/04 10:02:16 Hmm if you store it into a scoped_ptr implies that
ssid 2015/09/07 17:29:53 Done.
+ dumpNamePrefix.utf8().data(), process_memory_dump_));
+ return sk_trace_dump_.get();
+}
+
} // namespace content
« content/child/web_process_memory_dump_impl.h ('K') | « content/child/web_process_memory_dump_impl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698