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

Side by Side Diff: webrtc/base/objc/RTCDispatcher.m

Issue 1838933004: Improve iOS frame capture threading. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Fix * Created 4 years, 8 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 unified diff | Download patch
« no previous file with comments | « webrtc/api/objc/avfoundationvideocapturer.mm ('k') | webrtc/base/objc/RTCDispatcher+Private.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright 2015 The WebRTC project authors. All Rights Reserved. 2 * Copyright 2015 The WebRTC project authors. All Rights Reserved.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license 4 * Use of this source code is governed by a BSD-style license
5 * that can be found in the LICENSE file in the root of the source 5 * that can be found in the LICENSE file in the root of the source
6 * tree. An additional intellectual property rights grant can be found 6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may 7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree. 8 * be found in the AUTHORS file in the root of the source tree.
9 */ 9 */
10 10
11 #import "RTCDispatcher.h" 11 #import "RTCDispatcher.h"
12 12
13 #import "RTCDispatcher+Private.h"
14
13 static dispatch_queue_t kAudioSessionQueue = nil; 15 static dispatch_queue_t kAudioSessionQueue = nil;
14 static dispatch_queue_t kCaptureSessionQueue = nil; 16 static dispatch_queue_t kCaptureSessionQueue = nil;
15 17
16 @implementation RTCDispatcher 18 @implementation RTCDispatcher
17 19
18 + (void)initialize { 20 + (void)initialize {
19 static dispatch_once_t onceToken; 21 static dispatch_once_t onceToken;
20 dispatch_once(&onceToken, ^{ 22 dispatch_once(&onceToken, ^{
21 kAudioSessionQueue = dispatch_queue_create( 23 kAudioSessionQueue = dispatch_queue_create(
22 "org.webrtc.RTCDispatcherAudioSession", 24 "org.webrtc.RTCDispatcherAudioSession",
(...skipping 18 matching lines...) Expand all
41 return dispatch_get_main_queue(); 43 return dispatch_get_main_queue();
42 case RTCDispatcherTypeCaptureSession: 44 case RTCDispatcherTypeCaptureSession:
43 return kCaptureSessionQueue; 45 return kCaptureSessionQueue;
44 case RTCDispatcherTypeAudioSession: 46 case RTCDispatcherTypeAudioSession:
45 return kAudioSessionQueue; 47 return kAudioSessionQueue;
46 } 48 }
47 } 49 }
48 50
49 @end 51 @end
50 52
OLDNEW
« no previous file with comments | « webrtc/api/objc/avfoundationvideocapturer.mm ('k') | webrtc/base/objc/RTCDispatcher+Private.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698