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

Unified Diff: webrtc/api/objc/RTCVideoRenderer.h

Issue 1542473003: Move Objective-C video renderers to webrtc/api/objc. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@updateI420Frame
Patch Set: Created 5 years 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/api/objc/RTCVideoRenderer.h
diff --git a/webrtc/base/objc/NSString+StdString.h b/webrtc/api/objc/RTCVideoRenderer.h
similarity index 67%
copy from webrtc/base/objc/NSString+StdString.h
copy to webrtc/api/objc/RTCVideoRenderer.h
index 532032b3fca66977290d612f1e998c205cceef00..bd423873e6ab86ec26bf4a5617d1d338102bbe33 100644
--- a/webrtc/base/objc/NSString+StdString.h
+++ b/webrtc/api/objc/RTCVideoRenderer.h
@@ -9,16 +9,21 @@
*/
#import <Foundation/Foundation.h>
-
-#include <string>
+#if TARGET_OS_IPHONE
+#import <UIKit/UIKit.h>
+#endif
NS_ASSUME_NONNULL_BEGIN
-@interface NSString (StdString)
+@class RTCI420Frame;
+
+@protocol RTCVideoRenderer<NSObject>
tkchin_webrtc 2015/12/21 12:57:50 space before <
hjon 2015/12/21 20:01:44 Done.
-@property(nonatomic, readonly) std::string stdString;
+/** The size of the frame. */
+- (void)setSize:(CGSize)size;
-+ (std::string)stdStringForString:(NSString *)nsString;
+/** The frame to be displayed. */
+- (void)renderFrame:(RTCI420Frame *)frame;
@end
« webrtc/api/objc/RTCOpenGLVideoRenderer.h ('K') | « webrtc/api/objc/RTCOpenGLVideoRenderer.mm ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698