8#ifndef SkResources_DEFINED
9#define SkResources_DEFINED
121 std::unique_ptr<SkAnimCodecPlayer> fPlayer;
143 virtual void seek(
float t) = 0;
157 const char[] )
const {
167 const char[] )
const {
196 const char[] )
const {
207 const char[] )
const {
255 sk_sp<ImageAsset> loadImageAsset(
const char[],
const char[],
const char[])
const override;
257 mutable SkMutex fMutex;
278 sk_sp<ImageAsset> loadImageAsset(
const char[],
const char[],
const char[])
const override;
static const char * resource_name(SkPDFResourceType type)
#define INHERITED(method,...)
skresources::ResourceProvider ResourceProvider
@ kStart_ScaleToFit
scales and aligns to left and top
@ kEnd_ScaleToFit
scales and aligns to right and bottom
@ kCenter_ScaleToFit
scales and aligns to center
@ kFill_ScaleToFit
scales in x and y to fill destination SkRect
static const SkMatrix & I()
static sk_sp< CachingResourceProvider > Make(sk_sp< ResourceProvider > rp)
virtual void seek(float t)=0
sk_sp< ImageAsset > loadImageAsset(const char[], const char[], const char[]) const override
sk_sp< SkData > load(const char resource_path[], const char resource_name[]) const override
static sk_sp< FileResourceProvider > Make(SkString base_dir, ImageDecodeStrategy=ImageDecodeStrategy::kLazyDecode)
virtual bool isMultiFrame()=0
static sk_sp< MultiFrameImageAsset > Make(sk_sp< SkData >, ImageDecodeStrategy=ImageDecodeStrategy::kLazyDecode)
bool isMultiFrame() override
sk_sp< SkImage > getFrame(float t) override
sk_sp< SkTypeface > loadTypeface(const char[], const char[]) const override
ResourceProviderProxyBase(sk_sp< ResourceProvider >)
sk_sp< ImageAsset > loadImageAsset(const char[], const char[], const char[]) const override
sk_sp< ExternalTrackAsset > loadAudioAsset(const char[], const char[], const char[]) override
const sk_sp< ResourceProvider > fProxy
sk_sp< SkData > load(const char[], const char[]) const override
sk_sp< SkData > loadFont(const char[], const char[]) const override
virtual sk_sp< SkData > load(const char[], const char[]) const
virtual sk_sp< SkData > loadFont(const char[], const char[]) const
virtual sk_sp< ExternalTrackAsset > loadAudioAsset(const char[], const char[], const char[])
virtual sk_sp< ImageAsset > loadImageAsset(const char[], const char[], const char[]) const
virtual sk_sp< SkTypeface > loadTypeface(const char[], const char[]) const
sk_sp< SkFontMgr > fontMgr
SK_API sk_sp< SkDocument > Make(SkWStream *dst, const SkSerialProcs *=nullptr, std::function< void(const SkPicture *)> onEndPage=nullptr)
unsigned useCenter Optional< SkMatrix > matrix
skresources::ImageAsset ImageAsset
SkSamplingOptions sampling