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

Unified Diff: webrtc/modules/video_render/ios/open_gles20.mm

Issue 1900673002: Delete webrtc::VideoFrame methods buffer and stride. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Update H.264 video_toolbox encoder. Created 4 years, 8 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/modules/video_render/ios/open_gles20.mm
diff --git a/webrtc/modules/video_render/ios/open_gles20.mm b/webrtc/modules/video_render/ios/open_gles20.mm
index d1735280f26e2a1ab4a8aa7641c3debdef127654..01737ee2bbd6d78208220c4da5b2713cdc056028 100644
--- a/webrtc/modules/video_render/ios/open_gles20.mm
+++ b/webrtc/modules/video_render/ios/open_gles20.mm
@@ -316,15 +316,19 @@ void OpenGles20::UpdateTextures(const VideoFrame& frame) {
glActiveTexture(GL_TEXTURE0);
glBindTexture(GL_TEXTURE_2D, texture_ids_[0]);
- GlTexSubImage2D(width, height, frame.stride(kYPlane), frame.buffer(kYPlane));
+ GlTexSubImage2D(width, height,
+ frame.video_frame_buffer()->StrideY(),
+ frame.video_frame_buffer()->DataY());
glActiveTexture(GL_TEXTURE1);
glBindTexture(GL_TEXTURE_2D, texture_ids_[1]);
- GlTexSubImage2D(
- width / 2, height / 2, frame.stride(kUPlane), frame.buffer(kUPlane));
+ GlTexSubImage2D(width / 2, height / 2,
+ frame.video_frame_buffer()->StrideU(),
+ frame.video_frame_buffer()->DataU());
glActiveTexture(GL_TEXTURE2);
glBindTexture(GL_TEXTURE_2D, texture_ids_[2]);
- GlTexSubImage2D(
- width / 2, height / 2, frame.stride(kVPlane), frame.buffer(kVPlane));
+ GlTexSubImage2D(width / 2, height / 2,
+ frame.video_frame_buffer()->StrideV(),
+ frame.video_frame_buffer()->DataV());
}

Powered by Google App Engine
This is Rietveld 408576698