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

Unified Diff: base/time/time.h

Issue 2101303004: Pass delay and timestamp to AudioSourceCallback::OnMoreData. (Closed) Base URL: https://chromium.googlesource.com/chromium/src@master
Patch Set: Pass target playout time to AudioSourceCallback::OnMoreData. Created 4 years, 5 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 | « no previous file | base/time/time_posix.cc » ('j') | content/browser/media/capture/web_contents_audio_muter.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/time/time.h
diff --git a/base/time/time.h b/base/time/time.h
index efece969b0211b3d3b9f95d8e8ba2437b210798a..ab71c89d9ce274e75867144d02fb3cc84d17b557 100644
--- a/base/time/time.h
+++ b/base/time/time.h
@@ -115,6 +115,9 @@ class BASE_EXPORT TimeDelta {
static constexpr TimeDelta FromSecondsD(double secs);
static constexpr TimeDelta FromMillisecondsD(double ms);
static constexpr TimeDelta FromMicroseconds(int64_t us);
+#if defined(OS_POSIX)
+ static TimeDelta FromTimeSpec(const timespec& ts);
+#endif
#if defined(OS_WIN)
static TimeDelta FromQPCValue(LONGLONG qpc_value);
#endif
« no previous file with comments | « no previous file | base/time/time_posix.cc » ('j') | content/browser/media/capture/web_contents_audio_muter.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698