/third_party/skia/tests/ |
D | GrPathUtilsTest.cpp | 101 constexpr static double kEpsilon = 1.0 / (1 << 11); in DEF_TEST() local 102 constexpr static double kEpsilonSquared = kEpsilon * kEpsilon; in DEF_TEST() 108 REPORTER_ASSERT(r, SkScalarNearlyEqual(T[1] - T[0], (float)kEpsilon, (float)kEpsilonSquared)); in DEF_TEST()
|
D | SkGaussFilterTest.cpp | 16 static constexpr double kEpsilon = 0.000001; variable 44 REPORTER_ASSERT(r, std::abs(golden[i] - result[i]) < kEpsilon); in DEF_TEST()
|
D | RoundRectTest.cpp | 1022 static constexpr SkScalar kEpsilon = 0.005f; in test_inner_bounds() local 1034 2.f * radius * radius, kEpsilon)); in test_inner_bounds() 1048 expectedArea, kEpsilon)); in test_inner_bounds() 1090 inner.inset(kEpsilon, kEpsilon); in test_inner_bounds()
|
/third_party/skia/third_party/externals/angle2/src/tests/gl_tests/ |
D | DepthStencilFormatsTest.cpp | 365 constexpr float kEpsilon = 0.002f; in depthStencilReadbackCase() local 367 ASSERT_NEAR(pixels[0], d00, kEpsilon); in depthStencilReadbackCase() 368 ASSERT_NEAR(pixels[0 + destRes], d01, kEpsilon); in depthStencilReadbackCase() 369 ASSERT_NEAR(pixels[1], d10, kEpsilon); in depthStencilReadbackCase() 370 ASSERT_NEAR(pixels[1 + destRes], d11, kEpsilon); in depthStencilReadbackCase() 379 constexpr unsigned short kEpsilon = 2; in depthStencilReadbackCase() local 381 ASSERT_NEAR(pixels[0], scale(d00), kEpsilon); in depthStencilReadbackCase() 382 ASSERT_NEAR(pixels[0 + destRes], scale(d01), kEpsilon); in depthStencilReadbackCase() 383 ASSERT_NEAR(pixels[1], scale(d10), kEpsilon); in depthStencilReadbackCase() 384 ASSERT_NEAR(pixels[1 + destRes], scale(d11), kEpsilon); in depthStencilReadbackCase()
|
/third_party/skia/src/gpu/geometry/ |
D | GrPathUtils.cpp | 564 constexpr static float kEpsilon = 1.f / (1 << 11); in findCubicConvex180Chops() local 569 SkASSERT(sk_bit_cast<float>(kIEEE_one_minus_2_epsilon) == 1 - 2*kEpsilon); in findCubicConvex180Chops() 607 float cuspThreshold = a * (kEpsilon/2); in findCubicConvex180Chops() 626 if (sk_bit_cast<uint32_t>(root - kEpsilon) < kIEEE_one_minus_2_epsilon) { in findCubicConvex180Chops() 640 if (sk_bit_cast<uint32_t>(root - kEpsilon) < kIEEE_one_minus_2_epsilon) { in findCubicConvex180Chops() 671 auto inside = (roots > kEpsilon) & (roots < (1 - kEpsilon)); in findCubicConvex180Chops()
|
/third_party/node/deps/v8/src/logging/ |
D | counters.h | 426 const double kEpsilon = 1e-6; in AddSample() local 428 if (current_ms < last_ms_ + kEpsilon) { in AddSample() 434 if (end_ms <= current_ms + kEpsilon) { in AddSample() 440 for (i = 0; i < kMaxSamples && end_ms <= current_ms + kEpsilon; i++) { in AddSample() 464 aggregate_value_ = current_ms > start_ms_ + kEpsilon in AddSample()
|
/third_party/skia/modules/skottie/src/effects/ |
D | LevelsEffect.cpp | 77 static constexpr auto kEpsilon = 2 * SK_ScalarNearlyZero; in build_lut() local 78 dIn += std::copysign(kEpsilon, dIn); in build_lut() 79 in_0 += std::copysign(kEpsilon, .5f - in_0); in build_lut()
|
/third_party/vk-gl-cts/external/amber/src/src/ |
D | verifier.cc | 30 const double kEpsilon = 0.000001; variable 111 static_cast<const double>(val), kEpsilon)) { in CheckActualValue() 125 static_cast<const double>(val), kEpsilon)) { in CheckActualValue() 135 command->HasTolerances() ? tolerance[0].value : kEpsilon, in CheckActualValue()
|
/third_party/skia/third_party/externals/piex/src/ |
D | piex.cc | 496 const float kEpsilon = 0.9f; in NefGetPreviewData() local 509 kEpsilon || in NefGetPreviewData() 512 kEpsilon) { in NefGetPreviewData()
|
/third_party/skia/src/gpu/tessellate/ |
D | StrokeHardwareTessellator.cpp | 685 constexpr static float kEpsilon = 1.f / (1 << 11); in cubic_has_cusp() local 686 float cuspThreshold = (2*kEpsilon) * a; in cubic_has_cusp()
|
/third_party/skia/third_party/externals/angle2/src/compiler/translator/ |
D | TranslatorVulkan.cpp | 753 static constexpr float kEpsilon = 0.0001f; in AddBresenhamEmulationFS() local 754 static constexpr float kThreshold = 0.5 + kEpsilon; in AddBresenhamEmulationFS()
|