Lines Matching refs:delta
15 static void draw_gradient2(SkCanvas* canvas, const SkRect& rect, SkScalar delta) { in draw_gradient2() argument
26 SkPoint c0 = { l + 2 * w / 5 + delta, t + h / 2 }; in draw_gradient2()
57 SkScalar delta = fTime / 15.f; in onDrawContent() local
58 int intPart = SkScalarFloorToInt(delta); in onDrawContent()
59 delta = delta - SK_Scalar1 * intPart; in onDrawContent()
61 delta = SK_Scalar1 - delta; in onDrawContent()
63 delta -= SK_ScalarHalf; in onDrawContent()
65 delta /= DELTA_SCALE; in onDrawContent()
71 draw_gradient2(canvas, SkRect::MakeXYWH(l, t, w, h), delta); in onDrawContent()
73 txt.appendf("gap at \"tangent\" pt = %f", SkScalarToFloat(delta)); in onDrawContent()
77 …canvas->drawText(txt.c_str(), txt.size(), l + w/2 + w*DELTA_SCALE*delta, t + h + SK_Scalar1 * 10, … in onDrawContent()