Home
last modified time | relevance | path

Searched refs:center1 (Results 1 – 13 of 13) sorted by relevance

/external/skia/gm/
Dgradients_2pt_conical.cpp43 SkPoint center0, center1; in Make2ConicalOutside() local
47 center1.set(pts[1].fX - radius1, pts[1].fY - radius1); in Make2ConicalOutside()
48 return SkGradientShader::MakeTwoPointConical(center0, radius0, center1, radius1, data.fColors, in Make2ConicalOutside()
54 SkPoint center0, center1; in Make2ConicalOutsideFlip() local
58 center1.set(pts[1].fX - radius1, pts[1].fY - radius1); in Make2ConicalOutsideFlip()
59 return SkGradientShader::MakeTwoPointConical(center1, radius1, center0, radius0, data.fColors, in Make2ConicalOutsideFlip()
65 SkPoint center0, center1; in Make2ConicalInside() local
68 center1.set(SkScalarInterp(pts[0].fX, pts[1].fX, SkIntToScalar(3)/5), in Make2ConicalInside()
70 return SkGradientShader::MakeTwoPointConical(center1, (pts[1].fX - pts[0].fX) / 7, in Make2ConicalInside()
78 SkPoint center0, center1; in Make2ConicalInsideFlip() local
[all …]
Dgradients_no_texture.cpp49 SkPoint center0, center1; in Make2Radial() local
52 center1.set(SkScalarInterp(pts[0].fX, pts[1].fX, SkIntToScalar(3)/5), in Make2Radial()
55 center1, (pts[1].fX - pts[0].fX) / 7, in Make2Radial()
61 SkPoint center0, center1; in Make2Conical() local
65 center1.set(pts[1].fX - radius1, pts[1].fY - radius1); in Make2Conical()
66 return SkGradientShader::MakeTwoPointConical(center1, radius1, in Make2Conical()
Dblurroundrect.cpp104 SkPoint center0, center1; in MakeRadial() local
107 center1.set(SkScalarInterp(pts[0].fX, pts[1].fX, SkIntToScalar(3)/5), in MakeRadial()
109 return SkGradientShader::MakeTwoPointConical(center1, (pts[1].fX - pts[0].fX) / 7, in MakeRadial()
Dgradients.cpp109 SkPoint center0, center1; in Make2Radial() local
112 center1.set(SkScalarInterp(pts[0].fX, pts[1].fX, SkIntToScalar(3)/5), in Make2Radial()
114 return SkGradientShader::MakeTwoPointConical(center1, (pts[1].fX - pts[0].fX) / 7, in Make2Radial()
122 SkPoint center0, center1; in Make2Radial4f() local
125 center1.set(SkScalarInterp(pts[0].fX, pts[1].fX, SkIntToScalar(3) / 5), in Make2Radial4f()
128 return SkGradientShader::MakeTwoPointConical(center1, (pts[1].fX - pts[0].fX) / 7, in Make2Radial4f()
136 SkPoint center0, center1; in Make2Conical() local
140 center1.set(pts[1].fX - radius1, pts[1].fY - radius1); in Make2Conical()
141 return SkGradientShader::MakeTwoPointConical(center1, radius1, center0, radius0, in Make2Conical()
148 SkPoint center0, center1; in Make2Conical4f() local
[all …]
Dshadertext.cpp70 SkPoint center0, center1; in Make2Conical() local
73 center1.set(SkScalarInterp(pts[0].fX, pts[1].fX, SkIntToScalar(3)/5), in Make2Conical()
76 center1, (pts[1].fX - pts[0].fX) / 7, in Make2Conical()
Dblurrect.cpp72 SkPoint center0, center1; in MakeRadial() local
75 center1.set(SkScalarInterp(pts[0].fX, pts[1].fX, SkIntToScalar(3)/5), in MakeRadial()
77 return SkGradientShader::MakeTwoPointConical(center1, (pts[1].fX - pts[0].fX) / 7, in MakeRadial()
/external/skia/bench/
DGradientBench.cpp76 SkPoint center0, center1; in MakeConical() local
79 center1.set(SkScalarInterp(pts[0].fX, pts[1].fX, SkIntToScalar(3)/5), in MakeConical()
81 return SkGradientShader::MakeTwoPointConical(center1, (pts[1].fX - pts[0].fX) / 7, in MakeConical()
89 SkPoint center0, center1; in MakeConicalZeroRad() local
92 center1.set(SkScalarInterp(pts[0].fX, pts[1].fX, SkIntToScalar(3)/5), in MakeConicalZeroRad()
94 return SkGradientShader::MakeTwoPointConical(center1, 0.0, in MakeConicalZeroRad()
102 SkPoint center0, center1; in MakeConicalOutside() local
106 center1.set(pts[1].fX - radius1, pts[1].fY - radius1); in MakeConicalOutside()
108 center1, radius1, in MakeConicalOutside()
116 SkPoint center0, center1; in MakeConicalOutsideZeroRad() local
[all …]
/external/skia/src/shaders/gradients/
DSkTwoPointConicalGradient_gpu.cpp45 const SkPoint& center1 = shader.getStartCenter(); in set_matrix_edge_conical() local
48 invLMatrix->postTranslate(-center1.fX, -center1.fY); in set_matrix_edge_conical()
50 SkPoint diff = center2 - center1; in set_matrix_edge_conical()
186 SkPoint center1 = {d->fRandom->nextUScalar1(), d->fRandom->nextUScalar1()}; in TestCreate() local
194 } while (center1 == center2); in TestCreate()
198 SkPoint diff = center2 - center1; in TestCreate()
204 SkGradientShader::MakeTwoPointConical(center1, radius1, center2, radius2, in TestCreate()
207 SkGradientShader::MakeTwoPointConical(center1, radius1, center2, radius2, in TestCreate()
468 SkPoint center1 = {d->fRandom->nextUScalar1(), d->fRandom->nextUScalar1()}; in TestCreate() local
475 } while (center1 == center2); in TestCreate()
[all …]
DSkTwoPointConicalGradient.cpp131 SkPoint center1 = fFlippedGrad ? fCenter2 : fCenter1; in onMakeColorSpace() local
143 return SkGradientShader::MakeTwoPointConical(center1, radius1, center2, radius2, xformedColors, in onMakeColorSpace()
/external/skia/samplecode/
DSampleGradients.cpp85 SkPoint center0, center1; in Make2Conical() local
88 center1.set(SkScalarInterp(pts[0].fX, pts[1].fX, SkIntToScalar(3)/5), in Make2Conical()
91 center1, (pts[1].fX - pts[0].fX) / 7, in Make2Conical()
DSampleShaderText.cpp77 SkPoint center0, center1; in Make2Conical() local
80 center1.set(SkScalarInterp(pts[0].fX, pts[1].fX, SkIntToScalar(3)/5), in Make2Conical()
83 center1, (pts[1].fX - pts[0].fX) / 7, in Make2Conical()
DSampleSlides.cpp200 SkPoint center0, center1; in Make2Conical() local
203 center1.set(SkScalarInterp(pts[0].fX, pts[1].fX, SkIntToScalar(3)/5), in Make2Conical()
205 return SkGradientShader::MakeTwoPointConical(center1, (pts[1].fX - pts[0].fX) / 7, in Make2Conical()
/external/freetype/src/autofit/
Dafcjk.c1945 FT_Pos target, center1, center2; in af_cjk_hint_edges()
1967 center1 = left->pos + ( right->pos - left->pos ) / 2; in af_cjk_hint_edges()
1969 if ( center1 >= target ) in af_cjk_hint_edges()
1983 d1 = center1 - target; in af_cjk_hint_edges()