Flutter Engine
The Flutter Engine
Classes | Namespaces | Functions | Variables
GrPathUtils.h File Reference
#include "include/core/SkPoint.h"
#include "include/core/SkScalar.h"
#include "include/private/base/SkTArray.h"
#include <cstddef>
#include <cstdint>

Go to the source code of this file.

Classes

class  GrPathUtils::QuadUVMatrix
 

Namespaces

namespace  GrPathUtils
 

Functions

SkScalar GrPathUtils::scaleToleranceToSrc (SkScalar devTol, const SkMatrix &viewM, const SkRect &pathBounds)
 
uint32_t GrPathUtils::quadraticPointCount (const SkPoint points[], SkScalar tol)
 
uint32_t GrPathUtils::generateQuadraticPoints (const SkPoint &p0, const SkPoint &p1, const SkPoint &p2, SkScalar tolSqd, SkPoint **points, uint32_t pointsLeft)
 
uint32_t GrPathUtils::cubicPointCount (const SkPoint points[], SkScalar tol)
 
uint32_t GrPathUtils::generateCubicPoints (const SkPoint &p0, const SkPoint &p1, const SkPoint &p2, const SkPoint &p3, SkScalar tolSqd, SkPoint **points, uint32_t pointsLeft)
 
void GrPathUtils::getConicKLM (const SkPoint p[3], const SkScalar weight, SkMatrix *klm)
 
void GrPathUtils::convertCubicToQuads (const SkPoint p[4], SkScalar tolScale, skia_private::TArray< SkPoint, true > *quads)
 
void GrPathUtils::convertCubicToQuadsConstrainToTangents (const SkPoint p[4], SkScalar tolScale, SkPathFirstDirection dir, skia_private::TArray< SkPoint, true > *quads)
 

Variables

static const SkScalar GrPathUtils::kDefaultTolerance = SkDoubleToScalar(0.25)
 
static const int GrPathUtils::kMaxPointsPerCurve = 1 << 10