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

Unified Diff: webrtc/modules/video_render/test/testAPI/testAPI.cc

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/test/testAPI/testAPI.cc
diff --git a/webrtc/modules/video_render/test/testAPI/testAPI.cc b/webrtc/modules/video_render/test/testAPI/testAPI.cc
index cea2f6b56fe0bc33d99c812ea5543621218ee45b..8557e7029e7aa1439ec722fc9067a58fad219795 100644
--- a/webrtc/modules/video_render/test/testAPI/testAPI.cc
+++ b/webrtc/modules/video_render/test/testAPI/testAPI.cc
@@ -276,9 +276,12 @@ void GetTestVideoFrame(VideoFrame* frame, uint8_t startColor) {
// changing color
static uint8_t color = startColor;
- memset(frame->buffer(kYPlane), color, frame->allocated_size(kYPlane));
- memset(frame->buffer(kUPlane), color, frame->allocated_size(kUPlane));
- memset(frame->buffer(kVPlane), color, frame->allocated_size(kVPlane));
+ memset(frame->video_frame_buffer()->MutableDataY(), color,
+ frame->allocated_size(kYPlane));
+ memset(frame->video_frame_buffer()->MutableDataU(), color,
+ frame->allocated_size(kUPlane));
+ memset(frame->video_frame_buffer()->MutableDataV(), color,
+ frame->allocated_size(kVPlane));
++color;
}

Powered by Google App Engine
This is Rietveld 408576698