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
10#include "SkPathOpsQuad.h"
11#include "SkTArray.h"
12
13struct SkPathOpsBounds;
14
15void CubicPathToQuads(const SkPath& cubicPath, SkPath* quadPath);
16void CubicPathToSimple(const SkPath& cubicPath, SkPath* simplePath);
17void CubicToQuads(const SkDCubic& cubic, double precision, SkTArray<SkDQuad, true>& quads);
18bool ValidBounds(const SkPathOpsBounds&);
19bool ValidCubic(const SkDCubic& cubic);
20bool ValidLine(const SkDLine& line);
21bool ValidPoint(const SkDPoint& pt);
22bool ValidPoints(const SkPoint* pts, int count);
23bool ValidQuad(const SkDQuad& quad);
24bool ValidTriangle(const SkDTriangle& triangle);
25bool ValidVector(const SkDVector& v);
26
27#endif
28