blob: 9e6a9ce94839c4eb7a9f394b8232ef00041b154b [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;
23@protocol RTCNSGLVideoViewDelegate
24
25- (void)videoView:(RTCNSGLVideoView *)videoView didChangeVideoSize:(CGSize)size;
26
27@end
28
29@interface RTCNSGLVideoView : NSOpenGLView <RTCVideoRenderer>
30
31@property(nonatomic, weak) id<RTCNSGLVideoViewDelegate> delegate;
32
magjed13941912017-05-30 06:11:58 -070033- (instancetype)initWithFrame:(NSRect)frameRect
34 pixelFormat:(NSOpenGLPixelFormat *)format
35 shader:(id<RTCVideoViewShading>)shader NS_DESIGNATED_INITIALIZER;
36
Jon Hjellee799bad2016-01-11 13:47:11 -080037@end
38
39NS_ASSUME_NONNULL_END
tkchin9eeb6242016-04-27 01:54:20 -070040
41#endif