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

Unified Diff: webrtc/api/video/video_frame_buffer.h

Issue 2906053002: Update I420Buffer to new VideoFrameBuffer interface (Closed)
Patch Set: Make const versions of Get functions Created 3 years, 7 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/api/video/video_frame.h ('k') | webrtc/api/video/video_frame_buffer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/api/video/video_frame_buffer.h
diff --git a/webrtc/api/video/video_frame_buffer.h b/webrtc/api/video/video_frame_buffer.h
index 13005afc8a57b5370e3fce5bd88717e51e970f66..fa711d85e1b368873ccf69b8c9e3b094ec6948da 100644
--- a/webrtc/api/video/video_frame_buffer.h
+++ b/webrtc/api/video/video_frame_buffer.h
@@ -63,8 +63,12 @@ class VideoFrameBuffer : public rtc::RefCountInterface {
// These functions should only be called if type() is of the correct type.
// Calling with a different type will result in a crash.
+ // TODO(magjed): Return raw pointers for GetI420 once deprecated interface is
+ // removed.
rtc::scoped_refptr<I420BufferInterface> GetI420();
- rtc::scoped_refptr<I444BufferInterface> GetI444();
+ rtc::scoped_refptr<const I420BufferInterface> GetI420() const;
+ I444BufferInterface* GetI444();
+ const I444BufferInterface* GetI444() const;
// Deprecated - use ToI420() first instead.
// Returns pointer to the pixel data for a given plane. The memory is owned by
« no previous file with comments | « webrtc/api/video/video_frame.h ('k') | webrtc/api/video/video_frame_buffer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698