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

Unified Diff: content/renderer/pepper/pepper_platform_audio_input_impl.h

Issue 12379071: Use multiple shared memory buffers cyclically for audio capture. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: rebase Created 7 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
Index: content/renderer/pepper/pepper_platform_audio_input_impl.h
===================================================================
--- content/renderer/pepper/pepper_platform_audio_input_impl.h (revision 186213)
+++ content/renderer/pepper/pepper_platform_audio_input_impl.h (working copy)
@@ -52,9 +52,11 @@
virtual void ShutDown() OVERRIDE;
// media::AudioInputIPCDelegate.
- virtual void OnStreamCreated(base::SharedMemoryHandle handle,
- base::SyncSocket::Handle socket_handle,
- int length) OVERRIDE;
+ virtual void OnStreamCreated(base::SyncSocket::Handle socket_handle,
+ int total_handles) OVERRIDE;
+ virtual void OnSharedMemoryCreated(base::SharedMemoryHandle handle,
+ int length,
+ int index) OVERRIDE;
virtual void OnVolume(double volume) OVERRIDE;
virtual void OnStateChanged(
media::AudioInputIPCDelegate::State state) OVERRIDE;
@@ -96,6 +98,8 @@
// I/O thread except to send messages and get the message loop.
scoped_refptr<AudioInputMessageFilter> ipc_;
+ base::SyncSocket::Handle socket_handle_;
+
// Our ID on the MessageFilter. THIS MUST ONLY BE ACCESSED ON THE I/O THREAD
// or else you could race with the initialize function which sets it.
int32 stream_id_;

Powered by Google App Engine
This is Rietveld 408576698