Chromium Code Reviews

Unified Diff: webrtc/api/videosourceproxy.h

Issue 1861633002: Extended proxy abstraction, to call certain methods to the worker thread. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Rebase. Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
« no previous file with comments | « webrtc/api/videocapturertracksource.cc ('k') | webrtc/api/videotrack.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/api/videosourceproxy.h
diff --git a/webrtc/api/videosourceproxy.h b/webrtc/api/videosourceproxy.h
index f43c0db69f2b6a69d1f8cc7591f13bafe16728ee..4d687d46259189893b9696b429fe4b8755bf7af6 100644
--- a/webrtc/api/videosourceproxy.h
+++ b/webrtc/api/videosourceproxy.h
@@ -20,23 +20,25 @@ namespace webrtc {
// implementation is
// destroyed on the signaling thread and marshals all method calls to the
// signaling thread.
-BEGIN_PROXY_MAP(VideoTrackSource)
-PROXY_CONSTMETHOD0(SourceState, state)
-PROXY_CONSTMETHOD0(bool, remote)
-PROXY_METHOD0(cricket::VideoCapturer*, GetVideoCapturer)
-PROXY_METHOD0(void, Stop)
-PROXY_METHOD0(void, Restart)
-PROXY_CONSTMETHOD0(bool, is_screencast)
-PROXY_CONSTMETHOD0(rtc::Optional<bool>, needs_denoising)
-PROXY_METHOD1(bool, GetStats, Stats*)
-PROXY_METHOD2(void,
- AddOrUpdateSink,
- rtc::VideoSinkInterface<cricket::VideoFrame>*,
- const rtc::VideoSinkWants&)
-PROXY_METHOD1(void, RemoveSink, rtc::VideoSinkInterface<cricket::VideoFrame>*)
-PROXY_METHOD1(void, RegisterObserver, ObserverInterface*)
-PROXY_METHOD1(void, UnregisterObserver, ObserverInterface*)
-END_PROXY()
+BEGIN_WORKER_PROXY_MAP(VideoTrackSource)
+ PROXY_CONSTMETHOD0(SourceState, state)
+ PROXY_CONSTMETHOD0(bool, remote)
+ PROXY_METHOD0(cricket::VideoCapturer*, GetVideoCapturer)
+ PROXY_METHOD0(void, Stop)
+ PROXY_METHOD0(void, Restart)
+ PROXY_CONSTMETHOD0(bool, is_screencast)
+ PROXY_CONSTMETHOD0(rtc::Optional<bool>, needs_denoising)
+ PROXY_METHOD1(bool, GetStats, Stats*)
+ PROXY_WORKER_METHOD2(void,
+ AddOrUpdateSink,
+ rtc::VideoSinkInterface<cricket::VideoFrame>*,
+ const rtc::VideoSinkWants&)
+ PROXY_WORKER_METHOD1(void,
+ RemoveSink,
+ rtc::VideoSinkInterface<cricket::VideoFrame>*)
+ PROXY_METHOD1(void, RegisterObserver, ObserverInterface*)
+ PROXY_METHOD1(void, UnregisterObserver, ObserverInterface*)
+END_WORKER_PROXY()
} // namespace webrtc
« no previous file with comments | « webrtc/api/videocapturertracksource.cc ('k') | webrtc/api/videotrack.h » ('j') | no next file with comments »

Powered by Google App Engine