Flutter Engine
The Flutter Engine
|
#include <SkResources.h>
Public Member Functions | |
sk_sp< SkData > | load (const char resource_path[], const char resource_name[]) const override |
sk_sp< ImageAsset > | loadImageAsset (const char[], const char[], const char[]) const override |
Public Member Functions inherited from skresources::ResourceProvider | |
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 |
Static Public Member Functions | |
static sk_sp< FileResourceProvider > | Make (SkString base_dir, ImageDecodeStrategy=ImageDecodeStrategy::kLazyDecode) |
Definition at line 212 of file SkResources.h.
|
overridevirtual |
Load a generic resource (currently only nested animations) specified by |path| + |name|, and return as an SkData.
Reimplemented from skresources::ResourceProvider.
Definition at line 194 of file SkResources.cpp.
|
overridevirtual |
Load an image asset specified by |path| + |name|, and returns the corresponding ImageAsset proxy.
Reimplemented from skresources::ResourceProvider.
Definition at line 201 of file SkResources.cpp.
|
static |
Definition at line 185 of file SkResources.cpp.