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

Side by Side Diff: tests/PathOpsOpTest.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 | « src/pathops/SkOpSegment.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 #include "PathOpsExtendedTest.h" 7 #include "PathOpsExtendedTest.h"
8 #include "PathOpsTestCommon.h" 8 #include "PathOpsTestCommon.h"
9 9
10 class PathTest_Private { 10 class PathTest_Private {
(...skipping 7126 matching lines...) Expand 10 before | Expand all | Expand 10 after
7137 path.lineTo(SkBits2Float(0x68315b2d), SkBits2Float(0xf0685527)); // 3.35016e+24 f, -2.87614e+29f 7137 path.lineTo(SkBits2Float(0x68315b2d), SkBits2Float(0xf0685527)); // 3.35016e+24 f, -2.87614e+29f
7138 path.close(); 7138 path.close();
7139 path.moveTo(SkBits2Float(0x6829523a), SkBits2Float(0x2d555b2d)); // 3.19839e+24 f, 1.21279e-11f 7139 path.moveTo(SkBits2Float(0x6829523a), SkBits2Float(0x2d555b2d)); // 3.19839e+24 f, 1.21279e-11f
7140 path.moveTo(SkBits2Float(0x68556829), SkBits2Float(0x555b2d29)); // 4.03114e+24 f, 1.50617e+13f 7140 path.moveTo(SkBits2Float(0x68556829), SkBits2Float(0x555b2d29)); // 4.03114e+24 f, 1.50617e+13f
7141 path.moveTo(SkBits2Float(0x1f2a312a), SkBits2Float(0xc0032108)); // 3.60396e-20 f, -2.04889f 7141 path.moveTo(SkBits2Float(0x1f2a312a), SkBits2Float(0xc0032108)); // 3.60396e-20 f, -2.04889f
7142 path.cubicTo(SkBits2Float(0x68572d55), SkBits2Float(0xf05b684b), SkBits2Float(0x 8c55272d), SkBits2Float(0x212a292a), SkBits2Float(0x0321082a), SkBits2Float(0x6a 4b7bc0)); // 4.06458e+24f, -2.71613e+29f, -1.64207e-31f, 5.76527e-19f, 4.7323e- 37f, 6.14991e+25f 7142 path.cubicTo(SkBits2Float(0x68572d55), SkBits2Float(0xf05b684b), SkBits2Float(0x 8c55272d), SkBits2Float(0x212a292a), SkBits2Float(0x0321082a), SkBits2Float(0x6a 4b7bc0)); // 4.06458e+24f, -2.71613e+29f, -1.64207e-31f, 5.76527e-19f, 4.7323e- 37f, 6.14991e+25f
7143 path.conicTo(SkBits2Float(0x2a8c54ed), SkBits2Float(0x21081f21), SkBits2Float(0x 4b7bc003), SkBits2Float(0x29ed846a), SkBits2Float(0x555b2d28)); // 2.49279e-13f , 4.61198e-19f, 1.64987e+07f, 1.05479e-13f, 1.50617e+13f 7143 path.conicTo(SkBits2Float(0x2a8c54ed), SkBits2Float(0x21081f21), SkBits2Float(0x 4b7bc003), SkBits2Float(0x29ed846a), SkBits2Float(0x555b2d28)); // 2.49279e-13f , 4.61198e-19f, 1.64987e+07f, 1.05479e-13f, 1.50617e+13f
7144 path.conicTo(SkBits2Float(0x68392d5b), SkBits2Float(0xf0682955), SkBits2Float(0x 2a1f5b2d), SkBits2Float(0xef552a21), SkBits2Float(0x5b2d2a8c)); // 3.4979e+24f, -2.87402e+29f, 1.41537e-13f, -6.59712e+28f, 4.8742e+16f 7144 path.conicTo(SkBits2Float(0x68392d5b), SkBits2Float(0xf0682955), SkBits2Float(0x 2a1f5b2d), SkBits2Float(0xef552a21), SkBits2Float(0x5b2d2a8c)); // 3.4979e+24f, -2.87402e+29f, 1.41537e-13f, -6.59712e+28f, 4.8742e+16f
7145 7145
7146 SkPath path2(path); 7146 SkPath path2(path);
7147 testPathOpFail(reporter, path1, path2, (SkPathOp) 0, filename); 7147 testPathOpSkipAssert(reporter, path1, path2, (SkPathOp) 0, filename);
7148 } 7148 }
7149 7149
7150 static void fuzz763_24(skiatest::Reporter* reporter, const char* filename) { 7150 static void fuzz763_24(skiatest::Reporter* reporter, const char* filename) {
7151 SkPath path; 7151 SkPath path;
7152 path.setFillType((SkPath::FillType) 1); 7152 path.setFillType((SkPath::FillType) 1);
7153 7153
7154 SkPath path1(path); 7154 SkPath path1(path);
7155 path.reset(); 7155 path.reset();
7156 path.setFillType((SkPath::FillType) 0); 7156 path.setFillType((SkPath::FillType) 0);
7157 path.moveTo(SkBits2Float(0xededed02), SkBits2Float(0xedededed)); // -9.20431e+2 7f, -9.20445e+27f 7157 path.moveTo(SkBits2Float(0xededed02), SkBits2Float(0xedededed)); // -9.20431e+2 7f, -9.20445e+27f
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
7190 path.close(); 7190 path.close();
7191 path.moveTo(SkBits2Float(0x73737300), SkBits2Float(0x73735273)); // 1.9288e+31f , 1.9278e+31f 7191 path.moveTo(SkBits2Float(0x73737300), SkBits2Float(0x73735273)); // 1.9288e+31f , 1.9278e+31f
7192 path.cubicTo(SkBits2Float(0x299e9e9e), SkBits2Float(0xecececec), SkBits2Float(0x ececb6ec), SkBits2Float(0xf0ececec), SkBits2Float(0x0000ecec), SkBits2Float(0x9e be6e6e)); // 7.04413e-14f, -2.2914e+27f, -2.28936e+27f, -5.86599e+29f, 8.49916e -41f, -2.01627e-20f 7192 path.cubicTo(SkBits2Float(0x299e9e9e), SkBits2Float(0xecececec), SkBits2Float(0x ececb6ec), SkBits2Float(0xf0ececec), SkBits2Float(0x0000ecec), SkBits2Float(0x9e be6e6e)); // 7.04413e-14f, -2.2914e+27f, -2.28936e+27f, -5.86599e+29f, 8.49916e -41f, -2.01627e-20f
7193 path.cubicTo(SkBits2Float(0x9e9e9e9e), SkBits2Float(0xe8009e9e), SkBits2Float(0x 9e9e9e9e), SkBits2Float(0xecec9e9e), SkBits2Float(0xec3333ec), SkBits2Float(0xec ecf0ec)); // -1.67945e-20f, -2.42956e+24f, -1.67945e-20f, -2.28844e+27f, -8.665 72e+26f, -2.29155e+27f 7193 path.cubicTo(SkBits2Float(0x9e9e9e9e), SkBits2Float(0xe8009e9e), SkBits2Float(0x 9e9e9e9e), SkBits2Float(0xecec9e9e), SkBits2Float(0xec3333ec), SkBits2Float(0xec ecf0ec)); // -1.67945e-20f, -2.42956e+24f, -1.67945e-20f, -2.28844e+27f, -8.665 72e+26f, -2.29155e+27f
7194 7194
7195 SkPath path2(path); 7195 SkPath path2(path);
7196 testPathOpSkipAssert(reporter, path1, path2, (SkPathOp) 2, filename); 7196 testPathOpSkipAssert(reporter, path1, path2, (SkPathOp) 2, filename);
7197 } 7197 }
7198 7198
7199 static struct TestDesc failTests[] = { 7199 static struct TestDesc failTests[] = {
7200 TEST(fuzz763_23),
7200 TEST(fuzz763_24), 7201 TEST(fuzz763_24),
7201 TEST(fuzz763_23),
7202 TEST(fuzz763_22), 7202 TEST(fuzz763_22),
7203 TEST(fuzz763_21), 7203 TEST(fuzz763_21),
7204 TEST(fuzz763_20), 7204 TEST(fuzz763_20),
7205 TEST(fuzz763_19), 7205 TEST(fuzz763_19),
7206 TEST(fuzz763_18), 7206 TEST(fuzz763_18),
7207 TEST(fuzz763_17), 7207 TEST(fuzz763_17),
7208 TEST(fuzz763_16), 7208 TEST(fuzz763_16),
7209 TEST(fuzz763_15), 7209 TEST(fuzz763_15),
7210 TEST(fuzz763_14), 7210 TEST(fuzz763_14),
7211 TEST(fuzz763_13), 7211 TEST(fuzz763_13),
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
7254 static struct TestDesc repTests[] = { 7254 static struct TestDesc repTests[] = {
7255 TEST(loops44i), 7255 TEST(loops44i),
7256 TEST(loops45i), 7256 TEST(loops45i),
7257 TEST(loops46i), 7257 TEST(loops46i),
7258 }; 7258 };
7259 7259
7260 DEF_TEST(PathOpsRepOp, reporter) { 7260 DEF_TEST(PathOpsRepOp, reporter) {
7261 for (int index = 0; index < 2; ++index) 7261 for (int index = 0; index < 2; ++index)
7262 RunTestSet(reporter, repTests, SK_ARRAY_COUNT(repTests), nullptr, nullptr, n ullptr, false); 7262 RunTestSet(reporter, repTests, SK_ARRAY_COUNT(repTests), nullptr, nullptr, n ullptr, false);
7263 } 7263 }
OLDNEW
« no previous file with comments | « src/pathops/SkOpSegment.cpp ('k') | tests/PathOpsSimplifyTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698