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

Unified Diff: webkit/glue/webkitplatformsupport_impl.cc

Issue 14297003: Support concatenated spatialization data (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years, 8 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698