Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 /* | |
| 2 * Copyright 2015 The WebRTC project authors. All Rights Reserved. | |
| 3 * | |
| 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 | |
| 6 * tree. An additional intellectual property rights grant can be found | |
| 7 * in the file PATENTS. All contributing project authors may | |
| 8 * be found in the AUTHORS file in the root of the source tree. | |
| 9 */ | |
| 10 | |
| 11 #import "RTCVideoRenderer.h" | |
| 12 | |
| 13 #include "talk/app/webrtc/mediastreaminterface.h" | |
| 14 | |
| 15 NS_ASSUME_NONNULL_BEGIN | |
| 16 | |
| 17 @interface RTCVideoRendererAdapter : NSObject | |
|
tkchin_webrtc
2016/01/05 21:59:02
Consider putting this in RTCVideoRenderer+Private.
tkchin_webrtc
2016/01/05 21:59:02
doco what this class is used for + update property
hjon
2016/01/08 01:00:52
Done.
| |
| 18 | |
| 19 /** The Objective-C video renderer represented by this adapter. */ | |
| 20 @property(nonatomic, readonly) id<RTCVideoRenderer> videoRenderer; | |
| 21 | |
| 22 /** The native VideoRendererInterface representing this adapter. */ | |
|
tkchin_webrtc
2016/01/05 21:59:02
doco: pointer is unsafe and owned by this class
hjon
2016/01/08 01:00:52
Done.
| |
| 23 @property(nonatomic, readonly) | |
| 24 webrtc::VideoRendererInterface *nativeVideoRenderer; | |
| 25 | |
| 26 - (instancetype)init NS_UNAVAILABLE; | |
| 27 | |
| 28 /** Initialize an RTCVideoRendererAdapter with an RTCVideoRenderer. */ | |
| 29 - (instancetype)initWithVideoRenderer:(id<RTCVideoRenderer>)videoRenderer | |
| 30 NS_DESIGNATED_INITIALIZER; | |
| 31 | |
| 32 @end | |
| 33 | |
| 34 NS_ASSUME_NONNULL_END | |
| OLD | NEW |