/external/skqp/modules/skottie/gm/ |
D | SkottieGM.cpp | 58 fAnimation = Animation::Builder() in onOnceBeforeDraw() 65 if (!fAnimation) { in onDraw() 70 fAnimation->render(canvas, &dest); in onDraw() 74 if (!fAnimation) { in onAnimate() 78 const auto duration = fAnimation->duration(); in onAnimate() 79 fAnimation->seek(std::fmod(timer.secs(), duration) / duration); in onAnimate() 86 sk_sp<Animation> fAnimation; member in SkottieWebFontGM 108 fAnimation = Animation::Builder() in onOnceBeforeDraw() 116 if (!fAnimation) { in onDraw() 121 fAnimation->render(canvas, &dest); in onDraw() [all …]
|
/external/skia/modules/skottie/gm/ |
D | SkottieGM.cpp | 56 fAnimation = skottie::Animation::Builder() in onOnceBeforeDraw() 63 if (!fAnimation) { in onDraw() 69 fAnimation->render(canvas, &dest); in onDraw() 74 if (!fAnimation) { in onAnimate() 78 const auto duration = fAnimation->duration(); in onAnimate() 79 fAnimation->seek(std::fmod(1e-9 * nanos, duration) / duration); in onAnimate() 86 sk_sp<skottie::Animation> fAnimation; member in SkottieWebFontGM 112 fAnimation = skottie::Animation::Builder() in onOnceBeforeDraw() 121 if (!fAnimation) { in onDraw() 127 fAnimation->render(canvas, &dest); in onDraw() [all …]
|
D | ExternalProperties.cpp | 57 fAnimation = skottie::Animation::Builder() in onOnceBeforeDraw() 65 if (!fAnimation) { in onDraw() 74 fAnimation->render(canvas, &dest); in onDraw() 80 if (!fAnimation) { in onAnimate() 84 const auto duration = fAnimation->duration(); in onAnimate() 85 fAnimation->seek(std::fmod(1e-9 * nanos, duration) / duration); in onAnimate() 131 sk_sp<skottie::Animation> fAnimation; member in SkottieExternalPropsGM
|
/external/skia/tools/viewer/ |
D | SkottieSlide.cpp | 171 fAnimation = builder in load() 180 if (fAnimation) { in load() 181 fAnimation->seek(0); in load() 182 fFrameTimes.resize(SkScalarCeilToInt(fAnimation->duration() * fAnimation->fps())); in load() 184 fAnimation->version().c_str(), in load() 185 fAnimation->size().width(), in load() 186 fAnimation->size().height()); in load() 194 fAnimation.reset(); in unload() 207 if (fAnimation) { in draw() 213 fAnimation->render(canvas, &dstR); in draw() [all …]
|
D | SkottieSlide.h | 44 sk_sp<skottie::Animation> fAnimation; variable
|
/external/skqp/tools/viewer/ |
D | SkottieSlide.cpp | 97 fAnimation = builder in load() 106 if (fAnimation) { in load() 107 fAnimation->setShowInval(fShowAnimationInval); in load() 109 fAnimation->version().c_str(), in load() 110 fAnimation->size().width(), in load() 111 fAnimation->size().height()); in load() 119 fAnimation.reset(); in unload() 128 if (fAnimation) { in draw() 131 fAnimation->render(canvas, &dstR); in draw() 145 if (fAnimation) { in animate() [all …]
|
D | SkottieSlide.h | 36 sk_sp<skottie::Animation> fAnimation; variable
|
/external/skia/tools/skottie_ios_app/ |
D | SkottieViewController.mm | 21 explicit operator bool() const { return fAnimation != nullptr; } 41 fAnimation->render(canvas); 46 fAnimation = builder.make((const char*)data, (size_t)length); 48 fAnimationSize = fAnimation ? fAnimation->size() : SkSize{0, 0}; 51 void seek(double time) { if (fAnimation) { fAnimation->seekFrameTime(time, nullptr); } } 53 float duration() { return fAnimation ? fAnimation->duration() : 0; } 58 sk_sp<skottie::Animation> fAnimation; // owner
|
/external/skqp/experimental/canvaskit/ |
D | skottie_bindings.cpp | 44 void render(SkCanvas* canvas) const { fAnimation->render(canvas, nullptr); } in render() 45 void render(SkCanvas* canvas, const SkRect& dst) const { fAnimation->render(canvas, &dst); } in render() 46 void seek(SkScalar t) { fAnimation->seek(t); } in seek() 47 SkScalar duration() const { return fAnimation->duration(); } in duration() 48 const SkSize& size() const { return fAnimation->size(); } in size() 49 std::string version() const { return std::string(fAnimation->version().c_str()); } in version() 101 : fAnimation(std::move(animation)) in ManagedAnimation() 104 sk_sp<skottie::Animation> fAnimation; member in __anonc7a472500111::ManagedAnimation
|
/external/skia/experimental/skottiekit/ |
D | skottiekit_bindings.cpp | 125 void render(SkCanvas* canvas) const { fAnimation->render(canvas, nullptr); } in render() 126 void render(SkCanvas* canvas, const SkRect& dst) const { fAnimation->render(canvas, &dst); } in render() 130 fAnimation->seek(t, &ic); in seek() 136 fAnimation->seekFrame(t, &ic); in seekFrame() 139 double duration() const { return fAnimation->duration(); } in duration() 140 double fps() const { return fAnimation->fps(); } in fps() 141 const SkSize& size() const { return fAnimation->size(); } in size() 142 std::string version() const { return std::string(fAnimation->version().c_str()); } in version() 194 : fAnimation(std::move(animation)) in ManagedAnimation() 197 sk_sp<skottie::Animation> fAnimation; member in __anon1cc77cc80111::ManagedAnimation
|
/external/skia/modules/canvaskit/ |
D | skottie_bindings.cpp | 177 void render(SkCanvas* canvas, const SkRect* dst) const { fAnimation->render(canvas, dst); } in render() 181 fAnimation->seek(t, &ic); in seek() 187 fAnimation->seekFrame(t, &ic); in seekFrame() 190 double duration() const { return fAnimation->duration(); } in duration() 191 double fps() const { return fAnimation->fps(); } in fps() 192 const SkSize& size() const { return fAnimation->size(); } in size() 193 std::string version() const { return std::string(fAnimation->version().c_str()); } in version() 274 : fAnimation(std::move(animation)) in ManagedAnimation() 278 const sk_sp<skottie::Animation> fAnimation; member in __anon51f793840111::ManagedAnimation
|
/external/skia/bench/ |
D | SKPAnimationBench.cpp | 15 , fAnimation(std::move(animation)) { in SKPAnimationBench() 16 fUniqueName.printf("%s_%s", name, fAnimation->getTag()); in SKPAnimationBench() 33 fAnimation->preConcatFrameMatrix(fAnimationTime.nextRangeF(0, 1000), fDevBounds, &trans); in drawPicture()
|
D | SKPAnimationBench.h | 43 sk_sp<Animation> fAnimation;
|
/external/skqp/bench/ |
D | SKPAnimationBench.cpp | 16 , fAnimation(SkRef(animation)) { in SKPAnimationBench() 17 fUniqueName.printf("%s_%s", name, fAnimation->getTag()); in SKPAnimationBench() 37 fAnimation->preConcatFrameMatrix(fAnimationTimer.fWall, fDevBounds, &trans); in drawPicture()
|
D | SKPAnimationBench.h | 43 sk_sp<Animation> fAnimation;
|
/external/skqp/modules/skottie/src/ |
D | SkottieLayer.cpp | 181 : fAnimation(std::move(animation)) { in attachNestedAnimation() 182 SkASSERT(fAnimation); in attachNestedAnimation() 187 return SkRect::MakeSize(fAnimation->size()); in attachNestedAnimation() 193 fAnimation->render(canvas); in attachNestedAnimation() 197 const sk_sp<Animation> fAnimation; in attachNestedAnimation() member in skottie::internal::AnimationBuilder::attachNestedAnimation::SkottieSGAdapter 203 : fAnimation(std::move(animation)) in attachNestedAnimation() 205 SkASSERT(fAnimation); in attachNestedAnimation() 211 fAnimation->seek(t * fTimeScale); in attachNestedAnimation() 215 const sk_sp<Animation> fAnimation; in attachNestedAnimation() member in skottie::internal::AnimationBuilder::attachNestedAnimation::SkottieAnimatorAdapter
|
/external/skia/modules/skottie/utils/ |
D | SkottieUtils.cpp | 200 : fAnimation(std::move(anim)) in ExternalAnimationLayer() 205 fAnimation->seekFrameTime(t); in render() 208 fAnimation->render(canvas, &dst_rect); in render() 211 const sk_sp<skottie::Animation> fAnimation; member in skottie_utils::__anon0d7d3c070111::ExternalAnimationLayer
|