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

Unified Diff: webrtc/sdk/objc/Framework/Classes/Video/RTCDefaultShader.h

Issue 2869143002: iOS: Add interface for injecting custom shaders (Closed)
Patch Set: Rebase 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/Classes/Video/RTCDefaultShader.h
diff --git a/webrtc/sdk/objc/Framework/Classes/Video/RTCNV12TextureCache.h b/webrtc/sdk/objc/Framework/Classes/Video/RTCDefaultShader.h
similarity index 58%
copy from webrtc/sdk/objc/Framework/Classes/Video/RTCNV12TextureCache.h
copy to webrtc/sdk/objc/Framework/Classes/Video/RTCDefaultShader.h
index 0aa7a5718177b01678622b550cc001fdb290bd31..ed5125e2e8e5c4e36493e76785a36dfcb10ecc0f 100644
--- a/webrtc/sdk/objc/Framework/Classes/Video/RTCNV12TextureCache.h
+++ b/webrtc/sdk/objc/Framework/Classes/Video/RTCDefaultShader.h
@@ -8,22 +8,15 @@
* be found in the AUTHORS file in the root of the source tree.
*/
-#import <GLKit/GLKit.h>
-
-@class RTCVideoFrame;
+#import "WebRTC/RTCVideoViewShading.h"
NS_ASSUME_NONNULL_BEGIN
-@interface RTCNV12TextureCache : NSObject
-
-@property(nonatomic, readonly) GLuint yTexture;
-@property(nonatomic, readonly) GLuint uvTexture;
-
-- (nullable instancetype)initWithContext:(EAGLContext *)context;
-
-- (BOOL)uploadFrameToTextures:(RTCVideoFrame *)frame;
-
-- (void)releaseTextures;
+/** Default RTCVideoViewShading that will be used in RTCNSGLVideoView and
+ * RTCEAGLVideoView if no external shader is specified. This shader will render
+ * the video in a rectangle without any color or geometric transformations.
+ */
+@interface RTCDefaultShader : NSObject<RTCVideoViewShading>
@end
« no previous file with comments | « webrtc/sdk/objc/Framework/Classes/UI/RTCNSGLVideoView.m ('k') | webrtc/sdk/objc/Framework/Classes/Video/RTCDefaultShader.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698