Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(399)

Side by Side Diff: webrtc/sdk/objc/Framework/Classes/UI/RTCEAGLVideoView.m

Issue 2862543002: Split iOS sdk in to separate targets (Closed)
Patch Set: Add required lib to metal target Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 "RTCShader+Private.h" 15 #import "Video/RTCShader+Private.h"
16 #import "WebRTC/RTCLogging.h" 16 #import "WebRTC/RTCLogging.h"
17 #import "WebRTC/RTCVideoFrame.h" 17 #import "WebRTC/RTCVideoFrame.h"
18 18
19 // 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
20 // 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
21 // 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.
22 // The timer is paused by default. 22 // The timer is paused by default.
23 @interface RTCDisplayLinkTimer : NSObject 23 @interface RTCDisplayLinkTimer : NSObject
24 24
25 @property(nonatomic) BOOL isPaused; 25 @property(nonatomic) BOOL isPaused;
(...skipping 262 matching lines...) Expand 10 before | Expand all | Expand 10 after
288 } 288 }
289 289
290 - (void)ensureGLContext { 290 - (void)ensureGLContext {
291 NSAssert(_glContext, @"context shouldn't be nil"); 291 NSAssert(_glContext, @"context shouldn't be nil");
292 if ([EAGLContext currentContext] != _glContext) { 292 if ([EAGLContext currentContext] != _glContext) {
293 [EAGLContext setCurrentContext:_glContext]; 293 [EAGLContext setCurrentContext:_glContext];
294 } 294 }
295 } 295 }
296 296
297 @end 297 @end
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698