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

Side by Side Diff: tests/PathOpsExtendedTest.h

Issue 1140383002: fix builder winding again (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: 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/PathOpsBuilderTest.cpp ('k') | tests/PathOpsSimplifyTest.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 11 matching lines...) Expand all
22 struct PathOpsThreadState; 22 struct PathOpsThreadState;
23 23
24 struct TestDesc { 24 struct TestDesc {
25 void (*fun)(skiatest::Reporter*, const char* filename); 25 void (*fun)(skiatest::Reporter*, const char* filename);
26 const char* str; 26 const char* str;
27 }; 27 };
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
33 inline int comparePaths(skiatest::Reporter* reporter, const char* filename,
34 const SkPath& one, const SkPath& two) {
35 SkBitmap bitmap;
36 return comparePaths(reporter, filename, one, two, bitmap);
37 }
38
32 extern bool drawAsciiPaths(const SkPath& one, const SkPath& two, bool drawPaths) ; 39 extern bool drawAsciiPaths(const SkPath& one, const SkPath& two, bool drawPaths) ;
33 extern void showOp(const SkPathOp op); 40 extern void showOp(const SkPathOp op);
34 extern bool testPathOp(skiatest::Reporter* reporter, const SkPath& a, const SkPa th& b, 41 extern bool testPathOp(skiatest::Reporter* reporter, const SkPath& a, const SkPa th& b,
35 const SkPathOp , const char* testName); 42 const SkPathOp , const char* testName);
36 extern bool testPathOpCheck(skiatest::Reporter* reporter, const SkPath& a, const SkPath& b, 43 extern bool testPathOpCheck(skiatest::Reporter* reporter, const SkPath& a, const SkPath& b,
37 const SkPathOp , const char* testName, bool checkFai l); 44 const SkPathOp , const char* testName, bool checkFai l);
38 extern bool testPathOpFailCheck(skiatest::Reporter* reporter, const SkPath& a, c onst SkPath& b, 45 extern bool testPathOpFailCheck(skiatest::Reporter* reporter, const SkPath& a, c onst SkPath& b,
39 const SkPathOp , const char* testName); 46 const SkPathOp , const char* testName);
40 extern bool testPathFailOp(skiatest::Reporter* reporter, const SkPath& a, const SkPath& b, 47 extern bool testPathFailOp(skiatest::Reporter* reporter, const SkPath& a, const SkPath& b,
41 const SkPathOp , const char* testName); 48 const SkPathOp , const char* testName);
(...skipping 11 matching lines...) Expand all
53 void (*firstTest)(skiatest::Reporter* , const char* filename), 60 void (*firstTest)(skiatest::Reporter* , const char* filename),
54 void (*skipTest)(skiatest::Reporter* , const char* filename), 61 void (*skipTest)(skiatest::Reporter* , const char* filename),
55 void (*stopTest)(skiatest::Reporter* , const char* filename), bo ol reverse); 62 void (*stopTest)(skiatest::Reporter* , const char* filename), bo ol reverse);
56 void ShowTestArray(const char* testName); 63 void ShowTestArray(const char* testName);
57 void ShowTestName(PathOpsThreadState* data, int a, int b, int c, int d); 64 void ShowTestName(PathOpsThreadState* data, int a, int b, int c, int d);
58 void ShowFunctionHeader(const char* name); 65 void ShowFunctionHeader(const char* name);
59 void ShowPath(const SkPath& path, const char* pathName); 66 void ShowPath(const SkPath& path, const char* pathName);
60 void ShowOp(SkPathOp op, const char* pathOne, const char* pathTwo); 67 void ShowOp(SkPathOp op, const char* pathOne, const char* pathTwo);
61 68
62 #endif 69 #endif
OLDNEW
« no previous file with comments | « tests/PathOpsBuilderTest.cpp ('k') | tests/PathOpsSimplifyTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698