Searched refs:kDegenerateThreshold (Results 1 – 2 of 2) sorted by relevance
/external/skia/src/shaders/gradients/ |
D | SkGradientShader.cpp | 562 static constexpr SkScalar kDegenerateThreshold = SK_Scalar1 / (1 << 15); variable 693 if (SkScalarNearlyZero((pts[1] - pts[0]).length(), kDegenerateThreshold)) { in MakeLinear() 740 if (SkScalarNearlyZero(radius, kDegenerateThreshold)) { in MakeRadial() 785 if (SkScalarNearlyZero((start - end).length(), kDegenerateThreshold)) { in MakeTwoPointConical() 789 if (SkScalarNearlyEqual(startRadius, endRadius, kDegenerateThreshold)) { in MakeTwoPointConical() 793 if (mode == SkShader::TileMode::kClamp_TileMode && endRadius > kDegenerateThreshold) { in MakeTwoPointConical() 806 } else if (SkScalarNearlyZero(startRadius, kDegenerateThreshold)) { in MakeTwoPointConical() 866 if (SkScalarNearlyEqual(startAngle, endAngle, kDegenerateThreshold)) { in MakeSweep() 869 if (mode == SkShader::kClamp_TileMode && endAngle > kDegenerateThreshold) { in MakeSweep()
|
/external/skqp/src/shaders/gradients/ |
D | SkGradientShader.cpp | 562 static constexpr SkScalar kDegenerateThreshold = SK_Scalar1 / (1 << 15); variable 693 if (SkScalarNearlyZero((pts[1] - pts[0]).length(), kDegenerateThreshold)) { in MakeLinear() 740 if (SkScalarNearlyZero(radius, kDegenerateThreshold)) { in MakeRadial() 785 if (SkScalarNearlyZero((start - end).length(), kDegenerateThreshold)) { in MakeTwoPointConical() 789 if (SkScalarNearlyEqual(startRadius, endRadius, kDegenerateThreshold)) { in MakeTwoPointConical() 793 if (mode == SkShader::TileMode::kClamp_TileMode && endRadius > kDegenerateThreshold) { in MakeTwoPointConical() 806 } else if (SkScalarNearlyZero(startRadius, kDegenerateThreshold)) { in MakeTwoPointConical() 866 if (SkScalarNearlyEqual(startAngle, endAngle, kDegenerateThreshold)) { in MakeSweep() 869 if (mode == SkShader::kClamp_TileMode && endAngle > kDegenerateThreshold) { in MakeSweep()
|