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

Unified Diff: content/renderer/pepper/pepper_plugin_delegate_impl.cc

Issue 9655018: Make AudioParameters a class instead of a struct (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 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: content/renderer/pepper/pepper_plugin_delegate_impl.cc
diff --git a/content/renderer/pepper/pepper_plugin_delegate_impl.cc b/content/renderer/pepper/pepper_plugin_delegate_impl.cc
index 8945bdb6144a5f171af6ec13894fa82d2a5f1cf1..ea1cd74c1715bc788acecf34eba7e7f8f108dc30 100644
--- a/content/renderer/pepper/pepper_plugin_delegate_impl.cc
+++ b/content/renderer/pepper/pepper_plugin_delegate_impl.cc
@@ -598,8 +598,8 @@ PepperPluginDelegateImpl::CreateAudioOutput(
uint32_t sample_rate,
uint32_t sample_count,
webkit::ppapi::PluginDelegate::PlatformAudioCommonClient* client) {
- return PepperPlatformAudioOutputImpl::Create(sample_rate, sample_count,
- client);
+ return PepperPlatformAudioOutputImpl::Create(
+ static_cast<int>(sample_rate), static_cast<int>(sample_count), client);
}
webkit::ppapi::PluginDelegate::PlatformAudioInput*
@@ -607,8 +607,8 @@ PepperPluginDelegateImpl::CreateAudioInput(
uint32_t sample_rate,
uint32_t sample_count,
webkit::ppapi::PluginDelegate::PlatformAudioCommonClient* client) {
- return PepperPlatformAudioInputImpl::Create(sample_rate, sample_count,
- client);
+ return PepperPlatformAudioInputImpl::Create(
+ static_cast<int>(sample_rate), static_cast<int>(sample_count), client);
}
// If a broker has not already been created for this plugin, creates one.

Powered by Google App Engine
This is Rietveld 408576698