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

Unified Diff: webrtc/api/objc/RTCEAGLVideoView.m

Issue 1853503003: Add CoreVideoFrameBuffer. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Add guards Created 4 years, 9 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
« no previous file with comments | « no previous file | webrtc/api/objc/RTCVideoFrame.h » ('j') | webrtc/api/objc/RTCVideoFrame.mm » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/api/objc/RTCEAGLVideoView.m
diff --git a/webrtc/api/objc/RTCEAGLVideoView.m b/webrtc/api/objc/RTCEAGLVideoView.m
index e664ede455492c339180c406eeeb9ff90b06d831..58fd108c4c1e04b1a32d9be55c23ffdc72b2af77 100644
--- a/webrtc/api/objc/RTCEAGLVideoView.m
+++ b/webrtc/api/objc/RTCEAGLVideoView.m
@@ -8,12 +8,12 @@
* be found in the AUTHORS file in the root of the source tree.
*/
-#import "RTCEAGLVideoView.h"
+#import "webrtc/api/objc/RTCEAGLVideoView.h"
#import <GLKit/GLKit.h>
-#import "RTCVideoFrame.h"
-#import "RTCOpenGLVideoRenderer.h"
+#import "webrtc/api/objc/RTCOpenGLVideoRenderer.h"
+#import "webrtc/api/objc/RTCVideoFrame.h"
// RTCDisplayLinkTimer wraps a CADisplayLink and is set to fire every two screen
// refreshes, which should be 30fps. We wrap the display link in order to avoid
@@ -210,6 +210,10 @@
}
- (void)renderFrame:(RTCVideoFrame *)frame {
+ // Generate the i420 frame on video send thread instead of main thread.
+ // TODO(tkchin): Remove this once RTCEAGLVideoView supports uploading
+ // CVPixelBuffer textures.
+ [frame convertBufferIfNeeded];
self.videoFrame = frame;
}
« no previous file with comments | « no previous file | webrtc/api/objc/RTCVideoFrame.h » ('j') | webrtc/api/objc/RTCVideoFrame.mm » ('J')

Powered by Google App Engine
This is Rietveld 408576698