1 /* 2 * Copyright (c) 2013 The WebRTC project authors. All Rights Reserved. 3 * 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 6 * tree. An additional intellectual property rights grant can be found 7 * in the file PATENTS. All contributing project authors may 8 * be found in the AUTHORS file in the root of the source tree. 9 */ 10 11 #ifndef WEBRTC_MODULES_VIDEO_RENDER_IOS_RENDER_VIEW_H_ 12 #define WEBRTC_MODULES_VIDEO_RENDER_IOS_RENDER_VIEW_H_ 13 14 #import <UIKit/UIKit.h> 15 #import <QuartzCore/QuartzCore.h> 16 17 #include "webrtc/modules/video_render/ios/open_gles20.h" 18 19 @interface VideoRenderIosView : UIView 20 21 - (BOOL)createContext; 22 - (BOOL)presentFramebuffer; 23 - (BOOL)renderFrame:(webrtc::VideoFrame*)frameToRender; 24 - (BOOL)setCoordinatesForZOrder:(const float)zOrder 25 Left:(const float)left 26 Top:(const float)top 27 Right:(const float)right 28 Bottom:(const float)bottom; 29 30 @property(nonatomic, retain) EAGLContext* context; 31 32 @end 33 34 #endif // WEBRTC_MODULES_VIDEO_RENDER_IOS_RENDER_VIEW_H_ 35