diff --git a/modules/skresources/include/SkResources.h b/modules/skresources/include/SkResources.h index a29fb31d16..18d03aeeb7 100644 --- a/modules/skresources/include/SkResources.h +++ b/modules/skresources/include/SkResources.h @@ -209,6 +209,7 @@ protected: sk_sp loadImageAsset(const char[], const char[], const char[]) const override; sk_sp loadTypeface(const char[], const char[]) const override; sk_sp loadFont(const char[], const char[]) const override; + sk_sp loadAudioAsset(const char[], const char[], const char[]) override; private: const sk_sp fProxy; diff --git a/modules/skresources/src/SkResources.cpp b/modules/skresources/src/SkResources.cpp index 4befe15756..96d84361d6 100644 --- a/modules/skresources/src/SkResources.cpp +++ b/modules/skresources/src/SkResources.cpp @@ -235,6 +235,13 @@ sk_sp ResourceProviderProxyBase::loadFont(const char name[], const char : nullptr; } +sk_sp ResourceProviderProxyBase::loadAudioAsset(const char path[], + const char name[], + const char id[]) { + return fProxy ? fProxy->loadAudioAsset(path, name, id) + : nullptr; +} + CachingResourceProvider::CachingResourceProvider(sk_sp rp) : INHERITED(std::move(rp)) {}