Flutter Engine
The Flutter Engine
PathOpsTestCommon.h
Go to the documentation of this file.
1/*
2 * Copyright 2012 Google Inc.
3 *
4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file.
6 */
7#ifndef PathOpsTestCommon_DEFINED
8#define PathOpsTestCommon_DEFINED
9
13
14class SkPath;
15struct SkDConic;
16struct SkDCubic;
17struct SkDLine;
18struct SkDQuad;
19struct SkPathOpsBounds;
20struct SkPoint;
21
22struct QuadPts {
23 static const int kPointCount = 3;
25};
26
27struct ConicPts {
30};
31
32struct CubicPts {
33 static const int kPointCount = 4;
35};
36
37void CubicPathToQuads(const SkPath& cubicPath, SkPath* quadPath);
38void CubicPathToSimple(const SkPath& cubicPath, SkPath* simplePath);
39void CubicToQuads(
40 const SkDCubic& cubic, double precision, skia_private::TArray<SkDQuad, true>& quads);
41bool ValidBounds(const SkPathOpsBounds& );
42bool ValidConic(const SkDConic& cubic);
43bool ValidCubic(const SkDCubic& cubic);
44bool ValidLine(const SkDLine& line);
45bool ValidPoint(const SkDPoint& pt);
46bool ValidPoints(const SkPoint* pts, int count);
47bool ValidQuad(const SkDQuad& quad);
48bool ValidVector(const SkDVector& v);
49
50#endif
int count
Definition: FontMgrTest.cpp:50
void CubicPathToQuads(const SkPath &cubicPath, SkPath *quadPath)
bool ValidConic(const SkDConic &cubic)
bool ValidBounds(const SkPathOpsBounds &)
void CubicPathToSimple(const SkPath &cubicPath, SkPath *simplePath)
bool ValidCubic(const SkDCubic &cubic)
bool ValidVector(const SkDVector &v)
bool ValidPoints(const SkPoint *pts, int count)
bool ValidPoint(const SkDPoint &pt)
bool ValidLine(const SkDLine &line)
void CubicToQuads(const SkDCubic &cubic, double precision, skia_private::TArray< SkDQuad, true > &quads)
bool ValidQuad(const SkDQuad &quad)
Definition: SkPath.h:59
float SkScalar
Definition: extension.cpp:12
AI float cubic(float precision, const SkPoint pts[], const VectorXform &vectorXform=VectorXform())
Definition: WangsFormula.h:195
SkScalar fWeight
QuadPts fPts
static const int kPointCount
SkDPoint fPts[kPointCount]
static const int kPointCount
SkDPoint fPts[kPointCount]