Index: webrtc/api/video/video_frame.cc |
diff --git a/webrtc/api/video/video_frame.cc b/webrtc/api/video/video_frame.cc |
index bd9c72c35272b6e9d3f9efb14ff005ad9c47297e..4928922672781ba943322f62d5c213cd7148101c 100644 |
--- a/webrtc/api/video/video_frame.cc |
+++ b/webrtc/api/video/video_frame.cc |
@@ -51,6 +51,10 @@ int VideoFrame::height() const { |
return video_frame_buffer_ ? video_frame_buffer_->height() : 0; |
} |
+int VideoFrame::size() const { |
+ return width() * height(); |
+} |
+ |
rtc::scoped_refptr<VideoFrameBuffer> VideoFrame::video_frame_buffer() const { |
return video_frame_buffer_; |
} |