Home
last modified time | relevance | path

Searched refs:radius2 (Results 1 – 4 of 4) 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()
23 !std::isfinite(radius2) || in DEF_FUZZ()
26 radius2 <= 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()
42 junk *= radius2; in DEF_FUZZ()
/external/skia/tests/
DScaleToSidesTest.cpp50 float radius2 = (float)interestingValues[j]; 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/src/shaders/gradients/
DSkTwoPointConicalGradient_gpu.cpp189 SkScalar radius2; 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()
471 SkScalar radius2; in TestCreate() local
480 radius2 = d->fRandom->nextRangeF(0.f, diffLen); in TestCreate()
484 SkGradientShader::MakeTwoPointConical(center1, radius1, center2, radius2, in TestCreate()
487 SkGradientShader::MakeTwoPointConical(center1, radius1, center2, radius2, in TestCreate()
675 SkScalar radius2; in TestCreate() local
683 radius2 = diffLen + increase; in TestCreate()
[all …]
DSkTwoPointConicalGradient.cpp134 SkScalar radius2 = fFlippedGrad ? fRadius1 : fRadius2; in onMakeColorSpace() local
143 return SkGradientShader::MakeTwoPointConical(center1, radius1, center2, radius2, xformedColors, in onMakeColorSpace()