Index: webrtc/common_video/video_frame_buffer.cc |
diff --git a/webrtc/common_video/video_frame_buffer.cc b/webrtc/common_video/video_frame_buffer.cc |
index 4646bf491f9b745298c9fef6b29d9575b1f15f56..0322dd1fd506027d4529464871ffbc0dca3393d1 100644 |
--- a/webrtc/common_video/video_frame_buffer.cc |
+++ b/webrtc/common_video/video_frame_buffer.cc |
@@ -30,6 +30,10 @@ NativeHandleBuffer::NativeHandleBuffer(void* native_handle, |
RTC_DCHECK_GT(height, 0); |
} |
+VideoFrameBuffer::Type NativeHandleBuffer::type() const { |
+ return Type::kNative; |
+} |
+ |
int NativeHandleBuffer::width() const { |
return width_; |
} |
@@ -92,6 +96,10 @@ WrappedI420Buffer::~WrappedI420Buffer() { |
no_longer_used_cb_(); |
} |
+VideoFrameBuffer::Type WrappedI420Buffer::type() const { |
+ return Type::kI420; |
+} |
+ |
int WrappedI420Buffer::width() const { |
return width_; |
} |
@@ -120,13 +128,4 @@ int WrappedI420Buffer::StrideV() const { |
return v_stride_; |
} |
-void* WrappedI420Buffer::native_handle() const { |
- return nullptr; |
-} |
- |
-rtc::scoped_refptr<VideoFrameBuffer> WrappedI420Buffer::NativeToI420Buffer() { |
- RTC_NOTREACHED(); |
- return nullptr; |
-} |
- |
} // namespace webrtc |