Lines Matching refs:center
72 SkPoint center; in MakeRadial() local
73 center.set(SkScalarAve(pts[0].fX, pts[1].fX), in MakeRadial()
75 return SkGradientShader::MakeRadial(center, center.fX, data.fColors, data.fPos, data.fCount, in MakeRadial()
81 SkPoint center; in MakeRadial4f() local
82 center.set(SkScalarAve(pts[0].fX, pts[1].fX), in MakeRadial4f()
85 return SkGradientShader::MakeRadial(center, center.fX, data.fColors4f, srgb, data.fPos, in MakeRadial4f()
91 SkPoint center; in MakeSweep() local
92 center.set(SkScalarAve(pts[0].fX, pts[1].fX), in MakeSweep()
94 return SkGradientShader::MakeSweep(center.fX, center.fY, data.fColors, data.fPos, data.fCount, in MakeSweep()
100 SkPoint center; in MakeSweep4f() local
101 center.set(SkScalarAve(pts[0].fX, pts[1].fX), in MakeSweep4f()
104 return SkGradientShader::MakeSweep(center.fX, center.fY, data.fColors4f, srgb, data.fPos, in MakeSweep4f()
486 SkPoint center; in onDraw() local
487 center.iset(0, 300); in onDraw()
490 SkPoint(center), in onDraw()
525 SkPoint center; in onDraw() local
526 center.set(SkIntToScalar(dim.width())/2, SkIntToScalar(dim.height())/2); in onDraw()
532 paint.setShader(SkGradientShader::MakeRadial(center, radius, colors, pos, in onDraw()
573 SkPoint center; in onDraw() local
574 center.set(cx, cy); in onDraw()
584 paint2.setShader(SkGradientShader::MakeRadial(center, radius, colors1, in onDraw()
588 paint3.setShader(SkGradientShader::MakeRadial(center, radius, colors2, in onDraw()
627 const SkPoint center = { 0, 0 }; in onOnceBeforeDraw() local
630 fShader = SkGradientShader::MakeRadial(center, kRadius, gColors, nullptr, 2, in onOnceBeforeDraw()
662 const SkPoint center = { 250, 250 }; in onOnceBeforeDraw() local
667 fShader = SkGradientShader::MakeRadial(center, kRadius, colors, pos, in onOnceBeforeDraw()
827 const SkPoint center { half, half }; in make_conical() local
828 return SkGradientShader::MakeTwoPointConical(center, 20, center, half - 10, in make_conical()