diff options
author | 2017-07-24 11:38:01 -0400 | |
---|---|---|
committer | 2017-07-24 17:13:05 +0000 | |
commit | bc8150feef7aebb92811e8d976b65b04767c44f8 (patch) | |
tree | 350590451ea59f88ca5b5f9bdc45c9c1f1ead598 /tools/trace/SkEventTracingPriv.cpp | |
parent | ff46ace077da67957dc74754db960a3e78e7c41b (diff) |
Faster, thread-safe implementation
Bug: skia:
Change-Id: I401c5a9885c348aa424ab07b094acecddb209490
Reviewed-on: https://skia-review.googlesource.com/25860
Commit-Queue: Brian Osman <brianosman@google.com>
Reviewed-by: Mike Klein <mtklein@google.com>
Reviewed-by: Brian Salomon <bsalomon@google.com>
Diffstat (limited to 'tools/trace/SkEventTracingPriv.cpp')
-rw-r--r-- | tools/trace/SkEventTracingPriv.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/tools/trace/SkEventTracingPriv.cpp b/tools/trace/SkEventTracingPriv.cpp index c4c793b06e..783cfeaa32 100644 --- a/tools/trace/SkEventTracingPriv.cpp +++ b/tools/trace/SkEventTracingPriv.cpp @@ -22,7 +22,7 @@ DEFINE_string(trace, "", " trace events to specified file as JSON, for viewing\n" " with chrome://tracing"); -void initializeEventTracingForTools(int32_t* threadsFlag) { +void initializeEventTracingForTools() { if (FLAGS_trace.isEmpty()) { return; } @@ -34,10 +34,6 @@ void initializeEventTracingForTools(int32_t* threadsFlag) { } else if (0 == strcmp(traceFlag, "debugf")) { eventTracer = new SkDebugfTracer(); } else { - if (threadsFlag && *threadsFlag != 0) { - SkDebugf("JSON tracing is not yet thread-safe, disabling threading.\n"); - *threadsFlag = 0; - } eventTracer = new SkChromeTracingTracer(traceFlag); } |