| OLD | NEW |
| 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 "RTCVideoSource+Private.h" | 11 #import "RTCVideoSource+Private.h" |
| 12 | 12 |
| 13 #include "webrtc/base/checks.h" | 13 #include "webrtc/base/checks.h" |
| 14 #include "webrtc/sdk/objc/Framework/Classes/objcvideotracksource.h" | 14 #include "webrtc/sdk/objc/Framework/Classes/Video/objcvideotracksource.h" |
| 15 | 15 |
| 16 // TODO(magjed): Refactor this class and target ObjcVideoTrackSource only once | 16 // TODO(magjed): Refactor this class and target ObjcVideoTrackSource only once |
| 17 // RTCAVFoundationVideoSource is gone. See http://crbug/webrtc/7177 for more | 17 // RTCAVFoundationVideoSource is gone. See http://crbug/webrtc/7177 for more |
| 18 // info. | 18 // info. |
| 19 @implementation RTCVideoSource { | 19 @implementation RTCVideoSource { |
| 20 rtc::scoped_refptr<webrtc::VideoTrackSourceInterface> _nativeVideoSource; | 20 rtc::scoped_refptr<webrtc::VideoTrackSourceInterface> _nativeVideoSource; |
| 21 } | 21 } |
| 22 | 22 |
| 23 - (instancetype)initWithNativeVideoSource: | 23 - (instancetype)initWithNativeVideoSource: |
| 24 (rtc::scoped_refptr<webrtc::VideoTrackSourceInterface>)nativeVideoSource { | 24 (rtc::scoped_refptr<webrtc::VideoTrackSourceInterface>)nativeVideoSource { |
| (...skipping 26 matching lines...) Expand all Loading... |
| 51 ->OnOutputFormatRequest(width, height, fps); | 51 ->OnOutputFormatRequest(width, height, fps); |
| 52 } | 52 } |
| 53 | 53 |
| 54 #pragma mark - Private | 54 #pragma mark - Private |
| 55 | 55 |
| 56 - (rtc::scoped_refptr<webrtc::VideoTrackSourceInterface>)nativeVideoSource { | 56 - (rtc::scoped_refptr<webrtc::VideoTrackSourceInterface>)nativeVideoSource { |
| 57 return _nativeVideoSource; | 57 return _nativeVideoSource; |
| 58 } | 58 } |
| 59 | 59 |
| 60 @end | 60 @end |
| OLD | NEW |