Searched refs:fInterp (Results 1 – 4 of 4) sorted by relevance
/external/skqp/samplecode/ |
D | SampleHT.cpp | 49 SkInterpolator* fInterp; member in HTDrawable 57 fInterp = nullptr; in HTDrawable() 64 delete fInterp; in spawnAnimation() 65 fInterp = new SkInterpolator(5, 3); in spawnAnimation() 68 fInterp->setKeyFrame(0, now, values); in spawnAnimation() 70 fInterp->setKeyFrame(1, now + 1000, values); in spawnAnimation() 72 fInterp->setKeyFrame(2, now + 2000, values); in spawnAnimation() 74 fInterp->setMirror(true); in spawnAnimation() 75 fInterp->setRepeatCount(3); in spawnAnimation() 92 if (fInterp) { in onDraw() [all …]
|
D | SampleTextEffects.cpp | 109 SkScalar fInterp; member in TextEffectsView 115 fInterp = 0; in TextEffectsView() 134 auto pe = makepe(fInterp, &pts); in drawdots() 162 fInterp += fDx; in onDrawContent() 163 if (fInterp > 1) { in onDrawContent() 164 fInterp = 1; in onDrawContent() 166 } else if (fInterp < 0) { in onDrawContent() 167 fInterp = 0; in onDrawContent()
|
/external/skia/samplecode/ |
D | SampleHT.cpp | 49 SkInterpolator* fInterp; member in HTDrawable 57 fInterp = nullptr; in HTDrawable() 64 delete fInterp; in spawnAnimation() 65 fInterp = new SkInterpolator(5, 3); in spawnAnimation() 68 fInterp->setKeyFrame(0, now, values); in spawnAnimation() 70 fInterp->setKeyFrame(1, now + 1000, values); in spawnAnimation() 72 fInterp->setKeyFrame(2, now + 2000, values); in spawnAnimation() 74 fInterp->setMirror(true); in spawnAnimation() 75 fInterp->setRepeatCount(3); in spawnAnimation() 92 if (fInterp) { in onDraw() [all …]
|
D | SampleTextEffects.cpp | 109 SkScalar fInterp; member in TextEffectsView 115 fInterp = 0; in TextEffectsView() 134 auto pe = makepe(fInterp, &pts); in drawdots() 162 fInterp += fDx; in onDrawContent() 163 if (fInterp > 1) { in onDrawContent() 164 fInterp = 1; in onDrawContent() 166 } else if (fInterp < 0) { in onDrawContent() 167 fInterp = 0; in onDrawContent()
|