Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(413)

Unified Diff: webrtc/common_video/video_frame_buffer.cc

Issue 2924263002: Revert of Add support for multiple pixel formats in VideoFrameBuffer (Closed)
Patch Set: Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « webrtc/common_video/include/video_frame_buffer.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 0322dd1fd506027d4529464871ffbc0dca3393d1..4646bf491f9b745298c9fef6b29d9575b1f15f56 100644
--- a/webrtc/common_video/video_frame_buffer.cc
+++ b/webrtc/common_video/video_frame_buffer.cc
@@ -28,10 +28,6 @@
RTC_DCHECK(native_handle != nullptr);
RTC_DCHECK_GT(width, 0);
RTC_DCHECK_GT(height, 0);
-}
-
-VideoFrameBuffer::Type NativeHandleBuffer::type() const {
- return Type::kNative;
}
int NativeHandleBuffer::width() const {
@@ -96,10 +92,6 @@
no_longer_used_cb_();
}
-VideoFrameBuffer::Type WrappedI420Buffer::type() const {
- return Type::kI420;
-}
-
int WrappedI420Buffer::width() const {
return width_;
}
@@ -128,4 +120,13 @@
return v_stride_;
}
+void* WrappedI420Buffer::native_handle() const {
+ return nullptr;
+}
+
+rtc::scoped_refptr<VideoFrameBuffer> WrappedI420Buffer::NativeToI420Buffer() {
+ RTC_NOTREACHED();
+ return nullptr;
+}
+
} // namespace webrtc
« no previous file with comments | « webrtc/common_video/include/video_frame_buffer.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698