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

Unified Diff: webrtc/video_frame.h

Issue 2076113002: Revert of Delete unused and almost unused frame-related methods. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 4 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/sdk/objc/Framework/Classes/RTCVideoFrame.mm ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/video_frame.h
diff --git a/webrtc/video_frame.h b/webrtc/video_frame.h
index 0f2b9a68afd1a15691ffefccee2377d8902cddb9..b9ba69bb05283d031c63bcadf89d66fd47a805e2 100644
--- a/webrtc/video_frame.h
+++ b/webrtc/video_frame.h
@@ -121,6 +121,14 @@
const rtc::scoped_refptr<webrtc::VideoFrameBuffer>& video_frame_buffer()
const;
+ // Set the underlying buffer.
+ void set_video_frame_buffer(
+ const rtc::scoped_refptr<webrtc::VideoFrameBuffer>& buffer);
+
+ // Convert native-handle frame to memory-backed I420 frame. Should not be
+ // called on a non-native-handle frame.
+ VideoFrame ConvertNativeToI420Frame() const;
+
// Return true if the frame is stored in a texture.
bool is_texture() {
return video_frame_buffer() &&
« no previous file with comments | « webrtc/sdk/objc/Framework/Classes/RTCVideoFrame.mm ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698