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

Unified Diff: content/renderer/renderer_webkitplatformsupport_impl.cc

Issue 195043002: Remove unnecassary parameter "sampleRate" for loadAudioResource(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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
« no previous file with comments | « content/renderer/renderer_webkitplatformsupport_impl.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/renderer_webkitplatformsupport_impl.cc
diff --git a/content/renderer/renderer_webkitplatformsupport_impl.cc b/content/renderer/renderer_webkitplatformsupport_impl.cc
index 250c76919a840409e7e6ac456a0d5739cf56fc98..c4b54dc3634eddac5df30ccebac719d03e446210 100644
--- a/content/renderer/renderer_webkitplatformsupport_impl.cc
+++ b/content/renderer/renderer_webkitplatformsupport_impl.cc
@@ -776,19 +776,34 @@ RendererWebKitPlatformSupportImpl::createAudioDevice(
#if defined(OS_ANDROID)
bool RendererWebKitPlatformSupportImpl::loadAudioResource(
blink::WebAudioBus* destination_bus, const char* audio_file_data,
+ size_t data_size) {
+ return DecodeAudioFileData(destination_bus,
+ audio_file_data,
+ data_size,
+ thread_safe_sender_);
+}
+// DEPRECATED
+bool RendererWebKitPlatformSupportImpl::loadAudioResource(
+ blink::WebAudioBus* destination_bus, const char* audio_file_data,
size_t data_size, double sample_rate) {
return DecodeAudioFileData(destination_bus,
audio_file_data,
data_size,
- sample_rate,
thread_safe_sender_);
}
#else
bool RendererWebKitPlatformSupportImpl::loadAudioResource(
blink::WebAudioBus* destination_bus, const char* audio_file_data,
+ size_t data_size) {
+ return DecodeAudioFileData(
+ destination_bus, audio_file_data, data_size);
+}
+// DEPRECATED
+bool RendererWebKitPlatformSupportImpl::loadAudioResource(
+ blink::WebAudioBus* destination_bus, const char* audio_file_data,
size_t data_size, double sample_rate) {
return DecodeAudioFileData(
- destination_bus, audio_file_data, data_size, sample_rate);
+ destination_bus, audio_file_data, data_size);
}
#endif // defined(OS_ANDROID)
« no previous file with comments | « content/renderer/renderer_webkitplatformsupport_impl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698