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

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

Issue 1821153004: media: Use PassInterface() in mojo media classes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: comments addressed 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 | « no previous file | media/mojo/services/mojo_audio_decoder.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/mojo/services/mojo_audio_decoder.h
diff --git a/media/mojo/services/mojo_audio_decoder.h b/media/mojo/services/mojo_audio_decoder.h
index 3f0d58fa4e1167d5bd878615e884b65e8dbfa549..ae6097d44bb2cd83c0bba1779132a3ae130d7dd5 100644
--- a/media/mojo/services/mojo_audio_decoder.h
+++ b/media/mojo/services/mojo_audio_decoder.h
@@ -63,6 +63,12 @@ class MojoAudioDecoder : public AudioDecoder,
scoped_refptr<base::SingleThreadTaskRunner> task_runner_;
+ // This class is constructed on one thread and used exclusively on another
+ // thread. This member is used to safely pass the AudioDecoderPtr from one
+ // thread to another. It is set in the constructor and is consumed in
+ // Initialize().
+ interfaces::AudioDecoderPtrInfo remote_decoder_info_;
+
interfaces::AudioDecoderPtr remote_decoder_;
// DataPipe for serializing the data section of DecoderBuffer.
« no previous file with comments | « no previous file | media/mojo/services/mojo_audio_decoder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698