OLD | NEW |
---|---|
1 /* | 1 /* |
2 * Copyright 2015 The WebRTC project authors. All Rights Reserved. | 2 * Copyright 2015 The WebRTC project authors. All Rights Reserved. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license | 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 | 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 | 6 * tree. An additional intellectual property rights grant can be found |
7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
9 */ | 9 */ |
10 | 10 |
11 #import <Foundation/Foundation.h> | 11 #import <Foundation/Foundation.h> |
Chuck
2016/04/22 16:20:12
Should this file be in the headers dir?
tkchin_webrtc
2016/04/26 21:26:24
Would like to hide it for now and make users use t
| |
12 #if TARGET_OS_IPHONE | 12 #if TARGET_OS_IPHONE |
13 #import <GLKit/GLKit.h> | 13 #import <GLKit/GLKit.h> |
14 #else | 14 #else |
15 #import <AppKit/NSOpenGL.h> | 15 #import <AppKit/NSOpenGL.h> |
16 #endif | 16 #endif |
17 | 17 |
18 #import "webrtc/base/objc/RTCMacros.h" | 18 #import "WebRTC/RTCMacros.h" |
19 | 19 |
20 NS_ASSUME_NONNULL_BEGIN | 20 NS_ASSUME_NONNULL_BEGIN |
21 | 21 |
22 @class RTCVideoFrame; | 22 @class RTCVideoFrame; |
23 | 23 |
24 // RTCOpenGLVideoRenderer issues appropriate OpenGL commands to draw a frame to | 24 // RTCOpenGLVideoRenderer issues appropriate OpenGL commands to draw a frame to |
25 // the currently bound framebuffer. Supports OpenGL 3.2 and OpenGLES 2.0. OpenGL | 25 // the currently bound framebuffer. Supports OpenGL 3.2 and OpenGLES 2.0. OpenGL |
26 // framebuffer creation and management should be handled elsewhere using the | 26 // framebuffer creation and management should be handled elsewhere using the |
27 // same context used to initialize this class. | 27 // same context used to initialize this class. |
28 RTC_EXPORT | 28 RTC_EXPORT |
(...skipping 23 matching lines...) Expand all Loading... | |
52 // Sets up the OpenGL state needed for rendering. | 52 // Sets up the OpenGL state needed for rendering. |
53 - (void)setupGL; | 53 - (void)setupGL; |
54 // Tears down the OpenGL state created by |setupGL|. | 54 // Tears down the OpenGL state created by |setupGL|. |
55 - (void)teardownGL; | 55 - (void)teardownGL; |
56 | 56 |
57 - (instancetype)init NS_UNAVAILABLE; | 57 - (instancetype)init NS_UNAVAILABLE; |
58 | 58 |
59 @end | 59 @end |
60 | 60 |
61 NS_ASSUME_NONNULL_END | 61 NS_ASSUME_NONNULL_END |
OLD | NEW |