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

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: tommi@s comments Created 6 years, 2 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..1eb974d1928f58709198f5a91a5f1a71e465f7ef 100644
--- a/media/base/video_frame.h
+++ b/media/base/video_frame.h
@@ -265,7 +265,13 @@ class MEDIA_EXPORT VideoFrame : public base::RefCountedThreadSafe<VideoFrame> {
// Returns pointer to the buffer for a given plane. The memory is owned by
// VideoFrame object and must not be freed by the caller.
- uint8* data(size_t plane) const;
+ const uint8* data(size_t plane) const;
+ uint8* data(size_t plane);
+
+ // 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.
+ const uint8* visible_data(size_t plane) const;
+ uint8* visible_data(size_t plane);
// 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

Powered by Google App Engine
This is Rietveld 408576698