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

Unified Diff: webrtc/common_video/include/video_frame_buffer.h

Issue 2029273004: New static method I420Buffer::SetToBlack. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 4 years, 7 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/common_video/video_frame_buffer.cc » ('j') | webrtc/media/base/fakevideorenderer.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/common_video/include/video_frame_buffer.h
diff --git a/webrtc/common_video/include/video_frame_buffer.h b/webrtc/common_video/include/video_frame_buffer.h
index 984bd50d674e78d7e7aedfc252fcfef8810b6963..238c213e63ad4d694d3baf7fbdf88e8d337ae89d 100644
--- a/webrtc/common_video/include/video_frame_buffer.h
+++ b/webrtc/common_video/include/video_frame_buffer.h
@@ -109,6 +109,10 @@ class I420Buffer : public VideoFrameBuffer {
static rtc::scoped_refptr<I420Buffer> Copy(
const rtc::scoped_refptr<VideoFrameBuffer>& buffer);
+ // Sets the frame buffer to all black.
+ static void SetToBlack(
+ const rtc::scoped_refptr<VideoFrameBuffer>& buffer);
perkj_webrtc 2016/06/02 13:20:04 Why not make a member and put after InitializeData
nisse-webrtc 2016/06/03 14:22:50 Done.
+
protected:
~I420Buffer() override;
« no previous file with comments | « no previous file | webrtc/common_video/video_frame_buffer.cc » ('j') | webrtc/media/base/fakevideorenderer.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698