Flutter Engine
The Flutter Engine
|
#include <SkResources.h>
Protected Member Functions | |
ResourceProviderProxyBase (sk_sp< ResourceProvider >) | |
sk_sp< SkData > | load (const char[], const char[]) const override |
sk_sp< ImageAsset > | loadImageAsset (const char[], const char[], const char[]) const override |
sk_sp< SkTypeface > | loadTypeface (const char[], const char[]) const override |
sk_sp< SkData > | loadFont (const char[], const char[]) const override |
sk_sp< ExternalTrackAsset > | loadAudioAsset (const char[], const char[], const char[]) override |
Protected Attributes | |
const sk_sp< ResourceProvider > | fProxy |
Additional Inherited Members | |
virtual sk_sp< SkData > | load (const char[], const char[]) const |
virtual sk_sp< ImageAsset > | loadImageAsset (const char[], const char[], const char[]) const |
virtual sk_sp< ExternalTrackAsset > | loadAudioAsset (const char[], const char[], const char[]) |
virtual sk_sp< SkData > | loadFont (const char[], const char[]) const |
virtual sk_sp< SkTypeface > | loadTypeface (const char[], const char[]) const |
Public Member Functions inherited from SkRefCntBase | |
SkRefCntBase () | |
virtual | ~SkRefCntBase () |
bool | unique () const |
void | ref () const |
void | unref () const |
Definition at line 231 of file SkResources.h.
|
explicitprotected |
Definition at line 219 of file SkResources.cpp.
|
overrideprotectedvirtual |
Load a generic resource (currently only nested animations) specified by |path| + |name|, and return as an SkData.
Reimplemented from skresources::ResourceProvider.
Definition at line 222 of file SkResources.cpp.
|
overrideprotectedvirtual |
Load an external audio track specified by |path|/|name|/|id|.
Reimplemented from skresources::ResourceProvider.
Definition at line 246 of file SkResources.cpp.
|
overrideprotectedvirtual |
DEPRECATED: implement loadTypeface() instead.
Load an external font and return as SkData.
name | font name ("fName" Lottie property) |
url | web font URL ("fPath" Lottie property) |
– Note –
This mechanism assumes monolithic fonts (single data blob). Some web font providers may serve multiple font blobs, segmented for various unicode ranges, depending on user agent capabilities (woff, woff2). In that case, the embedder would need to advertise no user agent capabilities when fetching the URL, in order to receive full font data.
Reimplemented from skresources::ResourceProvider.
Definition at line 241 of file SkResources.cpp.
|
overrideprotectedvirtual |
Load an image asset specified by |path| + |name|, and returns the corresponding ImageAsset proxy.
Reimplemented from skresources::ResourceProvider.
Definition at line 228 of file SkResources.cpp.
|
overrideprotectedvirtual |
Load an external font and return as SkTypeface.
name | font name |
url | web font URL |
Reimplemented from skresources::ResourceProvider.
Definition at line 235 of file SkResources.cpp.
|
protected |
Definition at line 242 of file SkResources.h.