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

Unified Diff: webrtc/sdk/objc/Framework/Classes/avfoundationvideocapturer.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, 4 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 | « webrtc/base/timestampaligner.cc ('k') | webrtc/sdk/objc/Framework/Classes/avfoundationvideocapturer.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/sdk/objc/Framework/Classes/avfoundationvideocapturer.h
diff --git a/webrtc/sdk/objc/Framework/Classes/avfoundationvideocapturer.h b/webrtc/sdk/objc/Framework/Classes/avfoundationvideocapturer.h
index 5ce0462cff12a258fcbbbe7b68d3f34fcbaaf4c8..ebabb8ce20d7e2202b73eca3e20e03d487324485 100644
--- a/webrtc/sdk/objc/Framework/Classes/avfoundationvideocapturer.h
+++ b/webrtc/sdk/objc/Framework/Classes/avfoundationvideocapturer.h
@@ -25,8 +25,7 @@ class Thread;
namespace webrtc {
-class AVFoundationVideoCapturer : public cricket::VideoCapturer,
- public rtc::MessageHandler {
+class AVFoundationVideoCapturer : public cricket::VideoCapturer {
public:
AVFoundationVideoCapturer();
~AVFoundationVideoCapturer();
@@ -59,16 +58,8 @@ class AVFoundationVideoCapturer : public cricket::VideoCapturer,
void CaptureSampleBuffer(CMSampleBufferRef sample_buffer,
webrtc::VideoRotation rotation);
- // Handles messages from posts.
- void OnMessage(rtc::Message *msg) override;
-
private:
- void OnFrameMessage(CVImageBufferRef image_buffer,
- webrtc::VideoRotation rotation,
- int64_t capture_time_ns);
-
RTCAVFoundationVideoCapturerInternal *_capturer;
- rtc::Thread *_startThread; // Set in Start(), unset in Stop().
webrtc::I420BufferPool _buffer_pool;
}; // AVFoundationVideoCapturer
« no previous file with comments | « webrtc/base/timestampaligner.cc ('k') | webrtc/sdk/objc/Framework/Classes/avfoundationvideocapturer.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698