Searched refs:kDegenerateThreshold (Results 1 – 2 of 2) sorted by relevance
/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()
|
/external/skia/src/shaders/gradients/ |
D | SkGradientShader.cpp | 747 static constexpr SkScalar kDegenerateThreshold = SK_Scalar1 / (1 << 15); variable 874 if (SkScalarNearlyZero((pts[1] - pts[0]).length(), kDegenerateThreshold)) { in MakeLinear() 921 if (SkScalarNearlyZero(radius, kDegenerateThreshold)) { in MakeRadial() 966 if (SkScalarNearlyZero((start - end).length(), kDegenerateThreshold)) { in MakeTwoPointConical() 970 if (SkScalarNearlyEqual(startRadius, endRadius, kDegenerateThreshold)) { in MakeTwoPointConical() 974 if (mode == SkTileMode::kClamp && endRadius > kDegenerateThreshold) { in MakeTwoPointConical() 987 } else if (SkScalarNearlyZero(startRadius, kDegenerateThreshold)) { in MakeTwoPointConical() 1047 if (SkScalarNearlyEqual(startAngle, endAngle, kDegenerateThreshold)) { in MakeSweep() 1050 if (mode == SkTileMode::kClamp && endAngle > kDegenerateThreshold) { in MakeSweep()
|