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

Side by Side Diff: tests/PathOpsExtendedTest.h

Issue 1111333002: compute initial winding from projected rays (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: add missing test reference Created 5 years, 7 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
« no previous file with comments | « tests/PathOpsDebug.cpp ('k') | tests/PathOpsExtendedTest.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 PathOpsExtendedTest_DEFINED 7 #ifndef PathOpsExtendedTest_DEFINED
8 #define PathOpsExtendedTest_DEFINED 8 #define PathOpsExtendedTest_DEFINED
9 9
10 #include "SkBitmap.h" 10 #include "SkBitmap.h"
(...skipping 19 matching lines...) Expand all
30 extern int comparePaths(skiatest::Reporter* reporter, const char* filename, 30 extern int comparePaths(skiatest::Reporter* reporter, const char* filename,
31 const SkPath& one, const SkPath& two, SkBitmap& bitmap); 31 const SkPath& one, const SkPath& two, SkBitmap& bitmap);
32 extern bool drawAsciiPaths(const SkPath& one, const SkPath& two, bool drawPaths) ; 32 extern bool drawAsciiPaths(const SkPath& one, const SkPath& two, bool drawPaths) ;
33 extern void showOp(const SkPathOp op); 33 extern void showOp(const SkPathOp op);
34 extern bool testPathOp(skiatest::Reporter* reporter, const SkPath& a, const SkPa th& b, 34 extern bool testPathOp(skiatest::Reporter* reporter, const SkPath& a, const SkPa th& b,
35 const SkPathOp , const char* testName); 35 const SkPathOp , const char* testName);
36 extern bool testPathOpCheck(skiatest::Reporter* reporter, const SkPath& a, const SkPath& b, 36 extern bool testPathOpCheck(skiatest::Reporter* reporter, const SkPath& a, const SkPath& b,
37 const SkPathOp , const char* testName, bool checkFai l); 37 const SkPathOp , const char* testName, bool checkFai l);
38 extern bool testPathOpFailCheck(skiatest::Reporter* reporter, const SkPath& a, c onst SkPath& b, 38 extern bool testPathOpFailCheck(skiatest::Reporter* reporter, const SkPath& a, c onst SkPath& b,
39 const SkPathOp , const char* testName); 39 const SkPathOp , const char* testName);
40 extern bool testPathOpFlaky(skiatest::Reporter* reporter, const SkPath& a, const SkPath& b,
41 const SkPathOp , const char* testName);
40 extern bool testPathFailOp(skiatest::Reporter* reporter, const SkPath& a, const SkPath& b, 42 extern bool testPathFailOp(skiatest::Reporter* reporter, const SkPath& a, const SkPath& b,
41 const SkPathOp , const char* testName); 43 const SkPathOp , const char* testName);
42 extern bool testThreadedPathOp(skiatest::Reporter* reporter, const SkPath& a, co nst SkPath& b, 44 extern bool testThreadedPathOp(skiatest::Reporter* reporter, const SkPath& a, co nst SkPath& b,
43 const SkPathOp , const char* testName); 45 const SkPathOp , const char* testName);
44 extern bool testSimplify(SkPath& path, bool useXor, SkPath& out, PathOpsThreadSt ate& state, 46 extern bool testSimplify(SkPath& path, bool useXor, SkPath& out, PathOpsThreadSt ate& state,
45 const char* pathStr); 47 const char* pathStr);
46 extern bool testSimplify(skiatest::Reporter* reporter, const SkPath& path, const char* filename); 48 extern bool testSimplify(skiatest::Reporter* reporter, const SkPath& path, const char* filename);
47 extern bool testSimplifyCheck(skiatest::Reporter* reporter, const SkPath& path, 49 extern bool testSimplifyCheck(skiatest::Reporter* reporter, const SkPath& path,
48 const char* filename, bool checkFail); 50 const char* filename, bool checkFail);
49 51
50 void initializeTests(skiatest::Reporter* reporter, const char* testName); 52 void initializeTests(skiatest::Reporter* reporter, const char* testName);
51 void outputProgress(char* ramStr, const char* pathStr, SkPath::FillType ); 53 void outputProgress(char* ramStr, const char* pathStr, SkPath::FillType );
52 void outputProgress(char* ramStr, const char* pathStr, SkPathOp op); 54 void outputProgress(char* ramStr, const char* pathStr, SkPathOp op);
53 55
54 void RunTestSet(skiatest::Reporter* reporter, TestDesc tests[], size_t count, 56 void RunTestSet(skiatest::Reporter* reporter, TestDesc tests[], size_t count,
55 void (*firstTest)(skiatest::Reporter* , const char* filename), 57 void (*firstTest)(skiatest::Reporter* , const char* filename),
56 void (*skipTest)(skiatest::Reporter* , const char* filename), 58 void (*skipTest)(skiatest::Reporter* , const char* filename),
57 void (*stopTest)(skiatest::Reporter* , const char* filename), bo ol reverse); 59 void (*stopTest)(skiatest::Reporter* , const char* filename), bo ol reverse);
58 void ShowTestArray(const char* testName); 60 void ShowTestArray(const char* testName);
59 void ShowTestName(PathOpsThreadState* data, int a, int b, int c, int d); 61 void ShowTestName(PathOpsThreadState* data, int a, int b, int c, int d);
60 void ShowFunctionHeader(const char* name); 62 void ShowFunctionHeader(const char* name);
61 void ShowPath(const SkPath& path, const char* pathName); 63 void ShowPath(const SkPath& path, const char* pathName);
62 void ShowOp(SkPathOp op, const char* pathOne, const char* pathTwo); 64 void ShowOp(SkPathOp op, const char* pathOne, const char* pathTwo);
63 65
64 #endif 66 #endif
OLDNEW
« no previous file with comments | « tests/PathOpsDebug.cpp ('k') | tests/PathOpsExtendedTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698