Skia
2D Graphics Library
|
Interface for intercepting pre-composed layer creation. More...
#include <ExternalLayer.h>
Public Member Functions | |
virtual sk_sp< ExternalLayer > | onLoadPrecomp (const char id[], const char name[], const SkSize &size)=0 |
Invoked at animation build time, for each precomp layer. More... | |
bool | unique () const |
May return true if the caller is the only owner. More... | |
void | ref () const |
Increment the reference count. More... | |
void | unref () const |
Decrement the reference count. More... | |
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).
|
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 |
|
inlineinherited |
Increment the reference count.
Must be balanced by a call to unref().
|
inlineinherited |
May return true if the caller is the only owner.
Ensures that all previous owner's actions are complete.
|
inlineinherited |
Decrement the reference count.
If the reference count is 1 before the decrement, then delete the object. Note that if this is the case, then the object needs to have been allocated via new, and not on the stack.