2 * Copyright 2012 Google Inc.
4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file.
7 #ifndef PathOpsTestCommon_DEFINED
8 #define PathOpsTestCommon_DEFINED
10 #include "SkPathOpsQuad.h"
13 struct SkPathOpsBounds;
15 void CubicPathToQuads(const SkPath& cubicPath, SkPath* quadPath);
16 void CubicPathToSimple(const SkPath& cubicPath, SkPath* simplePath);
17 void CubicToQuads(const SkDCubic& cubic, double precision, SkTArray<SkDQuad, true>& quads);
18 bool ValidBounds(const SkPathOpsBounds&);
19 bool ValidCubic(const SkDCubic& cubic);
20 bool ValidLine(const SkDLine& line);
21 bool ValidPoint(const SkDPoint& pt);
22 bool ValidPoints(const SkPoint* pts, int count);
23 bool ValidQuad(const SkDQuad& quad);
24 bool ValidTriangle(const SkDTriangle& triangle);
25 bool ValidVector(const SkDVector& v);