Index: webkit/glue/webkitplatformsupport_impl.cc |
diff --git a/webkit/glue/webkitplatformsupport_impl.cc b/webkit/glue/webkitplatformsupport_impl.cc |
index 0ae957cb9864ccf9dc0dc844c3c628a0334f9d01..fdc8ed6ccbe74839daad362b006a533a8a31a940 100644 |
--- a/webkit/glue/webkitplatformsupport_impl.cc |
+++ b/webkit/glue/webkitplatformsupport_impl.cc |
@@ -499,6 +499,15 @@ namespace { |
WebData loadAudioSpatializationResource(WebKitPlatformSupportImpl* platform, |
const char* name) { |
+#ifdef IDR_AUDIO_SPATIALIZATION_COMPOSITE |
+ if (!strcmp(name, "Composite")) { |
+ base::StringPiece resource = |
+ platform->GetDataResource(IDR_AUDIO_SPATIALIZATION_COMPOSITE, |
+ ui::SCALE_FACTOR_NONE); |
+ return WebData(resource.data(), resource.size()); |
+ } |
+#endif |
+ |
#ifdef IDR_AUDIO_SPATIALIZATION_T000_P000 |
const size_t kExpectedSpatializationNameLength = 31; |
if (strlen(name) != kExpectedSpatializationNameLength) { |
@@ -666,7 +675,8 @@ WebData WebKitPlatformSupportImpl::loadResource(const char* name) { |
return WebData(); |
// Check the name prefix to see if it's an audio resource. |
- if (StartsWithASCII(name, "IRC_Composite", true)) |
+ if (StartsWithASCII(name, "IRC_Composite", true) || |
+ StartsWithASCII(name, "Composite", true)) |
return loadAudioSpatializationResource(this, name); |
// TODO(flackr): We should use a better than linear search here, a trie would |