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

Unified Diff: skia/ext/event_tracer_impl.cc

Issue 1408583002: Enable Skia tracing in browser process (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Single process mode fix Created 5 years, 2 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
« no previous file with comments | « content/browser/browser_main_loop.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: skia/ext/event_tracer_impl.cc
diff --git a/skia/ext/event_tracer_impl.cc b/skia/ext/event_tracer_impl.cc
index f6e12f05d605a198d7777bbcda02162b17d220db..c4d89a4f8f630286042bd170cdd78692f2a8586b 100644
--- a/skia/ext/event_tracer_impl.cc
+++ b/skia/ext/event_tracer_impl.cc
@@ -70,5 +70,6 @@ void
void InitSkiaEventTracer() {
// Initialize the binding to Skia's tracing events. Skia will
// take ownership of and clean up the memory allocated here.
- SkEventTracer::SetInstance(new skia::SkChromiumEventTracer());
+ if (!SkEventTracer::GetInstance())
+ SkEventTracer::SetInstance(new skia::SkChromiumEventTracer());
}
« no previous file with comments | « content/browser/browser_main_loop.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698