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

Side by Side Diff: tests/PathOpsExtendedTest.h

Issue 15338003: path ops -- rewrite angle sort (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: Created 7 years, 6 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/PathOpsCubicToQuadsTest.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"
11 #include "SkPath.h" 11 #include "SkPath.h"
12 #include "SkPathOpsTypes.h" 12 #include "SkPathOpsTypes.h"
13 #include "SkStream.h" 13 #include "SkStream.h"
14 #include "SkThread.h" 14 #include "SkThread.h"
15 #include "SkThreadUtils.h" 15 #include "SkThreadUtils.h"
16 #include "Test.h" 16 #include "Test.h"
17 17
18 struct PathOpsThreadState; 18 struct PathOpsThreadState;
19 19
20 struct TestDesc { 20 struct TestDesc {
21 void (*fun)(skiatest::Reporter*); 21 void (*fun)(skiatest::Reporter*);
22 const char* str; 22 const char* str;
23 }; 23 };
24 24
25 //extern int comparePaths(const SkPath& one, const SkPath& two); 25 //extern int comparePaths(const SkPath& one, const SkPath& two);
26 extern int comparePaths(const SkPath& one, const SkPath& two, SkBitmap& bitmap); 26 extern int comparePaths(const SkPath& one, const SkPath& two, SkBitmap& bitmap);
27 extern bool drawAsciiPaths(const SkPath& one, const SkPath& two, bool drawPaths) ; 27 extern bool drawAsciiPaths(const SkPath& one, const SkPath& two, bool drawPaths) ;
28 extern void showOp(const SkPathOp op); 28 extern void showOp(const SkPathOp op);
29 extern void showPath(const SkPath& path, const char* str);
30 extern void showPath(const SkPath& path);
31 extern void showPathData(const SkPath& path);
32 extern bool testPathOp(skiatest::Reporter* reporter, const SkPath& a, const SkPa th& b, 29 extern bool testPathOp(skiatest::Reporter* reporter, const SkPath& a, const SkPa th& b,
33 const SkPathOp ); 30 const SkPathOp );
34 extern bool testSimplify(SkPath& path, bool useXor, SkPath& out, PathOpsThreadSt ate& state, 31 extern bool testSimplify(SkPath& path, bool useXor, SkPath& out, PathOpsThreadSt ate& state,
35 const char* pathStr); 32 const char* pathStr);
36 extern bool testSimplify(skiatest::Reporter* reporter, const SkPath& path); 33 extern bool testSimplify(skiatest::Reporter* reporter, const SkPath& path);
37 34
38 int initializeTests(skiatest::Reporter* reporter, const char* testName); 35 int initializeTests(skiatest::Reporter* reporter, const char* testName);
39 void outputProgress(char* ramStr, const char* pathStr, SkPath::FillType ); 36 void outputProgress(char* ramStr, const char* pathStr, SkPath::FillType );
40 void outputProgress(char* ramStr, const char* pathStr, SkPathOp op); 37 void outputProgress(char* ramStr, const char* pathStr, SkPathOp op);
41 38
42 void RunTestSet(skiatest::Reporter* reporter, TestDesc tests[], size_t count, 39 void RunTestSet(skiatest::Reporter* reporter, TestDesc tests[], size_t count,
43 void (*firstTest)(skiatest::Reporter* ), 40 void (*firstTest)(skiatest::Reporter* ),
44 void (*stopTest)(skiatest::Reporter* ), bool reverse); 41 void (*stopTest)(skiatest::Reporter* ), bool reverse);
45 void ShowTestName(PathOpsThreadState* data, int a, int b, int c, int d); 42 void ShowTestName(PathOpsThreadState* data, int a, int b, int c, int d);
46 43
47 #endif 44 #endif
OLDNEW
« no previous file with comments | « tests/PathOpsCubicToQuadsTest.cpp ('k') | tests/PathOpsExtendedTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698