Home
last modified time | relevance | path

Searched refs:kTol (Results 1 – 7 of 7) sorted by relevance

/external/skia/tests/
DWrappedSurfaceCopyOnWriteTest.cpp118 float kTol[4] = {}; in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() local
124 CheckSolidPixels(SkColor4f{1, 0, 0, 1}, pixels, kTol, errorReporter); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
159 float kTol[4] = {}; in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() local
165 CheckSolidPixels(SkColor4f{1, 0, 0, 1}, pixels, kTol, errorReporter); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
DMatrixColorFilterTest.cpp45 static constexpr float kTol[] = {0, 0, 0, 0}; in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() local
46 CheckSolidPixels({0, 0, 0, 0}, pixels, kTol, error); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
DProcessorTest.cpp707 static constexpr float kTol = 4 / 255.f; in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS() local
708 if (rDiff > kTol || gDiff > kTol || bDiff > kTol || aDiff > kTol) { in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS()
718 kTol, input4f.fR, input4f.fG, input4f.fB, input4f.fA, in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS()
DGrStyledShapeTest.cpp65 static constexpr int kTol = 2; in test_bounds_by_rasterizing() local
72 clip.outset(SkIntToScalar(kTol), SkIntToScalar(kTol)); in test_bounds_by_rasterizing()
/external/skqp/tests/
DProcessorTest.cpp572 static constexpr float kTol = 4 / 255.f; in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS() local
573 if (rDiff > kTol || gDiff > kTol || bDiff > kTol || aDiff > kTol) { in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS()
581 SkTMax(rDiff, SkTMax(gDiff, SkTMax(bDiff, aDiff))), kTol, in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS()
DGrShapeTest.cpp64 static constexpr int kTol = 2; in test_bounds_by_rasterizing() local
72 clip.outset(SkIntToScalar(kTol), SkIntToScalar(kTol)); in test_bounds_by_rasterizing()
/external/skia/samplecode/
DSampleVariableWidthStroker.cpp195 constexpr float kTol = 0.001f; in ZeroSet() local
197 ZeroSetRec(curve, 0, 1, kTol, &result); in ZeroSet()
674 const float kTol = std::abs(0.5f * distFnc.extremumWeight()); in strokeSegment() local
721 if (maxAbsErr > kTol) { in strokeSegment()