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

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 yet again 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
« no previous file with comments | « content/renderer/media/audio_message_filter_unittest.cc ('k') | media/audio/audio_output_controller.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..31182dbdfc684c029e1cb432c8d465b4f5244cd9 100644
--- a/content/renderer/pepper_plugin_delegate_impl.cc
+++ b/content/renderer/pepper_plugin_delegate_impl.cc
@@ -196,22 +196,11 @@ class PlatformAudioImpl
void StopPlaybackOnIOThread();
void ShutDownOnIOThread();
- virtual void OnRequestPacket(AudioBuffersState buffers_state) OVERRIDE {
- LOG(FATAL) << "Should never get OnRequestPacket in PlatformAudioImpl";
- }
-
virtual void OnStateChanged(AudioStreamState state) OVERRIDE {}
- virtual void OnCreated(base::SharedMemoryHandle handle,
- uint32 length) OVERRIDE {
- LOG(FATAL) << "Should never get OnCreated in PlatformAudioImpl";
- }
-
- virtual void OnLowLatencyCreated(base::SharedMemoryHandle handle,
- base::SyncSocket::Handle socket_handle,
- uint32 length) OVERRIDE;
-
- virtual void OnVolume(double volume) OVERRIDE {}
+ virtual void OnStreamCreated(base::SharedMemoryHandle handle,
+ base::SyncSocket::Handle socket_handle,
+ uint32 length) OVERRIDE;
// The client to notify when the stream is created. THIS MUST ONLY BE
// ACCESSED ON THE MAIN THREAD.
@@ -284,7 +273,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 +299,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 +318,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));
}
}
« no previous file with comments | « content/renderer/media/audio_message_filter_unittest.cc ('k') | media/audio/audio_output_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698