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

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

Issue 1823443002: Use data pipe for encoded buffers in MojoAudioDecoder (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@spitzer-audio-service-impl
Patch Set: Addressed comments 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
Index: media/mojo/services/mojo_audio_decoder_service.h
diff --git a/media/mojo/services/mojo_audio_decoder_service.h b/media/mojo/services/mojo_audio_decoder_service.h
index 756e19c177f99740a7dddbf4b1165435b8d9ec2a..558d0eb590c1f25f5d70e074c9c8897f2f6c5319 100644
--- a/media/mojo/services/mojo_audio_decoder_service.h
+++ b/media/mojo/services/mojo_audio_decoder_service.h
@@ -11,6 +11,7 @@
#include "media/base/audio_decoder.h"
#include "media/mojo/interfaces/audio_decoder.mojom.h"
#include "mojo/public/cpp/bindings/strong_binding.h"
+#include "mojo/public/cpp/system/data_pipe.h"
namespace media {
@@ -28,6 +29,8 @@ class MojoAudioDecoderService : public interfaces::AudioDecoder {
int32_t cdm_id,
const InitializeCallback& callback) final;
+ void SetDataSource(mojo::ScopedDataPipeConsumerHandle receive_pipe) final;
+
void Decode(interfaces::DecoderBufferPtr buffer,
const DecodeCallback& callback) final;
@@ -55,6 +58,9 @@ class MojoAudioDecoderService : public interfaces::AudioDecoder {
// communication channel, i.e. the pipe.
mojo::StrongBinding<interfaces::AudioDecoder> binding_;
+ // DataPipe for serializing the data section of DecoderBuffer.
+ mojo::ScopedDataPipeConsumerHandle consumer_handle_;
+
// The AudioDecoder that does actual decoding work.
scoped_ptr<media::AudioDecoder> decoder_;

Powered by Google App Engine
This is Rietveld 408576698