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

Unified Diff: third_party/WebKit/Source/platform/TraceEvent.h

Issue 2359503002: Let TRACE_EVENT_XXX_WITH_TIMESTAMP accept TimeTicks instead of int64_t (Closed)
Patch Set: Rebase Created 4 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: third_party/WebKit/Source/platform/TraceEvent.h
diff --git a/third_party/WebKit/Source/platform/TraceEvent.h b/third_party/WebKit/Source/platform/TraceEvent.h
index e6db51e3e05ff05e437c0aca273ef11aa3f52684..ba728237309bdb4e41e059f04f0b6e31c8990a56 100644
--- a/third_party/WebKit/Source/platform/TraceEvent.h
+++ b/third_party/WebKit/Source/platform/TraceEvent.h
@@ -27,11 +27,14 @@ namespace TraceEvent {
using base::trace_event::TraceScopedTrackableObject;
-inline int64_t toTraceTimestamp(double seconds)
+inline base::TimeTicks toTraceTimestamp(double seconds)
{
- return (base::TimeTicks() + base::TimeDelta::FromSecondsD(seconds)).ToInternalValue();
+ return base::TimeTicks() + base::TimeDelta::FromSecondsD(seconds);
}
+// This is to avoid error of passing a chromium time internal value.
+void toTraceTimestamp(int64_t);
+
} // namespace TraceEvent
} // namespace blink
« no previous file with comments | « gpu/command_buffer/service/gpu_tracer.cc ('k') | third_party/WebKit/Source/platform/scheduler/child/idle_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698