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

Unified Diff: media/mojo/interfaces/video_decoder.mojom

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/mojo/interfaces/media_types.mojom ('k') | media/mojo/services/mojo_video_decoder_service.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/mojo/interfaces/video_decoder.mojom
diff --git a/media/mojo/interfaces/video_decoder.mojom b/media/mojo/interfaces/video_decoder.mojom
index 42261246c5b407b853fd05b18791912a7bf81b87..cade79cb74b5e3ff8bee7d55f6ba83a384bca54c 100644
--- a/media/mojo/interfaces/video_decoder.mojom
+++ b/media/mojo/interfaces/video_decoder.mojom
@@ -4,6 +4,7 @@
module media.mojom;
+import "gpu/ipc/common/sync_token.mojom";
import "media/mojo/interfaces/media_types.mojom";
import "mojo/common/unguessable_token.mojom";
@@ -65,9 +66,18 @@ interface VideoDecoder {
// aborted before executing the callback. This must not be called while there
// is a pending Initialize() request.
Reset() => ();
+
+ // Inform the decoder that the client is finished with a frame.
+ // |release_sync_token| is a (possibly empty) sync point after which the
+ // frame's backing textures will be safe to overwrite.
+ OnReleaseMailbox(mojo.common.mojom.UnguessableToken release_token,
+ gpu.mojom.SyncToken release_sync_token);
};
interface VideoDecoderClient {
- // Output a decoded frame. Frames must be output in presentation order.
- OnVideoFrameDecoded(VideoFrame frame);
+ // Output a decoded frame. Frames must be output in presentation order. If
+ // |release_token| is provided, the client should call OnReleaseMailbox() when
+ // it is finished with the frame.
+ OnVideoFrameDecoded(VideoFrame frame,
+ mojo.common.mojom.UnguessableToken? release_token);
};
« no previous file with comments | « media/mojo/interfaces/media_types.mojom ('k') | media/mojo/services/mojo_video_decoder_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698