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

Unified Diff: experimental/Intersection/QuadraticIntersection_TestData.cpp

Issue 867213004: remove prototype pathops code (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 11 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 side-by-side diff with in-line comments
Download patch
Index: experimental/Intersection/QuadraticIntersection_TestData.cpp
diff --git a/experimental/Intersection/QuadraticIntersection_TestData.cpp b/experimental/Intersection/QuadraticIntersection_TestData.cpp
deleted file mode 100644
index 9ec585a73048974e54870c94b18b1a0daa0a5194..0000000000000000000000000000000000000000
--- a/experimental/Intersection/QuadraticIntersection_TestData.cpp
+++ /dev/null
@@ -1,98 +0,0 @@
-/*
- * Copyright 2012 Google Inc.
- *
- * Use of this source code is governed by a BSD-style license that can be
- * found in the LICENSE file.
- */
-
-#include "QuadraticIntersection_TestData.h"
-
-const Quadratic quadraticLines[] = {
- {{0, 0}, {0, 0}, {1, 0}},
- {{0, 0}, {1, 0}, {0, 0}},
- {{1, 0}, {0, 0}, {0, 0}},
- {{1, 0}, {2, 0}, {3, 0}},
- {{0, 0}, {0, 0}, {0, 1}},
- {{0, 0}, {0, 1}, {0, 0}},
- {{0, 1}, {0, 0}, {0, 0}},
- {{0, 1}, {0, 2}, {0, 3}},
- {{0, 0}, {0, 0}, {1, 1}},
- {{0, 0}, {1, 1}, {0, 0}},
- {{1, 1}, {0, 0}, {0, 0}},
- {{1, 1}, {2, 2}, {3, 3}},
- {{1, 1}, {3, 3}, {3, 3}},
- {{1, 1}, {1, 1}, {2, 2}},
- {{1, 1}, {2, 2}, {1, 1}},
- {{1, 1}, {1, 1}, {3, 3}},
- {{1, 1}, {2, 2}, {4, 4}}, // no coincident
- {{1, 1}, {3, 3}, {4, 4}},
- {{1, 1}, {3, 3}, {2, 2}},
- {{1, 1}, {4, 4}, {2, 2}},
- {{1, 1}, {4, 4}, {3, 3}},
- {{2, 2}, {1, 1}, {3, 3}},
- {{2, 2}, {1, 1}, {4, 4}},
- {{2, 2}, {3, 3}, {1, 1}},
- {{2, 2}, {3, 3}, {4, 4}},
- {{2, 2}, {4, 4}, {1, 1}},
- {{2, 2}, {4, 4}, {3, 3}},
-};
-
-const size_t quadraticLines_count = sizeof(quadraticLines) / sizeof(quadraticLines[0]);
-
-static const double F = PointEpsilon * 3;
-static const double H = PointEpsilon * 4;
-static const double J = PointEpsilon * 5;
-static const double K = PointEpsilon * 8; // INVESTIGATE: why are larger multiples necessary?
-
-const Quadratic quadraticModEpsilonLines[] = {
- {{0, F}, {0, 0}, {1, 0}},
- {{0, 0}, {1, 0}, {0, F}},
- {{1, 0}, {0, F}, {0, 0}},
- {{1, H}, {2, 0}, {3, 0}},
- {{F, 0}, {0, 0}, {0, 1}},
- {{0, 0}, {0, 1}, {F, 0}},
- {{0, 1}, {F, 0}, {0, 0}},
- {{H, 1}, {0, 2}, {0, 3}},
- {{0, F}, {0, 0}, {1, 1}},
- {{0, 0}, {1, 1}, {F, 0}},
- {{1, 1}, {F, 0}, {0, 0}},
- {{1, 1+J}, {2, 2}, {3, 3}},
- {{1, 1}, {3, 3}, {3+F, 3}},
- {{1, 1}, {1+F, 1}, {2, 2}},
- {{1, 1}, {2, 2}, {1, 1+F}},
- {{1, 1}, {1, 1+F}, {3, 3}},
- {{1+H, 1}, {2, 2}, {4, 4}}, // no coincident
- {{1, 1+K}, {3, 3}, {4, 4}},
- {{1, 1}, {3+F, 3}, {2, 2}},
- {{1, 1}, {4, 4+F}, {2, 2}},
- {{1, 1}, {4, 4}, {3+F, 3}},
- {{2, 2}, {1, 1}, {3, 3+F}},
- {{2+F, 2}, {1, 1}, {4, 4}},
- {{2, 2+F}, {3, 3}, {1, 1}},
- {{2, 2}, {3+F, 3}, {4, 4}},
- {{2, 2}, {4, 4+F}, {1, 1}},
- {{2, 2}, {4, 4}, {3+F, 3}},
-};
-
-const size_t quadraticModEpsilonLines_count = sizeof(quadraticModEpsilonLines) / sizeof(quadraticModEpsilonLines[0]);
-
-const Quadratic quadraticTests[][2] = {
- { // one intersection
- {{0, 0},
- {0, 1},
- {1, 1}},
- {{0, 1},
- {0, 0},
- {1, 0}}
- },
- { // four intersections
- {{1, 0},
- {2, 6},
- {3, 0}},
- {{0, 1},
- {6, 2},
- {0, 3}}
- }
-};
-
-const size_t quadraticTests_count = sizeof(quadraticTests) / sizeof(quadraticTests[0]);
« no previous file with comments | « experimental/Intersection/QuadraticIntersection_TestData.h ('k') | experimental/Intersection/QuadraticLineSegments.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698