Flutter Engine
The Flutter Engine
|
Public Member Functions | |
ImageAssetProxy (sk_sp< skresources::ImageAsset > asset) | |
bool | isMultiFrame () override |
FrameData | getFrameData (float t) override |
void | setImageAsset (sk_sp< skresources::ImageAsset > asset) |
sk_sp< const skresources::ImageAsset > | getImageAsset () const |
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 |
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 22 of file SlotManager.cpp.
|
inlineexplicit |
Definition at line 24 of file SlotManager.cpp.
|
inlineoverridevirtual |
Returns the payload for a given frame.
If the image asset is static, getFrameData() 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 30 of file SlotManager.cpp.
|
inline |
Definition at line 42 of file SlotManager.cpp.
|
inlineoverridevirtual |
Returns true if the image asset is animated.
Implements skresources::ImageAsset.
Definition at line 28 of file SlotManager.cpp.
|
inline |
Definition at line 38 of file SlotManager.cpp.