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

Side by Side Diff: webrtc/sdk/objc/Framework/Classes/RTCOpenGLVideoRenderer.mm

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, 8 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 "RTCOpenGLVideoRenderer.h" 11 #import "RTCOpenGLVideoRenderer.h"
12 12
13 #include <string.h>
14
15 #include "webrtc/base/scoped_ptr.h"
16
17 #if TARGET_OS_IPHONE 13 #if TARGET_OS_IPHONE
18 #import <OpenGLES/ES3/gl.h> 14 #import <OpenGLES/ES3/gl.h>
19 #else 15 #else
20 #import <OpenGL/gl3.h> 16 #import <OpenGL/gl3.h>
21 #endif 17 #endif
18 #include <string.h>
22 19
23 #import "RTCVideoFrame.h" 20 #import "WebRTC/RTCVideoFrame.h"
21
22 #include "webrtc/base/scoped_ptr.h"
24 23
25 // TODO(tkchin): check and log openGL errors. Methods here return BOOLs in 24 // TODO(tkchin): check and log openGL errors. Methods here return BOOLs in
26 // anticipation of that happening in the future. 25 // anticipation of that happening in the future.
27 26
28 #if TARGET_OS_IPHONE 27 #if TARGET_OS_IPHONE
29 #define RTC_PIXEL_FORMAT GL_LUMINANCE 28 #define RTC_PIXEL_FORMAT GL_LUMINANCE
30 #define SHADER_VERSION 29 #define SHADER_VERSION
31 #define VERTEX_SHADER_IN "attribute" 30 #define VERTEX_SHADER_IN "attribute"
32 #define VERTEX_SHADER_OUT "varying" 31 #define VERTEX_SHADER_OUT "varying"
33 #define FRAGMENT_SHADER_IN "varying" 32 #define FRAGMENT_SHADER_IN "varying"
(...skipping 442 matching lines...) Expand 10 before | Expand all | Expand 10 after
476 GL_FLOAT, 475 GL_FLOAT,
477 GL_FALSE, 476 GL_FALSE,
478 4 * sizeof(GLfloat), 477 4 * sizeof(GLfloat),
479 (void *)(2 * sizeof(GLfloat))); 478 (void *)(2 * sizeof(GLfloat)));
480 glEnableVertexAttribArray(_texcoord); 479 glEnableVertexAttribArray(_texcoord);
481 480
482 return YES; 481 return YES;
483 } 482 }
484 483
485 @end 484 @end
OLDNEW
« no previous file with comments | « webrtc/sdk/objc/Framework/Classes/RTCOpenGLVideoRenderer.h ('k') | webrtc/sdk/objc/Framework/Classes/RTCPeerConnection.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698