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:
@ -125,7 +125,6 @@ I420VideoFrame* VideoRenderFrames::FrameToRender() {
|
||||
int32_t VideoRenderFrames::ReturnFrame(I420VideoFrame* old_frame) {
|
||||
// No need to reuse texture frames because they do not allocate memory.
|
||||
if (old_frame->native_handle() == NULL) {
|
||||
old_frame->ResetSize();
|
||||
old_frame->set_timestamp(0);
|
||||
old_frame->set_render_time_ms(0);
|
||||
empty_frames_.push_back(old_frame);
|
||||
|
||||
Reference in New Issue
Block a user