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

Unified Diff: media/base/video_frame.cc

Issue 2640153004: Add mailbox-based Mojo VideoFrame variant. (Closed)
Patch Set: Rebase. Created 3 years, 10 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 | « media/base/video_frame.h ('k') | media/mojo/clients/mojo_video_decoder.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/base/video_frame.cc
diff --git a/media/base/video_frame.cc b/media/base/video_frame.cc
index d2808356111d86c56b19644a2f6a51d602c4ca2b..6e719b385a0ab9ab7221b6d775f586db7f65fa9d 100644
--- a/media/base/video_frame.cc
+++ b/media/base/video_frame.cc
@@ -768,6 +768,13 @@ CVPixelBufferRef VideoFrame::cv_pixel_buffer() const {
}
#endif
+void VideoFrame::SetReleaseMailboxCB(
+ const ReleaseMailboxCB& release_mailbox_cb) {
+ DCHECK(!release_mailbox_cb.is_null());
+ DCHECK(mailbox_holders_release_cb_.is_null());
+ mailbox_holders_release_cb_ = release_mailbox_cb;
+}
+
void VideoFrame::AddDestructionObserver(const base::Closure& callback) {
DCHECK(!callback.is_null());
done_callbacks_.push_back(callback);
« no previous file with comments | « media/base/video_frame.h ('k') | media/mojo/clients/mojo_video_decoder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698