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

Unified Diff: media/base/video_frame.h

Issue 604743005: VideoCapture: Remove deep frame copy in the border to libJingle (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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
Index: media/base/video_frame.h
diff --git a/media/base/video_frame.h b/media/base/video_frame.h
index 928550cbd0724b2624f164970d8763e81f9207e6..a9940fdc9bdc30e02aa3bc02a6a97c93e61c1605 100644
--- a/media/base/video_frame.h
+++ b/media/base/video_frame.h
@@ -267,6 +267,10 @@ class MEDIA_EXPORT VideoFrame : public base::RefCountedThreadSafe<VideoFrame> {
// VideoFrame object and must not be freed by the caller.
uint8* data(size_t plane) const;
+ // Returns pointer to the visible region specified by visible_rect(). The
+ // memory is owned by VideoFrame object and must not be freed by the caller.
+ uint8* visible_data(size_t plane) const;
tommi (sloooow) - chröme 2014/09/25 20:06:48 const method returning a pointer to a non-const bu
magjed_chromium 2014/09/25 20:52:08 Yes, agree. I followed the convention in this file
+
// Returns the mailbox holder of the native texture wrapped by this frame.
// Only valid to call if this is a NATIVE_TEXTURE frame. Before using the
// mailbox, the caller must wait for the included sync point.

Powered by Google App Engine
This is Rietveld 408576698