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

Unified Diff: talk/app/webrtc/objc/avfoundationvideocapturer.mm

Issue 1497393002: Add new view that renders local video using AVCaptureLayerPreview. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Removed commented line. Created 5 years 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: talk/app/webrtc/objc/avfoundationvideocapturer.mm
diff --git a/talk/app/webrtc/objc/avfoundationvideocapturer.mm b/talk/app/webrtc/objc/avfoundationvideocapturer.mm
index e1b0f88fb6ee590b405af970fefbef4db921bd11..34c05dececdbb808c5cc815724235acaaa065708 100644
--- a/talk/app/webrtc/objc/avfoundationvideocapturer.mm
+++ b/talk/app/webrtc/objc/avfoundationvideocapturer.mm
@@ -54,6 +54,7 @@ static dispatch_queue_t kBackgroundQueue = nil;
<AVCaptureVideoDataOutputSampleBufferDelegate>
@property(nonatomic, readonly) AVCaptureSession* captureSession;
+@property(nonatomic, readonly) dispatch_queue_t captureSessionQueue;
@property(nonatomic, readonly) BOOL isRunning;
@property(nonatomic, assign) BOOL useBackCamera; // Defaults to NO.
@@ -117,6 +118,10 @@ static dispatch_queue_t kBackgroundQueue = nil;
_capturer = nullptr;
}
+- (dispatch_queue_t)captureSessionQueue {
+ return kBackgroundQueue;
+}
+
- (void)setUseBackCamera:(BOOL)useBackCamera {
if (_useBackCamera == useBackCamera) {
return;
@@ -371,6 +376,10 @@ bool AVFoundationVideoCapturer::GetUseBackCamera() const {
return _capturer.useBackCamera;
}
+dispatch_queue_t AVFoundationVideoCapturer::GetCaptureSessionQueue() {
+ return _capturer.captureSessionQueue;
+}
+
void AVFoundationVideoCapturer::CaptureSampleBuffer(
CMSampleBufferRef sampleBuffer) {
if (CMSampleBufferGetNumSamples(sampleBuffer) != 1 ||

Powered by Google App Engine
This is Rietveld 408576698