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

Unified Diff: tests/PathOpsQuadParameterizationTest.cpp

Issue 131103009: update pathops to circle sort (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: disable old test that still fails on linux 32 release Created 6 years, 8 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
« no previous file with comments | « tests/PathOpsQuadLineIntersectionThreadedTest.cpp ('k') | tests/PathOpsSimplifyFailTest.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/PathOpsQuadParameterizationTest.cpp
diff --git a/tests/PathOpsQuadParameterizationTest.cpp b/tests/PathOpsQuadParameterizationTest.cpp
index 809243c8191ba631ea6aa3bad28ccf677bf42c0b..c7a2e8725efd872436ba348148d3e9a046dd5f74 100644
--- a/tests/PathOpsQuadParameterizationTest.cpp
+++ b/tests/PathOpsQuadParameterizationTest.cpp
@@ -24,22 +24,22 @@ static const SkDQuad quadratics[] = {
{{{0, 0}, {1, 0}, {1, 1}}},
};
-static const size_t quadratics_count = SK_ARRAY_COUNT(quadratics);
+static const int quadratics_count = (int) SK_ARRAY_COUNT(quadratics);
DEF_TEST(PathOpsQuadImplicit, reporter) {
// split large quadratic
// compare original, parts, to see if the are coincident
- for (size_t index = 0; index < quadratics_count; ++index) {
+ for (int index = 0; index < quadratics_count; ++index) {
const SkDQuad& test = quadratics[index];
SkDQuadPair split = test.chopAt(0.5);
SkDQuad midThird = test.subDivide(1.0/3, 2.0/3);
const SkDQuad* quads[] = {
&test, &midThird, &split.first(), &split.second()
};
- size_t quadsCount = SK_ARRAY_COUNT(quads);
- for (size_t one = 0; one < quadsCount; ++one) {
- for (size_t two = 0; two < quadsCount; ++two) {
- for (size_t inner = 0; inner < 3; inner += 2) {
+ int quadsCount = (int) SK_ARRAY_COUNT(quads);
+ for (int one = 0; one < quadsCount; ++one) {
+ for (int two = 0; two < quadsCount; ++two) {
+ for (int inner = 0; inner < 3; inner += 2) {
REPORTER_ASSERT(reporter, point_on_parameterized_curve(*quads[one],
(*quads[two])[inner]));
}
« no previous file with comments | « tests/PathOpsQuadLineIntersectionThreadedTest.cpp ('k') | tests/PathOpsSimplifyFailTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698