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

Side by Side Diff: tests/PathOpsSimplifyTest.cpp

Issue 19203002: fix linux point compare (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: 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 | « src/pathops/SkPathOpsPoint.h ('k') | no next file » | 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 #include "PathOpsExtendedTest.h" 7 #include "PathOpsExtendedTest.h"
8 8
9 #define TEST(name) { name, #name } 9 #define TEST(name) { name, #name }
10 10
(...skipping 3810 matching lines...) Expand 10 before | Expand all | Expand 10 after
3821 path.cubicTo(705.000000f, 13.4101496f, 706.455078f, 10.1601505f, 708.807617f , 7.80761385f); 3821 path.cubicTo(705.000000f, 13.4101496f, 706.455078f, 10.1601505f, 708.807617f , 7.80761385f);
3822 path.lineTo(708.099182f, 7.09919119f); 3822 path.lineTo(708.099182f, 7.09919119f);
3823 path.close(); 3823 path.close();
3824 path.moveTo(704.000000f, 3.00000000f); 3824 path.moveTo(704.000000f, 3.00000000f);
3825 path.lineTo(704.000000f, 33.0000000f); 3825 path.lineTo(704.000000f, 33.0000000f);
3826 path.lineTo(705.000000f, 33.0000000f); 3826 path.lineTo(705.000000f, 33.0000000f);
3827 path.lineTo(719.500000f, 3.00000000f); 3827 path.lineTo(719.500000f, 3.00000000f);
3828 testSimplify(reporter, path); 3828 testSimplify(reporter, path);
3829 } 3829 }
3830 3830
3831 static void (*firstTest)(skiatest::Reporter* ) = 0; 3831 static void (*firstTest)(skiatest::Reporter* ) = testLine24a;
3832 3832
3833 static TestDesc tests[] = { 3833 static TestDesc tests[] = {
3834 TEST(skphealth_com76), 3834 TEST(skphealth_com76),
3835 TEST(testQuadLineIntersect1), 3835 TEST(testQuadLineIntersect1),
3836 TEST(testQuadLineIntersect2), 3836 TEST(testQuadLineIntersect2),
3837 TEST(testQuadLineIntersect3), 3837 TEST(testQuadLineIntersect3),
3838 TEST(testQuad7), 3838 TEST(testQuad7),
3839 TEST(testQuad6), 3839 TEST(testQuad6),
3840 TEST(testQuad5), 3840 TEST(testQuad5),
3841 TEST(testQuad4), 3841 TEST(testQuad4),
(...skipping 345 matching lines...) Expand 10 before | Expand all | Expand 10 after
4187 TEST(testLine3), 4187 TEST(testLine3),
4188 TEST(testLine2), 4188 TEST(testLine2),
4189 TEST(testLine1), 4189 TEST(testLine1),
4190 }; 4190 };
4191 4191
4192 static const size_t subTestCount = SK_ARRAY_COUNT(subTests); 4192 static const size_t subTestCount = SK_ARRAY_COUNT(subTests);
4193 4193
4194 static void (*firstSubTest)(skiatest::Reporter* ) = 0; 4194 static void (*firstSubTest)(skiatest::Reporter* ) = 0;
4195 4195
4196 static bool runSubTestsFirst = false; 4196 static bool runSubTestsFirst = false;
4197 static bool runReverse = false; 4197 static bool runReverse = true;
4198 static void (*stopTest)(skiatest::Reporter* ) = 0; 4198 static void (*stopTest)(skiatest::Reporter* ) = 0;
4199 4199
4200 static void PathOpsSimplifyTest(skiatest::Reporter* reporter) { 4200 static void PathOpsSimplifyTest(skiatest::Reporter* reporter) {
4201 #ifdef SK_DEBUG 4201 #ifdef SK_DEBUG
4202 gDebugMaxWindSum = 4; 4202 gDebugMaxWindSum = 4;
4203 gDebugMaxWindValue = 4; 4203 gDebugMaxWindValue = 4;
4204 #endif 4204 #endif
4205 if (runSubTestsFirst) { 4205 if (runSubTestsFirst) {
4206 RunTestSet(reporter, subTests, subTestCount, firstSubTest, stopTest, run Reverse); 4206 RunTestSet(reporter, subTests, subTestCount, firstSubTest, stopTest, run Reverse);
4207 } 4207 }
4208 RunTestSet(reporter, tests, testCount, firstTest, stopTest, runReverse); 4208 RunTestSet(reporter, tests, testCount, firstTest, stopTest, runReverse);
4209 if (!runSubTestsFirst) { 4209 if (!runSubTestsFirst) {
4210 RunTestSet(reporter, subTests, subTestCount, firstSubTest, stopTest, run Reverse); 4210 RunTestSet(reporter, subTests, subTestCount, firstSubTest, stopTest, run Reverse);
4211 } 4211 }
4212 #ifdef SK_DEBUG 4212 #ifdef SK_DEBUG
4213 gDebugMaxWindSum = SK_MaxS32; 4213 gDebugMaxWindSum = SK_MaxS32;
4214 gDebugMaxWindValue = SK_MaxS32; 4214 gDebugMaxWindValue = SK_MaxS32;
4215 #endif 4215 #endif
4216 } 4216 }
4217 4217
4218 #include "TestClassDef.h" 4218 #include "TestClassDef.h"
4219 DEFINE_TESTCLASS_SHORT(PathOpsSimplifyTest) 4219 DEFINE_TESTCLASS_SHORT(PathOpsSimplifyTest)
OLDNEW
« no previous file with comments | « src/pathops/SkPathOpsPoint.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698