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/RTCEAGLVideoView.h" | 11 #import "WebRTC/RTCEAGLVideoView.h" |
12 | 12 |
13 #import <GLKit/GLKit.h> | 13 #import <GLKit/GLKit.h> |
14 | 14 |
15 #import "RTCOpenGLVideoRenderer.h" | 15 #import "RTCOpenGLVideoRenderer.h" |
16 #import "WebRTC//RTCVideoFrame.h" | 16 #import "WebRTC//RTCVideoFrame.h" |
tkchin_webrtc
2016/08/09 17:42:20
Mind fixing this typo? //
magjed_webrtc
2016/08/10 10:26:06
Done.
| |
17 | 17 |
18 // RTCDisplayLinkTimer wraps a CADisplayLink and is set to fire every two screen | 18 // 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 | 19 // 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. | 20 // a retain cycle since CADisplayLink takes a strong reference onto its target. |
21 // The timer is paused by default. | 21 // The timer is paused by default. |
22 @interface RTCDisplayLinkTimer : NSObject | 22 @interface RTCDisplayLinkTimer : NSObject |
23 | 23 |
24 @property(nonatomic) BOOL isPaused; | 24 @property(nonatomic) BOOL isPaused; |
25 | 25 |
26 - (instancetype)initWithTimerHandler:(void (^)(void))timerHandler; | 26 - (instancetype)initWithTimerHandler:(void (^)(void))timerHandler; |
(...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
256 | 256 |
257 - (void)didBecomeActive { | 257 - (void)didBecomeActive { |
258 [self setupGL]; | 258 [self setupGL]; |
259 } | 259 } |
260 | 260 |
261 - (void)willResignActive { | 261 - (void)willResignActive { |
262 [self teardownGL]; | 262 [self teardownGL]; |
263 } | 263 } |
264 | 264 |
265 @end | 265 @end |
OLD | NEW |