Home
last modified time | relevance | path

Searched refs:fAnimation (Results 1 – 17 of 17) sorted by relevance

/external/skqp/modules/skottie/gm/
DSkottieGM.cpp58 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/
DSkottieGM.cpp56 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 …]
DExternalProperties.cpp57 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/
DSkottieSlide.cpp171 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 …]
DSkottieSlide.h44 sk_sp<skottie::Animation> fAnimation; variable
/external/skqp/tools/viewer/
DSkottieSlide.cpp97 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 …]
DSkottieSlide.h36 sk_sp<skottie::Animation> fAnimation; variable
/external/skia/tools/skottie_ios_app/
DSkottieViewController.mm21 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/
Dskottie_bindings.cpp44 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/
Dskottiekit_bindings.cpp125 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/
Dskottie_bindings.cpp177 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/
DSKPAnimationBench.cpp15 , 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()
DSKPAnimationBench.h43 sk_sp<Animation> fAnimation;
/external/skqp/bench/
DSKPAnimationBench.cpp16 , fAnimation(SkRef(animation)) { in SKPAnimationBench()
17 fUniqueName.printf("%s_%s", name, fAnimation->getTag()); in SKPAnimationBench()
37 fAnimation->preConcatFrameMatrix(fAnimationTimer.fWall, fDevBounds, &trans); in drawPicture()
DSKPAnimationBench.h43 sk_sp<Animation> fAnimation;
/external/skqp/modules/skottie/src/
DSkottieLayer.cpp181 : 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/
DSkottieUtils.cpp200 : 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