I420VideoFrame: Remove functions set_width, set_height, and ResetSize

The functions set_width, set_height, and ResetSize in I420VideoFrame are not needed and just add complexity.

R=perkj@webrtc.org, stefan@webrtc.org, tommi@webrtc.org

Review URL: https://webrtc-codereview.appspot.com/39939004

Cr-Commit-Position: refs/heads/master@{#8434}
git-svn-id: http://webrtc.googlecode.com/svn/trunk@8434 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
magjed@webrtc.org
2015-02-19 15:34:55 +00:00
parent be96bfb179
commit be29b3b4c6
13 changed files with 20 additions and 84 deletions

View File

@ -71,12 +71,12 @@ MATCHER_P(MatchesVp8StreamInfo, expected, "") {
class EmptyFrameGenerator : public FrameGenerator {
public:
virtual I420VideoFrame* NextFrame() OVERRIDE {
frame_.ResetSize();
return &frame_;
frame_.reset(new I420VideoFrame());
return frame_.get();
}
private:
I420VideoFrame frame_;
scoped_ptr<I420VideoFrame> frame_;
};
class PacketizationCallback : public VCMPacketizationCallback {