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

Side by Side Diff: tests/PathOpsSimplifyTest.cpp

Issue 1182493015: pathops coincident fixes (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: all tests (including extended) work Created 5 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
« no previous file with comments | « tests/PathOpsSimplifyQuadThreadedTest.cpp ('k') | tools/pathops_sorter.htm » ('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 #include "PathOpsExtendedTest.h" 7 #include "PathOpsExtendedTest.h"
8 8
9 #define TEST(name) { name, #name } 9 #define TEST(name) { name, #name }
10 10
(...skipping 4779 matching lines...) Expand 10 before | Expand all | Expand 10 after
4790 path.lineTo(40, 30); 4790 path.lineTo(40, 30);
4791 path.lineTo(40, 10); 4791 path.lineTo(40, 10);
4792 path.moveTo(41, 11); 4792 path.moveTo(41, 11);
4793 path.lineTo(41, 29); 4793 path.lineTo(41, 29);
4794 path.lineTo(59, 29); 4794 path.lineTo(59, 29);
4795 path.lineTo(59, 11); 4795 path.lineTo(59, 11);
4796 path.lineTo(41, 11); 4796 path.lineTo(41, 11);
4797 testSimplify(reporter, path, filename); 4797 testSimplify(reporter, path, filename);
4798 } 4798 }
4799 4799
4800 static void testQuads65(skiatest::Reporter* reporter,const char* filename) {
4801 SkPath path;
4802 path.moveTo(1, 2);
4803 path.quadTo(3, 2, 0, 3);
4804 path.lineTo(1, 3);
4805 path.close();
4806 path.moveTo(1, 0);
4807 path.lineTo(1, 2);
4808 path.quadTo(3, 2, 1, 3);
4809 path.close();
4810 testSimplify(reporter, path, filename);
4811 }
4812
4800 static void (*skipTest)(skiatest::Reporter* , const char* filename) = 0; 4813 static void (*skipTest)(skiatest::Reporter* , const char* filename) = 0;
4801 static void (*firstTest)(skiatest::Reporter* , const char* filename) = 0; 4814 static void (*firstTest)(skiatest::Reporter* , const char* filename) = 0;
4802 static void (*stopTest)(skiatest::Reporter* , const char* filename) = 0; 4815 static void (*stopTest)(skiatest::Reporter* , const char* filename) = 0;
4803 4816
4804 static TestDesc tests[] = { 4817 static TestDesc tests[] = {
4818 TEST(testQuads65),
4805 TEST(testIssue3838_3), 4819 TEST(testIssue3838_3),
4806 TEST(testIssue3838), 4820 TEST(testIssue3838),
4807 TEST(testArc), 4821 TEST(testArc),
4808 TEST(testTriangle2), 4822 TEST(testTriangle2),
4809 TEST(testTriangle1), 4823 TEST(testTriangle1),
4810 TEST(testQuads64), 4824 TEST(testQuads64),
4811 TEST(testQuads63), 4825 TEST(testQuads63),
4812 TEST(testQuads62), 4826 TEST(testQuads62),
4813 TEST(testRect4), 4827 TEST(testRect4),
4814 TEST(testRect3), 4828 TEST(testRect3),
(...skipping 428 matching lines...) Expand 10 before | Expand all | Expand 10 after
5243 5257
5244 DEF_TEST(PathOpsSimplify, reporter) { 5258 DEF_TEST(PathOpsSimplify, reporter) {
5245 if (runSubTests && runSubTestsFirst) { 5259 if (runSubTests && runSubTestsFirst) {
5246 RunTestSet(reporter, subTests, subTestCount, firstSubTest, NULL, stopTes t, runReverse); 5260 RunTestSet(reporter, subTests, subTestCount, firstSubTest, NULL, stopTes t, runReverse);
5247 } 5261 }
5248 RunTestSet(reporter, tests, testCount, firstTest, skipTest, stopTest, runRev erse); 5262 RunTestSet(reporter, tests, testCount, firstTest, skipTest, stopTest, runRev erse);
5249 if (runSubTests && !runSubTestsFirst) { 5263 if (runSubTests && !runSubTestsFirst) {
5250 RunTestSet(reporter, subTests, subTestCount, firstSubTest, NULL, stopTes t, runReverse); 5264 RunTestSet(reporter, subTests, subTestCount, firstSubTest, NULL, stopTes t, runReverse);
5251 } 5265 }
5252 } 5266 }
OLDNEW
« no previous file with comments | « tests/PathOpsSimplifyQuadThreadedTest.cpp ('k') | tools/pathops_sorter.htm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698