caryclark@google.com | 818b0cc | 2013-04-08 11:50:46 +0000 | [diff] [blame] | 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" |
caryclark@google.com | d892bd8 | 2013-06-17 14:10:36 +0000 | [diff] [blame] | 11 | #include "SkTArray.h" |
caryclark@google.com | 818b0cc | 2013-04-08 11:50:46 +0000 | [diff] [blame] | 12 | |
caryclark@google.com | 8d0a524 | 2013-07-16 16:11:16 +0000 | [diff] [blame] | 13 | struct SkPathOpsBounds; |
| 14 | |
caryclark@google.com | d892bd8 | 2013-06-17 14:10:36 +0000 | [diff] [blame] | 15 | void CubicToQuads(const SkDCubic& cubic, double precision, SkTArray<SkDQuad, true>& quads); |
caryclark@google.com | 8d0a524 | 2013-07-16 16:11:16 +0000 | [diff] [blame] | 16 | bool ValidBounds(const SkPathOpsBounds&); |
| 17 | bool ValidCubic(const SkDCubic& cubic); |
| 18 | bool ValidLine(const SkDLine& line); |
| 19 | bool ValidPoint(const SkDPoint& pt); |
| 20 | bool ValidPoints(const SkPoint* pts, int count); |
| 21 | bool ValidQuad(const SkDQuad& quad); |
| 22 | bool ValidTriangle(const SkDTriangle& triangle); |
| 23 | bool ValidVector(const SkDVector& v); |
caryclark@google.com | 818b0cc | 2013-04-08 11:50:46 +0000 | [diff] [blame] | 24 | |
| 25 | #endif |