Delete webrtc::VideoFrame::CreateEmptyFrame.

BUG=webrtc:5682

Review-Url: https://codereview.webrtc.org/2378003002
Cr-Commit-Position: refs/heads/master@{#14512}
This commit is contained in:
nisse
2016-10-04 23:27:30 -07:00
committed by Commit bot
parent 91e1a1abef
commit f122a85287
8 changed files with 26 additions and 97 deletions

View File

@ -74,9 +74,8 @@ class EmptyFrameGenerator : public FrameGenerator {
public:
EmptyFrameGenerator(int width, int height) : width_(width), height_(height) {}
VideoFrame* NextFrame() override {
frame_.reset(new VideoFrame());
frame_->CreateEmptyFrame(width_, height_, width_, (width_ + 1) / 2,
(width_ + 1) / 2);
frame_.reset(new VideoFrame(I420Buffer::Create(width_, height_),
webrtc::kVideoRotation_0, 0));
return frame_.get();
}