OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2013 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2013 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 #if !defined(__has_feature) || !__has_feature(objc_arc) | 11 #if !defined(__has_feature) || !__has_feature(objc_arc) |
12 #error "This file requires ARC support." | 12 #error "This file requires ARC support." |
13 #endif | 13 #endif |
14 | 14 |
15 #include "webrtc/modules/video_render/ios/video_render_ios_view.h" | 15 #include "webrtc/modules/video_render/ios/video_render_ios_view.h" |
16 #include "webrtc/system_wrappers/interface/trace.h" | 16 #include "webrtc/system_wrappers/include/trace.h" |
17 | 17 |
18 using namespace webrtc; | 18 using namespace webrtc; |
19 | 19 |
20 @implementation VideoRenderIosView { | 20 @implementation VideoRenderIosView { |
21 EAGLContext* _context; | 21 EAGLContext* _context; |
22 rtc::scoped_ptr<webrtc::OpenGles20> _gles_renderer20; | 22 rtc::scoped_ptr<webrtc::OpenGles20> _gles_renderer20; |
23 int _frameBufferWidth; | 23 int _frameBufferWidth; |
24 int _frameBufferHeight; | 24 int _frameBufferHeight; |
25 unsigned int _defaultFrameBuffer; | 25 unsigned int _defaultFrameBuffer; |
26 unsigned int _colorRenderBuffer; | 26 unsigned int _colorRenderBuffer; |
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
152 | 152 |
153 - (BOOL)setCoordinatesForZOrder:(const float)zOrder | 153 - (BOOL)setCoordinatesForZOrder:(const float)zOrder |
154 Left:(const float)left | 154 Left:(const float)left |
155 Top:(const float)top | 155 Top:(const float)top |
156 Right:(const float)right | 156 Right:(const float)right |
157 Bottom:(const float)bottom { | 157 Bottom:(const float)bottom { |
158 return _gles_renderer20->SetCoordinates(zOrder, left, top, right, bottom); | 158 return _gles_renderer20->SetCoordinates(zOrder, left, top, right, bottom); |
159 } | 159 } |
160 | 160 |
161 @end | 161 @end |
OLD | NEW |