Home
last modified time | relevance | path

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

/external/skia/modules/skottie/src/animator/
DKeyframeAnimator.cpp44 fCurrentSegment.kf1->v, in getLERPInfo()
54 kf1 = &fKFs.back(); 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()
66 kf1 = mid_kf; in find_segment()
70 return {kf0, kf1}; in find_segment()
77 auto w = (t - seg.kf0->t) / (seg.kf1->t - seg.kf0->t); in compute_weight()
81 SkASSERT(seg.kf0->v != seg.kf1->v); in compute_weight()
DKeyframeAnimator.h86 const Keyframe* kf1; 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()