Home
last modified time | relevance | path

Searched refs:kf0 (Results 1 – 2 of 2) sorted by relevance

/external/skia/modules/skottie/src/animator/
DKeyframeAnimator.cpp36 if (fCurrentSegment.kf0->mapping == Keyframe::kConstantMapping) { in getLERPInfo()
38 return { 0, fCurrentSegment.kf0->v, fCurrentSegment.kf0->v }; in getLERPInfo()
43 fCurrentSegment.kf0->v, in getLERPInfo()
53 auto kf0 = &fKFs.front(), in find_segment() local
57 while (kf0 + 1 != kf1) { in find_segment()
58 SkASSERT(kf0 < kf1); in find_segment()
59 SkASSERT(kf0->t <= t && t < kf1->t); in find_segment()
61 const auto mid_kf = kf0 + (kf1 - kf0) / 2; in find_segment()
64 kf0 = mid_kf; in find_segment()
70 return {kf0, kf1}; in find_segment()
[all …]
DKeyframeAnimator.h85 const Keyframe* kf0; member
89 SkASSERT(!!kf0 == !!kf1); in contains()
90 SkASSERT(!kf0 || kf1 == kf0 + 1); in contains()
92 return kf0 && kf0->t <= t && t < kf1->t; in contains()