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";
68 return DrawResult::kFail;
69 }
70
71 for (size_t i = 0; i < 4; ++i) {
72 this->update_props(i);
74 kSize * (i & 2) / 4);
75 fAnimation->
render(canvas, &dest);
76 }
77 return DrawResult::kOk;
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>();
62 }
63 }
std::unique_ptr< SkStreamAsset > GetResourceAsStream(const char *resource, bool useFileStream)
Builder & setPropertyObserver(sk_sp< PropertyObserver >)
Builder & setResourceProvider(sk_sp< ResourceProvider >)
Builder & setFontManager(sk_sp< SkFontMgr >)
sk_sp< Animation > make(SkStream *)
Builder & setTextShapingFactory(sk_sp< SkShapers::Factory >)
sk_sp< Factory > BestAvailable()
The documentation for this class was generated from the following file: