Home
last modified time | relevance | path

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

/external/skia/fuzz/
DFuzzScaleToSides.cpp19 float radius1, radius2, width; in DEF_FUZZ() local
20 fuzz->next(&radius1, &radius2, &width); in DEF_FUZZ()
22 if (!std::isfinite(radius1) || in DEF_FUZZ()
25 radius1 <= 0.0f || in DEF_FUZZ()
32 double scale = (double)width / ((double)radius1 + (double)radius2); in DEF_FUZZ()
36 SkDebugf("%g %g %g %g\n", radius1, radius2, width, scale); in DEF_FUZZ()
37 SkScaleToSides::AdjustRadii(width, scale, &radius1, &radius2); in DEF_FUZZ()
41 junk *= radius1; in DEF_FUZZ()
/external/skia/gm/
Dgradients_2pt_conical.cpp45 SkScalar radius1 = (pts[1].fX - pts[0].fX) / 3; 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()
56 SkScalar radius1 = (pts[1].fX - pts[0].fX) / 3; 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()
145 SkScalar radius1 = (pts[1].fX - pts[0].fX) / 3; in Make2ConicalZeroRadOutside() local
147 center1.set(pts[1].fX - radius1, pts[1].fY - radius1); in Make2ConicalZeroRadOutside()
148 return SkGradientShader::MakeTwoPointConical(center0, radius0, center1, radius1, in Make2ConicalZeroRadOutside()
158 SkScalar radius1 = (pts[1].fX - pts[0].fX) / 3; in Make2ConicalZeroRadFlipOutside() local
[all …]
Dgradients_no_texture.cpp63 SkScalar radius1 = (pts[1].fX - pts[0].fX) / 3; in Make2Conical() local
65 center1.set(pts[1].fX - radius1, pts[1].fY - radius1); in Make2Conical()
66 return SkGradientShader::MakeTwoPointConical(center1, radius1, in Make2Conical()
Dgradients.cpp138 SkScalar radius1 = (pts[1].fX - pts[0].fX) / 3; 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()
150 SkScalar radius1 = (pts[1].fX - pts[0].fX) / 3; in Make2Conical4f() local
152 center1.set(pts[1].fX - radius1, pts[1].fY - radius1); in Make2Conical4f()
154 return SkGradientShader::MakeTwoPointConical(center1, radius1, center0, radius0, in Make2Conical4f()
/external/skia/tests/
DScaleToSidesTest.cpp49 float radius1 = (float)interestingValues[i]; in DEF_TEST() local
52 double scale = width / ((double)radius1 + (double)radius2); in DEF_TEST()
58 SkScaleToSides::AdjustRadii(width, scale, &radius1, &radius2); in DEF_TEST()
/external/skia/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()
/external/skia/src/shaders/gradients/
DSkTwoPointConicalGradient_gpu.cpp187 SkScalar radius1 = d->fRandom->nextUScalar1(); in TestCreate() local
200 radius2 = radius1 + diffLen; in TestCreate()
204 SkGradientShader::MakeTwoPointConical(center1, radius1, center2, radius2, in TestCreate()
207 SkGradientShader::MakeTwoPointConical(center1, radius1, center2, radius2, in TestCreate()
469 SkScalar radius1 = 0.f; in TestCreate() local
484 SkGradientShader::MakeTwoPointConical(center1, radius1, center2, radius2, in TestCreate()
487 SkGradientShader::MakeTwoPointConical(center1, radius1, center2, radius2, in TestCreate()
673 SkScalar radius1 = 0.f; in TestCreate() local
685 } while (radius1 == radius2 && center1 == center2); in TestCreate()
689 SkGradientShader::MakeTwoPointConical(center1, radius1, center2, radius2, in TestCreate()
[all …]
DSkTwoPointConicalGradient.cpp133 SkScalar radius1 = fFlippedGrad ? fRadius2 : fRadius1; in onMakeColorSpace() local
143 return SkGradientShader::MakeTwoPointConical(center1, radius1, center2, radius2, xformedColors, in onMakeColorSpace()