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

Unified Diff: content/renderer/pepper_plugin_delegate_impl.cc

Issue 9121062: Remove "high"-latency audio code path (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase ToT Created 8 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: content/renderer/pepper_plugin_delegate_impl.cc
diff --git a/content/renderer/pepper_plugin_delegate_impl.cc b/content/renderer/pepper_plugin_delegate_impl.cc
index b736ef5dbf6fe8d18226f784706503fda330414b..23d446cdf5a472b2eaa3429e462aa01e9d01c15b 100644
--- a/content/renderer/pepper_plugin_delegate_impl.cc
+++ b/content/renderer/pepper_plugin_delegate_impl.cc
@@ -207,9 +207,9 @@ class PlatformAudioImpl
LOG(FATAL) << "Should never get OnCreated in PlatformAudioImpl";
}
- virtual void OnLowLatencyCreated(base::SharedMemoryHandle handle,
- base::SyncSocket::Handle socket_handle,
- uint32 length) OVERRIDE;
+ virtual void OnStreamCreated(base::SharedMemoryHandle handle,
+ base::SyncSocket::Handle socket_handle,
+ uint32 length) OVERRIDE;
virtual void OnVolume(double volume) OVERRIDE {}
@@ -284,7 +284,7 @@ void PlatformAudioImpl::ShutDown() {
void PlatformAudioImpl::InitializeOnIOThread(const AudioParameters& params) {
stream_id_ = filter_->AddDelegate(this);
- filter_->Send(new AudioHostMsg_CreateStream(stream_id_, params, true));
+ filter_->Send(new AudioHostMsg_CreateStream(stream_id_, params));
}
void PlatformAudioImpl::StartPlaybackOnIOThread() {
@@ -310,7 +310,7 @@ void PlatformAudioImpl::ShutDownOnIOThread() {
// PepperPluginDelegateImpl::CreateAudio.
}
-void PlatformAudioImpl::OnLowLatencyCreated(
+void PlatformAudioImpl::OnStreamCreated(
base::SharedMemoryHandle handle, base::SyncSocket::Handle socket_handle,
uint32 length) {
#if defined(OS_WIN)
@@ -329,7 +329,7 @@ void PlatformAudioImpl::OnLowLatencyCreated(
client_->StreamCreated(handle, length, socket_handle);
} else {
main_message_loop_proxy_->PostTask(FROM_HERE,
- base::Bind(&PlatformAudioImpl::OnLowLatencyCreated, this, handle,
+ base::Bind(&PlatformAudioImpl::OnStreamCreated, this, handle,
socket_handle, length));
}
}

Powered by Google App Engine
This is Rietveld 408576698