Home
last modified time | relevance | path

Searched refs:kEpsilon (Results 1 - 11 of 11) sorted by relevance

/third_party/skia/tests/
H A DGrPathUtilsTest.cpp100 // points is kEpsilon (in parametric space).
101 constexpr static double kEpsilon = 1.0 / (1 << 11); local
102 constexpr static double kEpsilonSquared = kEpsilon * kEpsilon;
108 REPORTER_ASSERT(r, SkScalarNearlyEqual(T[1] - T[0], (float)kEpsilon, (float)kEpsilonSquared));
110 // Ensure two inflection points barely more than kEpsilon apart do not get flagged as cusps.
116 // Ensure two inflection points barely less than kEpsilon apart do get flagged as cusps.
H A DSkGaussFilterTest.cpp16 static constexpr double kEpsilon = 0.000001; variable
44 REPORTER_ASSERT(r, std::abs(golden[i] - result[i]) < kEpsilon); in DEF_TEST()
H A DRoundRectTest.cpp1022 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/
H A DDepthStencilFormatsTest.cpp365 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()
[all...]
/third_party/skia/src/gpu/geometry/
H A DGrPathUtils.cpp559 // If a chop falls within a distance of "kEpsilon" from 0 or 1, throw it out. Tangents become in findCubicConvex180Chops()
564 constexpr static float kEpsilon = 1.f / (1 << 11); in findCubicConvex180Chops() local
565 // Floating-point representation of "1 - 2*kEpsilon". in findCubicConvex180Chops()
569 SkASSERT(sk_bit_cast<float>(kIEEE_one_minus_2_epsilon) == 1 - 2*kEpsilon); in findCubicConvex180Chops()
605 // kEpsilon of one another (in parametric space). This is close enough for our purposes to in findCubicConvex180Chops()
607 float cuspThreshold = a * (kEpsilon/2); in findCubicConvex180Chops()
625 // Is "root" inside the range [kEpsilon, 1 - kEpsilon)? in findCubicConvex180Chops()
626 if (sk_bit_cast<uint32_t>(root - kEpsilon) < kIEEE_one_minus_2_epsilon) { in findCubicConvex180Chops()
639 // Is "root" inside the range [kEpsilon, in findCubicConvex180Chops()
[all...]
/third_party/skia/modules/skottie/src/effects/
H A DLevelsEffect.cpp77 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/node/deps/v8/src/logging/
H A Dcounters.h426 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/vk-gl-cts/external/amber/src/src/
H A Dverifier.cc30 const double kEpsilon = 0.000001; member
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/
H A Dpiex.cc496 const float kEpsilon = 0.9f; in NefGetPreviewData() local
509 kEpsilon || in NefGetPreviewData()
512 kEpsilon) { in NefGetPreviewData()
/third_party/skia/src/gpu/tessellate/
H A DStrokeHardwareTessellator.cpp685 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/
H A DTranslatorVulkan.cpp753 static constexpr float kEpsilon = 0.0001f; in AddBresenhamEmulationFS() local
754 static constexpr float kThreshold = 0.5 + kEpsilon; in AddBresenhamEmulationFS()

Completed in 13 milliseconds