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

Unified Diff: media/mojo/services/mojo_decryptor.h

Issue 1809903002: Reland "Update mojo Decryptor interface to support reusing shared memory" (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add includes Created 4 years, 9 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/decryptor.mojom ('k') | media/mojo/services/mojo_decryptor.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/mojo/services/mojo_decryptor.h
diff --git a/media/mojo/services/mojo_decryptor.h b/media/mojo/services/mojo_decryptor.h
index 131c0d0ac570f715c4433da622466f001b5a99cf..b8c0dab7cbbd24f921fb6974b7099a18ed5f63df 100644
--- a/media/mojo/services/mojo_decryptor.h
+++ b/media/mojo/services/mojo_decryptor.h
@@ -57,6 +57,10 @@ class MojoDecryptor : public Decryptor {
interfaces::Decryptor::Status status,
interfaces::VideoFramePtr video_frame);
+ // Called when done with a VideoFrame in order to reuse the shared memory.
+ void ReleaseSharedBuffer(mojo::ScopedSharedBufferHandle buffer,
+ size_t buffer_size);
+
// To pass DecoderBuffers to and from the MojoDecryptorService, 2 data pipes
// are required (one each way). At initialization both pipes are created,
// and then the handles are passed to the MojoDecryptorService.
« no previous file with comments | « media/mojo/interfaces/decryptor.mojom ('k') | media/mojo/services/mojo_decryptor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698