blob: 77e301f189ad17658b4a0b80c3e864962f5317d8 [file] [log] [blame]
Jon Hjellee799bad2016-01-11 13:47:11 -08001/*
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
magjedbf084522017-01-13 07:10:16 -080011#import <Foundation/Foundation.h>
12
tkchin9eeb6242016-04-27 01:54:20 -070013#if !TARGET_OS_IPHONE
Jon Hjellee799bad2016-01-11 13:47:11 -080014
15#import <AppKit/NSOpenGLView.h>
16
tkchin9eeb6242016-04-27 01:54:20 -070017#import <WebRTC/RTCVideoRenderer.h>
magjed13941912017-05-30 06:11:58 -070018#import <WebRTC/RTCVideoViewShading.h>
Jon Hjellee799bad2016-01-11 13:47:11 -080019
20NS_ASSUME_NONNULL_BEGIN
21
22@class RTCNSGLVideoView;
Jon Hjellee799bad2016-01-11 13:47:11 -080023
Yves Gerey665174f2018-06-19 15:03:05 +020024@protocol RTCNSGLVideoViewDelegate <RTCVideoViewDelegate>
Jon Hjellee799bad2016-01-11 13:47:11 -080025@end
26
27@interface RTCNSGLVideoView : NSOpenGLView <RTCVideoRenderer>
28
Kári Tristan Helgason06d094f2018-04-19 17:38:05 +020029@property(nonatomic, weak) id<RTCVideoViewDelegate> delegate;
Jon Hjellee799bad2016-01-11 13:47:11 -080030
magjed13941912017-05-30 06:11:58 -070031- (instancetype)initWithFrame:(NSRect)frameRect
32 pixelFormat:(NSOpenGLPixelFormat *)format
33 shader:(id<RTCVideoViewShading>)shader NS_DESIGNATED_INITIALIZER;
34
Jon Hjellee799bad2016-01-11 13:47:11 -080035@end
36
37NS_ASSUME_NONNULL_END
tkchin9eeb6242016-04-27 01:54:20 -070038
39#endif