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

Unified Diff: media/base/video_frame.h

Issue 2640153004: Add mailbox-based Mojo VideoFrame variant. (Closed)
Patch Set: Created 3 years, 11 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 | « no previous file | media/base/video_frame.cc » ('j') | media/base/video_frame.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/base/video_frame.h
diff --git a/media/base/video_frame.h b/media/base/video_frame.h
index 7ed1162b7a4147956f0d01d95c971ce7bbf4a0ab..47923be7c8662be0ac32d262e5c71f7ad8df9542 100644
--- a/media/base/video_frame.h
+++ b/media/base/video_frame.h
@@ -355,6 +355,11 @@ class MEDIA_EXPORT VideoFrame : public base::RefCountedThreadSafe<VideoFrame> {
CVPixelBufferRef cv_pixel_buffer() const;
#endif
+ // Sets the mailbox release callback.
+ // The callback may be run from ANY THREAD, and so it is up to the client to
+ // ensure thread safety.
+ void SetReleaseMailboxCB(const ReleaseMailboxCB& release_mailbox_cb);
sandersd (OOO until July 31) 2017/01/19 19:40:48 Option B is that the VideoFrame converter needs to
xhwang 2017/01/25 18:25:09 This is fine IMHO. VideoFrame is already a mix of
sandersd (OOO until July 31) 2017/01/26 23:49:05 Acknowledged.
+
// Adds a callback to be run when the VideoFrame is about to be destroyed.
// The callback may be run from ANY THREAD, and so it is up to the client to
// ensure thread safety. Although read-only access to the members of this
« no previous file with comments | « no previous file | media/base/video_frame.cc » ('j') | media/base/video_frame.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698