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

Side by Side Diff: tests/PathOpsSimplifyTest.cpp

Issue 2239803002: start working on tiger again (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 4 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/PathOpsOpTest.cpp ('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 5238 matching lines...) Expand 10 before | Expand all | Expand 10 after
5249 } 5249 }
5250 tiger8a_x(reporter, filename, testlines); 5250 tiger8a_x(reporter, filename, testlines);
5251 } 5251 }
5252 } 5252 }
5253 } 5253 }
5254 5254
5255 static void tiger8a_h_1(skiatest::Reporter* reporter, const char* filename) { 5255 static void tiger8a_h_1(skiatest::Reporter* reporter, const char* filename) {
5256 #if DEBUG_UNDER_DEVELOPMENT // tiger 5256 #if DEBUG_UNDER_DEVELOPMENT // tiger
5257 return; 5257 return;
5258 #endif 5258 #endif
5259 uint64_t testlines = 0x0000000280802863; // best so far: 0x0000001610031021 ; 5259 uint64_t testlines = 0x0000000202480001; // best so far: 0x0000001610031021 ;
5260 tiger8a_x(reporter, filename, testlines); 5260 tiger8a_x(reporter, filename, testlines);
5261 } 5261 }
5262 5262
5263 // tries to add same edge twice 5263 // tries to add same edge twice
5264 static void tiger8b(skiatest::Reporter* reporter, const char* filename) { 5264 static void tiger8b(skiatest::Reporter* reporter, const char* filename) {
5265 #if DEBUG_UNDER_DEVELOPMENT // tiger 5265 #if DEBUG_UNDER_DEVELOPMENT // tiger
5266 return; 5266 return;
5267 #endif 5267 #endif
5268 SkPath path; 5268 SkPath path;
5269 path.moveTo(SkBits2Float(0x43f72ca1), SkBits2Float(0x43609572)); // 494.349f, 2 24.584f 5269 path.moveTo(SkBits2Float(0x43f72ca1), SkBits2Float(0x43609572)); // 494.349f, 2 24.584f
(...skipping 512 matching lines...) Expand 10 before | Expand all | Expand 10 after
5782 path.quadTo(1, 3, 3, 3); 5782 path.quadTo(1, 3, 3, 3);
5783 path.close(); 5783 path.close();
5784 testSimplify(reporter, path, filename); 5784 testSimplify(reporter, path, filename);
5785 } 5785 }
5786 5786
5787 static void (*skipTest)(skiatest::Reporter* , const char* filename) = 0; 5787 static void (*skipTest)(skiatest::Reporter* , const char* filename) = 0;
5788 static void (*firstTest)(skiatest::Reporter* , const char* filename) = 0; 5788 static void (*firstTest)(skiatest::Reporter* , const char* filename) = 0;
5789 static void (*stopTest)(skiatest::Reporter* , const char* filename) = 0; 5789 static void (*stopTest)(skiatest::Reporter* , const char* filename) = 0;
5790 5790
5791 static TestDesc tests[] = { 5791 static TestDesc tests[] = {
5792 TEST(tiger8a_h_1),
5793 TEST(tiger8a_h),
5794 TEST(tiger8a),
5795 TEST(tiger8b),
5796 TEST(tiger8),
5792 TEST(testQuads72), 5797 TEST(testQuads72),
5793 TEST(testQuads71), 5798 TEST(testQuads71),
5794 TEST(testQuads70), 5799 TEST(testQuads70),
5795 TEST(testQuads69), 5800 TEST(testQuads69),
5796 TEST(testQuads68), 5801 TEST(testQuads68),
5797 TEST(testQuads67), 5802 TEST(testQuads67),
5798 TEST(testQuads66), 5803 TEST(testQuads66),
5799 TEST(dean4), 5804 TEST(dean4),
5800 TEST(tiger8a_h_1),
5801 TEST(tiger8a_h),
5802 TEST(tiger8a),
5803 TEST(tiger8b),
5804 TEST(tiger8),
5805 TEST(fuzz763_4713_b), 5805 TEST(fuzz763_4713_b),
5806 TEST(fuzz_twister2), 5806 TEST(fuzz_twister2),
5807 TEST(fuzz_twister), 5807 TEST(fuzz_twister),
5808 TEST(fuzz994s_3414), 5808 TEST(fuzz994s_3414),
5809 TEST(fuzz994s_11), 5809 TEST(fuzz994s_11),
5810 TEST(cr514118), 5810 TEST(cr514118),
5811 TEST(fuzz864a), 5811 TEST(fuzz864a),
5812 TEST(testQuads65), 5812 TEST(testQuads65),
5813 TEST(testIssue3838_3), 5813 TEST(testIssue3838_3),
5814 TEST(testIssue3838), 5814 TEST(testIssue3838),
(...skipping 435 matching lines...) Expand 10 before | Expand all | Expand 10 after
6250 6250
6251 DEF_TEST(PathOpsSimplify, reporter) { 6251 DEF_TEST(PathOpsSimplify, reporter) {
6252 if (runSubTests && runSubTestsFirst) { 6252 if (runSubTests && runSubTestsFirst) {
6253 RunTestSet(reporter, subTests, subTestCount, firstSubTest, nullptr, stop Test, runReverse); 6253 RunTestSet(reporter, subTests, subTestCount, firstSubTest, nullptr, stop Test, runReverse);
6254 } 6254 }
6255 RunTestSet(reporter, tests, testCount, firstTest, skipTest, stopTest, runRev erse); 6255 RunTestSet(reporter, tests, testCount, firstTest, skipTest, stopTest, runRev erse);
6256 if (runSubTests && !runSubTestsFirst) { 6256 if (runSubTests && !runSubTestsFirst) {
6257 RunTestSet(reporter, subTests, subTestCount, firstSubTest, nullptr, stop Test, runReverse); 6257 RunTestSet(reporter, subTests, subTestCount, firstSubTest, nullptr, stop Test, runReverse);
6258 } 6258 }
6259 } 6259 }
OLDNEW
« no previous file with comments | « tests/PathOpsOpTest.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698