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

Unified Diff: webrtc/sdk/objc/Framework/Headers/WebRTC/RTCEAGLVideoView.h

Issue 2869143002: iOS: Add interface for injecting custom shaders (Closed)
Patch Set: Simplify previous delegate protocol 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 side-by-side diff with in-line comments
Download patch
Index: webrtc/sdk/objc/Framework/Headers/WebRTC/RTCEAGLVideoView.h
diff --git a/webrtc/sdk/objc/Framework/Headers/WebRTC/RTCEAGLVideoView.h b/webrtc/sdk/objc/Framework/Headers/WebRTC/RTCEAGLVideoView.h
index 5f8d73bc8d657991923aa0628246c5f68117cc6c..6ca2f06f666c0c3ae979704c082540b38c112649 100644
--- a/webrtc/sdk/objc/Framework/Headers/WebRTC/RTCEAGLVideoView.h
+++ b/webrtc/sdk/objc/Framework/Headers/WebRTC/RTCEAGLVideoView.h
@@ -13,6 +13,7 @@
#import <WebRTC/RTCMacros.h>
#import <WebRTC/RTCVideoRenderer.h>
+#import <WebRTC/RTCVideoViewShader.h>
NS_ASSUME_NONNULL_BEGIN
@@ -26,13 +27,19 @@ RTC_EXPORT
/**
* RTCEAGLVideoView is an RTCVideoRenderer which renders video frames in its
- * bounds using OpenGLES 2.0.
+ * bounds using OpenGLES 2.0 or OpenGLES 3.0.
*/
RTC_EXPORT
@interface RTCEAGLVideoView : UIView <RTCVideoRenderer>
@property(nonatomic, weak) id<RTCEAGLVideoViewDelegate> delegate;
+- (instancetype)initWithFrame:(CGRect)frame
+ shaderDelegate:(id<RTCVideoViewShader>)shaderDelegate NS_DESIGNATED_INITIALIZER;
+
+- (instancetype)initWithCoder:(NSCoder *)aDecoder
+ shaderDelegate:(id<RTCVideoViewShader>)shaderDelegate NS_DESIGNATED_INITIALIZER;
+
@end
NS_ASSUME_NONNULL_END

Powered by Google App Engine
This is Rietveld 408576698