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

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

Issue 1903663002: Build dynamic iOS SDK. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Fix test gyp Created 4 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 "RTCNSGLVideoView.h" 11 #if !TARGET_OS_IPHONE
12
13 #import "WebRTC/RTCNSGLVideoView.h"
12 14
13 #import <CoreVideo/CVDisplayLink.h> 15 #import <CoreVideo/CVDisplayLink.h>
14 #import <OpenGL/gl3.h> 16 #import <OpenGL/gl3.h>
15 #import "RTCVideoFrame.h" 17
16 #import "RTCOpenGLVideoRenderer.h" 18 #import "RTCOpenGLVideoRenderer.h"
19 #import "WebRTC/RTCVideoFrame.h"
17 20
18 @interface RTCNSGLVideoView () 21 @interface RTCNSGLVideoView ()
19 // |videoFrame| is set when we receive a frame from a worker thread and is read 22 // |videoFrame| is set when we receive a frame from a worker thread and is read
20 // from the display link callback so atomicity is required. 23 // from the display link callback so atomicity is required.
21 @property(atomic, strong) RTCVideoFrame *videoFrame; 24 @property(atomic, strong) RTCVideoFrame *videoFrame;
22 @property(atomic, strong) RTCOpenGLVideoRenderer *glRenderer; 25 @property(atomic, strong) RTCOpenGLVideoRenderer *glRenderer;
23 - (void)drawFrame; 26 - (void)drawFrame;
24 @end 27 @end
25 28
26 static CVReturn OnDisplayLinkFired(CVDisplayLinkRef displayLink, 29 static CVReturn OnDisplayLinkFired(CVDisplayLinkRef displayLink,
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
132 135
133 - (void)teardownDisplayLink { 136 - (void)teardownDisplayLink {
134 if (!_displayLink) { 137 if (!_displayLink) {
135 return; 138 return;
136 } 139 }
137 CVDisplayLinkRelease(_displayLink); 140 CVDisplayLinkRelease(_displayLink);
138 _displayLink = NULL; 141 _displayLink = NULL;
139 } 142 }
140 143
141 @end 144 @end
145
146 #endif // !TARGET_OS_IPHONE
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698