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

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: Fix copyright years 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 ece53e0c48089cb480506bee99e86eee35b4570e..b464bb37bc92d5b0078acf3546422050a587c3b6 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.
« no previous file with comments | « content/renderer/pepper/pepper_platform_audio_output_impl.cc ('k') | content/renderer/renderer_webkitplatformsupport_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698