Flutter Engine
The Flutter Engine
|
#include <ExternalLayer.h>
Public Member Functions | |
virtual sk_sp< ExternalLayer > | onLoadPrecomp (const char id[], const char name[], const SkSize &size)=0 |
Public Member Functions inherited from SkRefCntBase | |
SkRefCntBase () | |
virtual | ~SkRefCntBase () |
bool | unique () const |
void | ref () const |
void | unref () const |
Interface for intercepting pre-composed layer creation.
Embedders can register interceptors with animation builders, to substitute target layers with arbitrary/externally-controlled content (see ExternalLayer above).
Definition at line 37 of file ExternalLayer.h.
|
pure virtual |
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 |