Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2)

Side by Side Diff: tests/PathOpsTestCommon.h

Issue 19374003: harden and speed up path op unit tests (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: rename threaded to single Created 7 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « tests/PathOpsSimplifyTrianglesThreadedTest.cpp ('k') | tests/PathOpsTestCommon.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright 2012 Google Inc. 2 * Copyright 2012 Google Inc.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license that can be 4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file. 5 * found in the LICENSE file.
6 */ 6 */
7 #ifndef PathOpsTestCommon_DEFINED 7 #ifndef PathOpsTestCommon_DEFINED
8 #define PathOpsTestCommon_DEFINED 8 #define PathOpsTestCommon_DEFINED
9 9
10 #include "SkPathOpsQuad.h" 10 #include "SkPathOpsQuad.h"
11 #include "SkTArray.h" 11 #include "SkTArray.h"
12 12
13 struct SkPathOpsBounds;
14
13 void CubicToQuads(const SkDCubic& cubic, double precision, SkTArray<SkDQuad, tru e>& quads); 15 void CubicToQuads(const SkDCubic& cubic, double precision, SkTArray<SkDQuad, tru e>& quads);
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);
14 24
15 #endif 25 #endif
OLDNEW
« no previous file with comments | « tests/PathOpsSimplifyTrianglesThreadedTest.cpp ('k') | tests/PathOpsTestCommon.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698