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 "webrtc/api/objc/RTCEAGLVideoView.h" | 11 #import "WebRTC/RTCEAGLVideoView.h" |
12 | 12 |
13 #import <GLKit/GLKit.h> | 13 #import <GLKit/GLKit.h> |
14 | 14 |
15 #import "webrtc/api/objc/RTCOpenGLVideoRenderer.h" | 15 #import "WebRTC//RTCVideoFrame.h" |
16 #import "webrtc/api/objc/RTCVideoFrame.h" | 16 |
| 17 #import "RTCOpenGLVideoRenderer.h" |
17 | 18 |
18 // RTCDisplayLinkTimer wraps a CADisplayLink and is set to fire every two screen | 19 // RTCDisplayLinkTimer wraps a CADisplayLink and is set to fire every two screen |
19 // refreshes, which should be 30fps. We wrap the display link in order to avoid | 20 // refreshes, which should be 30fps. We wrap the display link in order to avoid |
20 // a retain cycle since CADisplayLink takes a strong reference onto its target. | 21 // a retain cycle since CADisplayLink takes a strong reference onto its target. |
21 // The timer is paused by default. | 22 // The timer is paused by default. |
22 @interface RTCDisplayLinkTimer : NSObject | 23 @interface RTCDisplayLinkTimer : NSObject |
23 | 24 |
24 @property(nonatomic) BOOL isPaused; | 25 @property(nonatomic) BOOL isPaused; |
25 | 26 |
26 - (instancetype)initWithTimerHandler:(void (^)(void))timerHandler; | 27 - (instancetype)initWithTimerHandler:(void (^)(void))timerHandler; |
(...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
254 | 255 |
255 - (void)didBecomeActive { | 256 - (void)didBecomeActive { |
256 [self setupGL]; | 257 [self setupGL]; |
257 } | 258 } |
258 | 259 |
259 - (void)willResignActive { | 260 - (void)willResignActive { |
260 [self teardownGL]; | 261 [self teardownGL]; |
261 } | 262 } |
262 | 263 |
263 @end | 264 @end |
OLD | NEW |