ObjC: Remove RTCVideoFrame.nativeHandle

Access to a native buffer should be through RTCVideoFrame.buffer
instead.

BUG=webrtc:7785

Review-Url: https://codereview.webrtc.org/2990253002
Cr-Commit-Position: refs/heads/master@{#19430}
This commit is contained in:
magjed 2017-08-21 07:12:08 -07:00 committed by Commit Bot
parent 2ee432d51c
commit b0215daeb5
2 changed files with 0 additions and 12 deletions

View File

@ -83,14 +83,6 @@
return _timeStampNs;
}
- (CVPixelBufferRef)nativeHandle {
if ([_buffer isKindOfClass:[RTCCVPixelBuffer class]]) {
return ((RTCCVPixelBuffer *)_buffer).pixelBuffer;
} else {
return nullptr;
}
}
- (RTCVideoFrame *)newI420VideoFrame {
return [[RTCVideoFrame alloc] initWithBuffer:[_buffer toI420]
rotation:_rotation

View File

@ -54,10 +54,6 @@ RTC_EXPORT
/** Timestamp 90 kHz. */
@property(nonatomic, assign) int32_t timeStamp;
/** The native handle should be a pixel buffer on iOS. */
@property(nonatomic, readonly)
CVPixelBufferRef nativeHandle DEPRECATED_MSG_ATTRIBUTE("use buffer instead");
@property(nonatomic, readonly) id<RTCVideoFrameBuffer> buffer;
- (instancetype)init NS_UNAVAILABLE;