Index: webrtc/media/engine/webrtcvideoframe.cc |
diff --git a/webrtc/media/engine/webrtcvideoframe.cc b/webrtc/media/engine/webrtcvideoframe.cc |
index f77ca70fa3d7537c24e76045c43ee121df4b5d44..4f89c8b85d100562d14cb891c6b11e8f67f247d1 100644 |
--- a/webrtc/media/engine/webrtcvideoframe.cc |
+++ b/webrtc/media/engine/webrtcvideoframe.cc |
@@ -65,20 +65,6 @@ bool WebRtcVideoFrame::Init(const CapturedFrame* frame, int dw, int dh, |
frame->rotation, apply_rotation); |
} |
-// TODO(nisse): Deprecated, delete as soon as Chrome is updated. |
-bool WebRtcVideoFrame::InitToBlack(int w, int h, |
- int64_t time_stamp_ns) { |
- rtc::scoped_refptr<webrtc::I420Buffer> buffer( |
- new rtc::RefCountedObject<webrtc::I420Buffer>(w, h)); |
- buffer->SetToBlack(); |
- |
- video_frame_buffer_ = new rtc::RefCountedObject<webrtc::I420Buffer>(w, h); |
- SetTimeStamp(time_stamp_ns); |
- rotation_ = webrtc::kVideoRotation_0; |
- |
- return true; |
-} |
- |
int WebRtcVideoFrame::width() const { |
return video_frame_buffer_ ? video_frame_buffer_->width() : 0; |
} |