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

Side by Side Diff: tests/PathOpsCubicQuadIntersectionTest.cpp

Issue 340103002: fix last skp bug (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 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
« no previous file with comments | « src/pathops/SkPathOpsDebug.cpp ('k') | tests/PathOpsDebug.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 2013 Google Inc. 2 * Copyright 2013 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 "PathOpsTestCommon.h" 7 #include "PathOpsTestCommon.h"
8 #include "SkIntersections.h" 8 #include "SkIntersections.h"
9 #include "SkPathOpsCubic.h" 9 #include "SkPathOpsCubic.h"
10 #include "SkPathOpsQuad.h" 10 #include "SkPathOpsQuad.h"
11 #include "SkRandom.h" 11 #include "SkRandom.h"
12 #include "SkReduceOrder.h" 12 #include "SkReduceOrder.h"
13 #include "Test.h" 13 #include "Test.h"
14 14
15 static struct lineCubic { 15 static struct quadCubic {
16 SkDCubic cubic; 16 SkDCubic cubic;
17 SkDQuad quad; 17 SkDQuad quad;
18 int answerCount; 18 int answerCount;
19 SkDPoint answers[2]; 19 SkDPoint answers[2];
20 } quadCubicTests[] = { 20 } quadCubicTests[] = {
21 #if 0 // FIXME : this should not fail (root problem behind skpcarrot_is24 ) 21 #if 0 // FIXME : this should not fail (root problem behind skpcarrot_is24 )
22 {{{{1020.08099,672.161987}, {1020.08002,630.73999}, {986.502014,597.161987}, {945.080994,597.161987}}}, 22 {{{{1020.08099,672.161987}, {1020.08002,630.73999}, {986.502014,597.161987}, {945.080994,597.161987}}},
23 {{{1020,672}, {1020,640.93396}, {998.03302,618.96698}}}, 1, 23 {{{1020,672}, {1020,640.93396}, {998.03302,618.96698}}}, 1,
24 {{1019.421, 662.449}}}, 24 {{1019.421, 662.449}}},
25 #endif 25 #endif
(...skipping 270 matching lines...) Expand 10 before | Expand all | Expand 10 after
296 } 296 }
297 SkDebugf("%1.9g ", sumCross[i] / results[i]); 297 SkDebugf("%1.9g ", sumCross[i] / results[i]);
298 } 298 }
299 #else 299 #else
300 for (int i = 1; i < slopCount; ++i) { 300 for (int i = 1; i < slopCount; ++i) {
301 SkDebugf(" slop%d,\n", i); 301 SkDebugf(" slop%d,\n", i);
302 } 302 }
303 #endif 303 #endif
304 SkDebugf("\n"); 304 SkDebugf("\n");
305 } 305 }
OLDNEW
« no previous file with comments | « src/pathops/SkPathOpsDebug.cpp ('k') | tests/PathOpsDebug.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698