Home
last modified time | relevance | path

Searched refs:radius1 (Results 1 – 14 of 14) sorted by relevance

/external/skqp/gm/
Dgradients_2pt_conical.cpp44 SkScalar radius1 = (pts[1].fX - pts[0].fX) / 3; in Make2ConicalOutside() local
46 center1.set(pts[1].fX - radius1, pts[1].fY - radius1); in Make2ConicalOutside()
47 return SkGradientShader::MakeTwoPointConical(center0, radius0, center1, radius1, data.fColors, in Make2ConicalOutside()
65 SkScalar radius1 = (pts[1].fX - pts[0].fX) / 3; in Make2ConicalOutsideFlip() local
67 center1.set(pts[1].fX - radius1, pts[1].fY - radius1); in Make2ConicalOutsideFlip()
68 return SkGradientShader::MakeTwoPointConical(center1, radius1, center0, radius0, data.fColors, in Make2ConicalOutsideFlip()
163 SkScalar radius1 = (pts[1].fX - pts[0].fX) / 3; in Make2ConicalZeroRadOutside() local
165 center1.set(pts[1].fX - radius1, pts[1].fY - radius1); in Make2ConicalZeroRadOutside()
166 return SkGradientShader::MakeTwoPointConical(center0, radius0, center1, radius1, in Make2ConicalZeroRadOutside()
176 SkScalar radius1 = (pts[1].fX - pts[0].fX) / 3; in Make2ConicalZeroRadFlipOutside() local
[all …]
Dgradients_no_texture.cpp62 SkScalar radius1 = (pts[1].fX - pts[0].fX) / 3; in Make2Conical() local
64 center1.set(pts[1].fX - radius1, pts[1].fY - radius1); in Make2Conical()
65 return SkGradientShader::MakeTwoPointConical(center1, radius1, in Make2Conical()
Dgradients.cpp137 SkScalar radius1 = (pts[1].fX - pts[0].fX) / 3; in Make2Conical() local
139 center1.set(pts[1].fX - radius1, pts[1].fY - radius1); in Make2Conical()
140 return SkGradientShader::MakeTwoPointConical(center1, radius1, center0, radius0, in Make2Conical()
149 SkScalar radius1 = (pts[1].fX - pts[0].fX) / 3; in Make2Conical4f() local
151 center1.set(pts[1].fX - radius1, pts[1].fY - radius1); in Make2Conical4f()
153 return SkGradientShader::MakeTwoPointConical(center1, radius1, center0, radius0, in Make2Conical4f()
/external/skia/gm/
Dgradients_2pt_conical.cpp57 SkScalar radius1 = (pts[1].fX - pts[0].fX) / 3; in Make2ConicalOutside() local
59 center1.set(pts[1].fX - radius1, pts[1].fY - radius1); in Make2ConicalOutside()
60 return SkGradientShader::MakeTwoPointConical(center0, radius0, center1, radius1, data.fColors, in Make2ConicalOutside()
78 SkScalar radius1 = (pts[1].fX - pts[0].fX) / 3; in Make2ConicalOutsideFlip() local
80 center1.set(pts[1].fX - radius1, pts[1].fY - radius1); in Make2ConicalOutsideFlip()
81 return SkGradientShader::MakeTwoPointConical(center1, radius1, center0, radius0, data.fColors, in Make2ConicalOutsideFlip()
176 SkScalar radius1 = (pts[1].fX - pts[0].fX) / 3; in Make2ConicalZeroRadOutside() local
178 center1.set(pts[1].fX - radius1, pts[1].fY - radius1); in Make2ConicalZeroRadOutside()
179 return SkGradientShader::MakeTwoPointConical(center0, radius0, center1, radius1, in Make2ConicalZeroRadOutside()
189 SkScalar radius1 = (pts[1].fX - pts[0].fX) / 3; in Make2ConicalZeroRadFlipOutside() local
[all …]
Dgradients_no_texture.cpp77 SkScalar radius1 = (pts[1].fX - pts[0].fX) / 3; in Make2Conical() local
79 center1.set(pts[1].fX - radius1, pts[1].fY - radius1); in Make2Conical()
80 return SkGradientShader::MakeTwoPointConical(center1, radius1, in Make2Conical()
Dgradients.cpp156 SkScalar radius1 = (pts[1].fX - pts[0].fX) / 3; in Make2Conical() local
158 center1.set(pts[1].fX - radius1, pts[1].fY - radius1); in Make2Conical()
159 return SkGradientShader::MakeTwoPointConical(center1, radius1, center0, radius0, in Make2Conical()
168 SkScalar radius1 = (pts[1].fX - pts[0].fX) / 3; in Make2Conical4f() local
170 center1.set(pts[1].fX - radius1, pts[1].fY - radius1); in Make2Conical4f()
172 return SkGradientShader::MakeTwoPointConical(center1, radius1, center0, radius0, in Make2Conical4f()
/external/skia/src/gpu/gradients/generated/
DGrTwoPointConicalGradientLayout.cpp161 SkScalar radius1 = d->fRandom->nextRangeScalar(0.0f, scale); in TestCreate() local
175 if (SkScalarNearlyZero(radius1 - radius2)) { in TestCreate()
179 radius1 = std::max(radius1, .1f); // Make sure that the radius is non-zero in TestCreate()
180 radius2 = radius1; in TestCreate()
192 radius1 = 0; in TestCreate()
195 radius2 = radius1 + SkPoint::Distance(center1, center2); in TestCreate()
198 std::swap(radius1, radius2); in TestCreate()
203 if (SkScalarNearlyZero(radius1 - radius2)) { in TestCreate()
208 if (SkScalarNearlyZero(radius1 - radius2) && in TestCreate()
216 center1, radius1, center2, radius2, params.fColors4f, in TestCreate()
[all …]
/external/skqp/src/gpu/gradients/
DGrTwoPointConicalGradientLayout.cpp160 SkScalar radius1 = d->fRandom->nextRangeScalar(0.0f, scale); in TestCreate() local
174 if (SkScalarNearlyZero(radius1 - radius2)) { in TestCreate()
178 radius1 = SkTMax(radius1, .1f); // Make sure that the radius is non-zero in TestCreate()
179 radius2 = radius1; in TestCreate()
191 radius1 = 0; in TestCreate()
194 radius2 = radius1 + SkPoint::Distance(center1, center2); in TestCreate()
197 std::swap(radius1, radius2); in TestCreate()
202 if (SkScalarNearlyZero(radius1 - radius2)) { in TestCreate()
207 if (SkScalarNearlyZero(radius1 - radius2) && in TestCreate()
215 center1, radius1, center2, radius2, params.fColors4f, in TestCreate()
[all …]
DGrTwoPointConicalGradientLayout.fp235 SkScalar radius1 = d->fRandom->nextRangeScalar(0.0f, scale);
251 if (SkScalarNearlyZero(radius1 - radius2)) {
255 radius1 = SkTMax(radius1, .1f); // Make sure that the radius is non-zero
256 radius2 = radius1;
268 radius1 = 0;
271 radius2 = radius1 + SkPoint::Distance(center1, center2);
274 std::swap(radius1, radius2);
279 if (SkScalarNearlyZero(radius1 - radius2)) {
284 if (SkScalarNearlyZero(radius1 - radius2) &&
291 SkGradientShader::MakeTwoPointConical(center1, radius1, center2, radius2,
[all …]
/external/skqp/tests/
DScaleToSidesTest.cpp50 float radius1 = (float)interestingValues[i]; in DEF_TEST() local
53 double scale = sk_ieee_double_divide(width, (double)radius1 + (double)radius2); in DEF_TEST()
59 SkScaleToSides::AdjustRadii(width, scale, &radius1, &radius2); in DEF_TEST()
/external/skia/tests/
DScaleToSidesTest.cpp50 float radius1 = (float)interestingValues[i]; in DEF_TEST() local
53 double scale = sk_ieee_double_divide(width, (double)radius1 + (double)radius2); in DEF_TEST()
59 SkScaleToSides::AdjustRadii(width, scale, &radius1, &radius2); in DEF_TEST()
/external/skia/src/gpu/gradients/
DGrTwoPointConicalGradientLayout.fp235 SkScalar radius1 = d->fRandom->nextRangeScalar(0.0f, scale);
251 if (SkScalarNearlyZero(radius1 - radius2)) {
255 radius1 = std::max(radius1, .1f); // Make sure that the radius is non-zero
256 radius2 = radius1;
268 radius1 = 0;
271 radius2 = radius1 + SkPoint::Distance(center1, center2);
274 std::swap(radius1, radius2);
279 if (SkScalarNearlyZero(radius1 - radius2)) {
284 if (SkScalarNearlyZero(radius1 - radius2) &&
291 SkGradientShader::MakeTwoPointConical(center1, radius1, center2, radius2,
[all …]
/external/skia/bench/
DGradientBench.cpp106 SkScalar radius1 = (pts[1].fX - pts[0].fX) / 3; in MakeConicalOutside() local
108 center1.set(pts[1].fX - radius1, pts[1].fY - radius1); in MakeConicalOutside()
110 center1, radius1, in MakeConicalOutside()
120 SkScalar radius1 = (pts[1].fX - pts[0].fX) / 3; in MakeConicalOutsideZeroRad() local
122 center1.set(pts[1].fX - radius1, pts[1].fY - radius1); in MakeConicalOutsideZeroRad()
124 center1, radius1, in MakeConicalOutsideZeroRad()
/external/skqp/bench/
DGradientBench.cpp104 SkScalar radius1 = (pts[1].fX - pts[0].fX) / 3; in MakeConicalOutside() local
106 center1.set(pts[1].fX - radius1, pts[1].fY - radius1); in MakeConicalOutside()
108 center1, radius1, in MakeConicalOutside()
118 SkScalar radius1 = (pts[1].fX - pts[0].fX) / 3; in MakeConicalOutsideZeroRad() local
120 center1.set(pts[1].fX - radius1, pts[1].fY - radius1); in MakeConicalOutsideZeroRad()
122 center1, radius1, in MakeConicalOutsideZeroRad()