blob: 78f2e9092c0fd972e879d63a19e7abb972c800e2 [file] [log] [blame]
caryclark@google.com818b0cc2013-04-08 11:50:46 +00001/*
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"
caryclark@google.comd892bd82013-06-17 14:10:36 +000011#include "SkTArray.h"
caryclark@google.com818b0cc2013-04-08 11:50:46 +000012
caryclark@google.com8d0a5242013-07-16 16:11:16 +000013struct SkPathOpsBounds;
14
caryclark@google.comd892bd82013-06-17 14:10:36 +000015void CubicToQuads(const SkDCubic& cubic, double precision, SkTArray<SkDQuad, true>& quads);
caryclark@google.com8d0a5242013-07-16 16:11:16 +000016bool ValidBounds(const SkPathOpsBounds&);
17bool ValidCubic(const SkDCubic& cubic);
18bool ValidLine(const SkDLine& line);
19bool ValidPoint(const SkDPoint& pt);
20bool ValidPoints(const SkPoint* pts, int count);
21bool ValidQuad(const SkDQuad& quad);
22bool ValidTriangle(const SkDTriangle& triangle);
23bool ValidVector(const SkDVector& v);
caryclark@google.com818b0cc2013-04-08 11:50:46 +000024
25#endif