Flutter Engine
The Flutter Engine
Namespaces | Functions | Variables
WangsFormulaTest.cpp File Reference
#include "include/core/SkMatrix.h"
#include "include/core/SkPoint.h"
#include "include/core/SkRect.h"
#include "include/core/SkScalar.h"
#include "include/core/SkTypes.h"
#include "src/base/SkRandom.h"
#include "src/base/SkVx.h"
#include "src/core/SkGeometry.h"
#include "src/gpu/tessellate/Tessellation.h"
#include "src/gpu/tessellate/WangsFormula.h"
#include "tests/Test.h"
#include <algorithm>
#include <cmath>
#include <cstring>
#include <functional>
#include <limits>

Go to the source code of this file.

Namespaces

namespace  skgpu
 
namespace  skgpu::tess
 

Functions

static float skgpu::tess::wangs_formula_quadratic_reference_impl (float precision, const SkPoint p[3])
 
static float skgpu::tess::wangs_formula_cubic_reference_impl (float precision, const SkPoint p[4])
 
static float skgpu::tess::wangs_formula_conic_reference_impl (float precision, const SkPoint P[3], const float w)
 
static void skgpu::tess::for_random_matrices (SkRandom *rand, const std::function< void(const SkMatrix &)> &f)
 
static void skgpu::tess::for_random_beziers (int numPoints, SkRandom *rand, const std::function< void(const SkPoint[])> &f, int maxExponent=30)
 
 skgpu::tess::DEF_TEST (wangs_formula_log2, r)
 
 skgpu::tess::DEF_TEST (wangs_formula_vectorXforms, r)
 
 skgpu::tess::DEF_TEST (wangs_formula_worst_case_cubic, r)
 
 skgpu::tess::DEF_TEST (wangs_formula_quad_within_tol, r)
 
 skgpu::tess::DEF_TEST (wangs_formula_rational_quad_reduces, r)
 
 skgpu::tess::DEF_TEST (wangs_formula_conic_within_tol, r)
 
 skgpu::tess::DEF_TEST (wangs_formula_conic_matches_reference, r)
 
 skgpu::tess::DEF_TEST (wangs_formula_conic_vectorXforms, r)
 
 skgpu::tess::DEF_TEST (wangs_formula_nextlog2, r)
 

Variables

const SkPoint skgpu::tess::kSerp [4]
 
const SkPoint skgpu::tess::kLoop [4]
 
const SkPoint skgpu::tess::kQuad [4]