Definition at line 46 of file ExternalProperties.cpp.
◆ getISize()
SkISize SkottieExternalPropsGM::getISize |
( |
| ) |
|
|
inlineoverrideprotectedvirtual |
◆ getName()
SkString SkottieExternalPropsGM::getName |
( |
| ) |
const |
|
inlineoverrideprotectedvirtual |
◆ onAnimate()
bool SkottieExternalPropsGM::onAnimate |
( |
double |
nanos | ) |
|
|
inlineoverrideprotectedvirtual |
Reimplemented from skiagm::GM.
Definition at line 80 of file ExternalProperties.cpp.
80 {
81 if (!fAnimation) {
82 return false;
83 }
84
87 return true;
88 }
void seek(SkScalar t, sksg::InvalidationController *ic=nullptr)
◆ onDraw()
|
inlineoverrideprotectedvirtual |
Reimplemented from skiagm::GM.
Definition at line 65 of file ExternalProperties.cpp.
65 {
66 if (!fAnimation) {
67 *errorMsg = "No animation";
69 }
70
71 for (
size_t i = 0;
i < 4; ++
i) {
72 this->update_props(
i);
76 }
78 }
void render(SkCanvas *canvas, const SkRect *dst=nullptr) const
constexpr SkRect makeOffset(float dx, float dy) const
static constexpr SkRect MakeWH(float w, float h)
◆ onOnceBeforeDraw()
void SkottieExternalPropsGM::onOnceBeforeDraw |
( |
| ) |
|
|
inlineoverrideprotectedvirtual |
Reimplemented from skiagm::GM.
Definition at line 53 of file ExternalProperties.cpp.
53 {
55 fPropManager = std::make_unique<skottie_utils::CustomPropertyManager>();
58 .setResourceProvider(sk_make_sp<FakeWebFontProvider>())
59 .setPropertyObserver(fPropManager->getPropertyObserver())
62 }
63 }
std::unique_ptr< SkStreamAsset > GetResourceAsStream(const char *resource, bool useFileStream)
sk_sp< Factory > BestAvailable()
DlVertices::Builder Builder
The documentation for this class was generated from the following file: