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

Unified Diff: media/mojo/clients/mojo_video_decoder.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
Index: media/mojo/clients/mojo_video_decoder.h
diff --git a/media/mojo/clients/mojo_video_decoder.h b/media/mojo/clients/mojo_video_decoder.h
index bb13271206bedef4e8e009d72848cdd327a994eb..56f0b66d0047af2beb03b3927fef3b510d7333c3 100644
--- a/media/mojo/clients/mojo_video_decoder.h
+++ b/media/mojo/clients/mojo_video_decoder.h
@@ -47,7 +47,8 @@ class MojoVideoDecoder final : public VideoDecoder,
int GetMaxDecodeRequests() const final;
// mojom::VideoDecoderClient implementation.
- void OnVideoFrameDecoded(mojom::VideoFramePtr frame) final;
+ void OnVideoFrameDecoded(mojom::VideoFramePtr frame,
+ const OnVideoFrameDecodedCallback& callback) final;
private:
void OnInitializeDone(bool status,
@@ -57,6 +58,8 @@ class MojoVideoDecoder final : public VideoDecoder,
void OnResetDone();
void BindRemoteDecoder();
+ void OnReleaseMailbox(const OnVideoFrameDecodedCallback& callback,
+ const gpu::SyncToken& release_sync_token);
// Cleans up callbacks and blocks future calls.
void Stop();

Powered by Google App Engine
This is Rietveld 408576698