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

Unified Diff: webrtc/base/timestampaligner.h

Issue 2137503003: AVFoundation Video Capturer: Remove thread jump when delivering frames (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Add thread comment in TimestampAligner 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
« no previous file with comments | « no previous file | webrtc/base/timestampaligner.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/base/timestampaligner.h
diff --git a/webrtc/base/timestampaligner.h b/webrtc/base/timestampaligner.h
index d59c6a4a4e3382e2a245a77915c77e2a75aba7a6..00431f355b809f9b8bc2881e48ee95f9d7d641a4 100644
--- a/webrtc/base/timestampaligner.h
+++ b/webrtc/base/timestampaligner.h
@@ -14,10 +14,11 @@
#include "webrtc/base/basictypes.h"
#include "webrtc/base/constructormagic.h"
#include "webrtc/base/optional.h"
-#include "webrtc/base/thread_checker.h"
namespace rtc {
+// This class is not thread safe, so all calls to it must be synchronized
+// externally.
class TimestampAligner {
public:
TimestampAligner();
@@ -30,8 +31,6 @@ class TimestampAligner {
int64_t ClipTimestamp(int64_t filtered_time_us, int64_t system_time_us);
private:
- rtc::ThreadChecker thread_checker_;
-
// State for the timestamp translation.
int frames_seen_;
// Estimated offset between camera time and system monotonic time.
« no previous file with comments | « no previous file | webrtc/base/timestampaligner.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698