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

Unified Diff: content/renderer/media/webrtc/video_destination_handler.cc

Issue 1227383003: Remove memset from VideoFrame and mark buffer as unpoisoned (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: dalecurtis@ comments. Created 5 years, 5 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: content/renderer/media/webrtc/video_destination_handler.cc
diff --git a/content/renderer/media/webrtc/video_destination_handler.cc b/content/renderer/media/webrtc/video_destination_handler.cc
index d80f3e7cdc1009317be3d3f1d921c4ade3780e09..f43f6467a4dfbe010b901bdd879dc1c5c8bdfcc9 100644
--- a/content/renderer/media/webrtc/video_destination_handler.cc
+++ b/content/renderer/media/webrtc/video_destination_handler.cc
@@ -144,9 +144,9 @@ void PpFrameWriter::PutFrame(PPB_ImageData_Impl* image_data,
const base::TimeDelta timestamp = base::TimeDelta::FromMicroseconds(
time_stamp_ns / base::Time::kNanosecondsPerMicrosecond);
- scoped_refptr<media::VideoFrame> new_frame =
- frame_pool_.CreateFrame(media::VideoFrame::YV12, frame_size,
- gfx::Rect(frame_size), frame_size, timestamp);
+ scoped_refptr<media::VideoFrame> new_frame = frame_pool_.CreateFrame(
+ media::VideoFrame::YV12, frame_size, gfx::Rect(frame_size), frame_size,
+ timestamp, false);
libyuv::ARGBToI420(src_data,
src_stride,
« no previous file with comments | « no previous file | content/renderer/media/webrtc/webrtc_video_capturer_adapter.cc » ('j') | media/base/video_frame_pool.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698