Home
last modified time | relevance | path

Searched refs:radius2 (Results 1 – 6 of 6) sorted by relevance

/external/skia/src/gpu/gradients/generated/
DGrTwoPointConicalGradientLayout.cpp162 SkScalar radius2 = d->fRandom->nextRangeScalar(0.0f, scale); in TestCreate() local
175 if (SkScalarNearlyZero(radius1 - radius2)) { in TestCreate()
176 radius2 += offset; in TestCreate()
180 radius2 = radius1; in TestCreate()
195 radius2 = radius1 + SkPoint::Distance(center1, center2); in TestCreate()
198 std::swap(radius1, radius2); in TestCreate()
199 radius2 = 0; in TestCreate()
203 if (SkScalarNearlyZero(radius1 - radius2)) { in TestCreate()
204 radius2 += offset; in TestCreate()
208 if (SkScalarNearlyZero(radius1 - radius2) && in TestCreate()
[all …]
/external/skqp/src/gpu/gradients/
DGrTwoPointConicalGradientLayout.cpp161 SkScalar radius2 = d->fRandom->nextRangeScalar(0.0f, scale); in TestCreate() local
174 if (SkScalarNearlyZero(radius1 - radius2)) { in TestCreate()
175 radius2 += offset; in TestCreate()
179 radius2 = radius1; in TestCreate()
194 radius2 = radius1 + SkPoint::Distance(center1, center2); in TestCreate()
197 std::swap(radius1, radius2); in TestCreate()
198 radius2 = 0; in TestCreate()
202 if (SkScalarNearlyZero(radius1 - radius2)) { in TestCreate()
203 radius2 += offset; in TestCreate()
207 if (SkScalarNearlyZero(radius1 - radius2) && in TestCreate()
[all …]
DGrTwoPointConicalGradientLayout.fp236 SkScalar radius2 = d->fRandom->nextRangeScalar(0.0f, scale);
251 if (SkScalarNearlyZero(radius1 - radius2)) {
252 radius2 += offset;
256 radius2 = radius1;
271 radius2 = radius1 + SkPoint::Distance(center1, center2);
274 std::swap(radius1, radius2);
275 radius2 = 0;
279 if (SkScalarNearlyZero(radius1 - radius2)) {
280 radius2 += offset;
284 if (SkScalarNearlyZero(radius1 - radius2) &&
[all …]
/external/skqp/tests/
DScaleToSidesTest.cpp51 float radius2 = (float)interestingValues[j]; 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.cpp51 float radius2 = (float)interestingValues[j]; 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.fp236 SkScalar radius2 = d->fRandom->nextRangeScalar(0.0f, scale);
251 if (SkScalarNearlyZero(radius1 - radius2)) {
252 radius2 += offset;
256 radius2 = radius1;
271 radius2 = radius1 + SkPoint::Distance(center1, center2);
274 std::swap(radius1, radius2);
275 radius2 = 0;
279 if (SkScalarNearlyZero(radius1 - radius2)) {
280 radius2 += offset;
284 if (SkScalarNearlyZero(radius1 - radius2) &&
[all …]