Flutter Engine
The Flutter Engine
|
#include <SkResources.h>
Public Member Functions | |
bool | isMultiFrame () override |
sk_sp< SkImage > | getFrame (float t) override |
Public Member Functions inherited from skresources::ImageAsset | |
virtual bool | isMultiFrame ()=0 |
virtual sk_sp< SkImage > | getFrame (float t) |
virtual FrameData | getFrameData (float t) |
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< MultiFrameImageAsset > | Make (sk_sp< SkData >, ImageDecodeStrategy=ImageDecodeStrategy::kLazyDecode) |
static sk_sp< MultiFrameImageAsset > | Make (std::unique_ptr< SkCodec >, ImageDecodeStrategy=ImageDecodeStrategy::kLazyDecode) |
Additional Inherited Members | |
Public Types inherited from skresources::ImageAsset | |
enum class | SizeFit { kFill = SkMatrix::kFill_ScaleToFit , kStart = SkMatrix::kStart_ScaleToFit , kCenter = SkMatrix::kCenter_ScaleToFit , kEnd = SkMatrix::kEnd_ScaleToFit , kNone } |
Definition at line 100 of file SkResources.h.
DEPRECATED: override getFrameData() instead.
Returns the SkImage for a given frame.
If the image asset is static, getFrame() is only called once, at animation load time. Otherwise, this gets invoked every time the animation time is adjusted (on every seek).
Embedders should cache and serve the same SkImage whenever possible, for efficiency.
t | Frame time code, in seconds, relative to the image layer timeline origin (in-point). |
Reimplemented from skresources::ImageAsset.
Definition at line 175 of file SkResources.cpp.
|
overridevirtual |
Returns true if the image asset is animated.
Implements skresources::ImageAsset.
Definition at line 131 of file SkResources.cpp.
|
static |
Definition at line 110 of file SkResources.cpp.
|
static |
Definition at line 119 of file SkResources.cpp.