Flutter Engine
The Flutter Engine
|
#include <SkottieUtils.h>
Public Member Functions | |
ExternalAnimationPrecompInterceptor (sk_sp< skresources::ResourceProvider >, const char prefix[]) | |
~ExternalAnimationPrecompInterceptor () override | |
Public Member Functions inherited from SkRefCntBase | |
SkRefCntBase () | |
virtual | ~SkRefCntBase () |
bool | unique () const |
void | ref () const |
void | unref () const |
Private Member Functions | |
sk_sp< skottie::ExternalLayer > | onLoadPrecomp (const char[], const char[], const SkSize &) override |
A sample PrecompInterceptor implementation.
Attempts to substitute all precomp layers matching the given pattern (name prefix) with external Lottie animations.
Definition at line 137 of file SkottieUtils.h.
skottie_utils::ExternalAnimationPrecompInterceptor::ExternalAnimationPrecompInterceptor | ( | sk_sp< skresources::ResourceProvider > | rprovider, |
const char | prefix[] | ||
) |
Definition at line 271 of file SkottieUtils.cpp.
|
overridedefault |
|
overrideprivatevirtual |
Invoked at animation build time, for each precomp layer.
id | The target composition ID (usually assigned automatically by BM: comp_0, ...) |
name | The name of the precomp layer (by default it matches the target comp name, but can be changed in AE) |
size | Lottie-specified precomp layer size |
Implements skottie::PrecompInterceptor.
Definition at line 279 of file SkottieUtils.cpp.