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

Side by Side Diff: tests/PathOpsExtendedTest.h

Issue 1037953004: add conics to path ops (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: turn off pathops specific debuggging Created 5 years, 8 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 17 matching lines...) Expand all
28 28
29 //extern int comparePaths(const SkPath& one, const SkPath& two); 29 //extern int comparePaths(const SkPath& one, const SkPath& two);
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,
39 const SkPathOp , const char* testName);
38 extern bool testPathFailOp(skiatest::Reporter* reporter, const SkPath& a, const SkPath& b, 40 extern bool testPathFailOp(skiatest::Reporter* reporter, const SkPath& a, const SkPath& b,
39 const SkPathOp , const char* testName); 41 const SkPathOp , const char* testName);
40 extern bool testThreadedPathOp(skiatest::Reporter* reporter, const SkPath& a, co nst SkPath& b, 42 extern bool testThreadedPathOp(skiatest::Reporter* reporter, const SkPath& a, co nst SkPath& b,
41 const SkPathOp , const char* testName); 43 const SkPathOp , const char* testName);
42 extern bool testSimplify(SkPath& path, bool useXor, SkPath& out, PathOpsThreadSt ate& state, 44 extern bool testSimplify(SkPath& path, bool useXor, SkPath& out, PathOpsThreadSt ate& state,
43 const char* pathStr); 45 const char* pathStr);
44 extern bool testSimplify(skiatest::Reporter* reporter, const SkPath& path, const char* filename); 46 extern bool testSimplify(skiatest::Reporter* reporter, const SkPath& path, const char* filename);
45 extern bool testSimplifyCheck(skiatest::Reporter* reporter, const SkPath& path, 47 extern bool testSimplifyCheck(skiatest::Reporter* reporter, const SkPath& path,
46 const char* filename, bool checkFail); 48 const char* filename, bool checkFail);
47 49
48 void initializeTests(skiatest::Reporter* reporter, const char* testName); 50 void initializeTests(skiatest::Reporter* reporter, const char* testName);
49 void outputProgress(char* ramStr, const char* pathStr, SkPath::FillType ); 51 void outputProgress(char* ramStr, const char* pathStr, SkPath::FillType );
50 void outputProgress(char* ramStr, const char* pathStr, SkPathOp op); 52 void outputProgress(char* ramStr, const char* pathStr, SkPathOp op);
51 53
52 void RunTestSet(skiatest::Reporter* reporter, TestDesc tests[], size_t count, 54 void RunTestSet(skiatest::Reporter* reporter, TestDesc tests[], size_t count,
53 void (*firstTest)(skiatest::Reporter* , const char* filename), 55 void (*firstTest)(skiatest::Reporter* , const char* filename),
54 void (*skipTest)(skiatest::Reporter* , const char* filename), 56 void (*skipTest)(skiatest::Reporter* , const char* filename),
55 void (*stopTest)(skiatest::Reporter* , const char* filename), bo ol reverse); 57 void (*stopTest)(skiatest::Reporter* , const char* filename), bo ol reverse);
56 void ShowTestArray(); 58 void ShowTestArray(const char* testName);
57 void ShowTestName(PathOpsThreadState* data, int a, int b, int c, int d); 59 void ShowTestName(PathOpsThreadState* data, int a, int b, int c, int d);
58 void ShowFunctionHeader(const char* name); 60 void ShowFunctionHeader(const char* name);
59 void ShowPath(const SkPath& path, const char* pathName); 61 void ShowPath(const SkPath& path, const char* pathName);
60 void ShowOp(SkPathOp op, const char* pathOne, const char* pathTwo); 62 void ShowOp(SkPathOp op, const char* pathOne, const char* pathTwo);
61 63
62 #endif 64 #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