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

Unified Diff: media/base/video_frame.cc

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
Index: media/base/video_frame.cc
diff --git a/media/base/video_frame.cc b/media/base/video_frame.cc
index d2808356111d86c56b19644a2f6a51d602c4ca2b..bbb94a9c5983d80e34a8024c35d7be4017c07ea7 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_ = std::move(release_mailbox_cb);
xhwang 2017/01/25 18:25:09 OOC nit, not related to your CL: do we need to wor
sandersd (OOO until July 31) 2017/01/26 23:49:05 I suppose we do. I added a warning to the header;
+}
+
void VideoFrame::AddDestructionObserver(const base::Closure& callback) {
DCHECK(!callback.is_null());
done_callbacks_.push_back(callback);

Powered by Google App Engine
This is Rietveld 408576698