Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 /* | |
| 2 * Copyright 2017 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 <Foundation/Foundation.h> | |
| 12 #import "WebRTC/RTCVideoRenderer.h" | |
| 13 | |
| 14 @class MTKView; | |
| 15 | |
| 16 NS_ASSUME_NONNULL_BEGIN | |
| 17 RTC_EXPORT | |
| 18 /** | |
| 19 * Render class that uses Metal to render RTCVideoFrame in an instance of MTKVie w. | |
| 20 */ | |
| 21 @protocol RTCMTLRenderer<RTCVideoRenderer> | |
|
tkchin_webrtc
2017/02/10 23:32:10
RTCMTLRendere <RTC
| |
| 22 | |
| 23 - (instancetype)initWithView:(__weak __kindof MTKView *)view; | |
|
tkchin_webrtc
2017/02/10 23:32:10
Don't put ctors in protocol decls, overly restrict
daniela-webrtc
2017/02/13 12:32:06
I see your point of this being restrictive and mak
tkchin_webrtc
2017/02/14 00:23:56
Sure, but that can be a base abstract class. In th
| |
| 24 | |
| 25 /** | |
| 26 * Sets up the renderer. | |
| 27 * | |
| 28 * If the method returns NO it signifies the renderer is unable to perform prope r setup and | |
| 29 * it's responsibility of the caller to perform all necessary clean up after thi s point. | |
| 30 * Unexpected behavior can happen if the cleanup doesn't happen and the renderer continues | |
| 31 * accepting RTCVideoRenderer callbacks. | |
| 32 */ | |
| 33 - (BOOL)setup; | |
| 34 | |
| 35 @end | |
| 36 | |
| 37 NS_ASSUME_NONNULL_END | |
| OLD | NEW |