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

Unified Diff: experimental/Intersection/EdgeWalkerQuadralaterals_Test.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/EdgeWalkerQuadralaterals_Test.cpp
diff --git a/experimental/Intersection/EdgeWalkerQuadralaterals_Test.cpp b/experimental/Intersection/EdgeWalkerQuadralaterals_Test.cpp
deleted file mode 100644
index 92e474b84a9679710625bd1615b51ad46e8fb0b4..0000000000000000000000000000000000000000
--- a/experimental/Intersection/EdgeWalkerQuadralaterals_Test.cpp
+++ /dev/null
@@ -1,126 +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 "EdgeWalker_Test.h"
-#include "Intersection_Tests.h"
-#include "SkBitmap.h"
-
-static SkBitmap bitmap;
-
-static void testSimplifyQuad1() {
- SkPath path, out;
- path.moveTo(0, 0);
- path.lineTo(1, 0);
- path.lineTo(3, 2);
- path.lineTo(3, 3);
- path.close();
- path.moveTo(1, 0);
- path.lineTo(1, 3);
- path.lineTo(1, 3);
- path.lineTo(1, 3);
- path.close();
- testSimplify(path, true, out, bitmap);
-}
-
-static void testSimplifyQuad2() {
- SkPath path, out;
- path.moveTo(0, 0);
- path.lineTo(0, 0);
- path.lineTo(0, 0);
- path.lineTo(0, 2);
- path.close();
- path.moveTo(0, 1);
- path.lineTo(0, 1);
- path.lineTo(1, 1);
- path.lineTo(0, 2);
- path.close();
- testSimplify(path, true, out, bitmap);
-}
-
-static void testSimplifyQuad3() {
- SkPath path, out;
- path.moveTo(0, 0);
- path.lineTo(0, 0);
- path.lineTo(1, 0);
- path.lineTo(1, 2);
- path.close();
- path.moveTo(0, 1);
- path.lineTo(1, 1);
- path.lineTo(2, 1);
- path.lineTo(0, 2);
- path.close();
- testSimplify(path, true, out, bitmap);
-}
-
-static void testSimplifyQuad4() {
- SkPath path, out;
- path.moveTo(0, 0);
- path.lineTo(0, 0);
- path.lineTo(1, 0);
- path.lineTo(2, 2);
- path.close();
- path.moveTo(0, 0);
- path.lineTo(2, 1);
- path.lineTo(3, 1);
- path.lineTo(3, 3);
- path.close();
- testSimplify(path, true, out, bitmap);
-}
-
-static void testSimplifyQuad5() {
- SkPath path, out;
- path.moveTo(0, 0);
- path.lineTo(0, 0);
- path.lineTo(1, 0);
- path.lineTo(3, 2);
- path.close();
- path.moveTo(0, 1);
- path.lineTo(1, 1);
- path.lineTo(2, 1);
- path.lineTo(0, 2);
- path.close();
- testSimplify(path, true, out, bitmap);
-}
-
-static void testSimplifyQuad6() {
- SkPath path, out;
- path.moveTo(0, 0);
- path.lineTo(1, 0);
- path.lineTo(1, 1);
- path.lineTo(3, 3);
- path.close();
- path.moveTo(1, 1);
- path.lineTo(1, 1);
- path.lineTo(1, 1);
- path.lineTo(2, 2);
- path.close();
- testSimplify(path, true, out, bitmap);
-}
-
-static void (*simplifyTests[])() = {
- testSimplifyQuad6,
- testSimplifyQuad5,
- testSimplifyQuad4,
- testSimplifyQuad3,
- testSimplifyQuad2,
- testSimplifyQuad1,
-};
-
-static size_t simplifyTestsCount = sizeof(simplifyTests) / sizeof(simplifyTests[0]);
-
-static void (*firstTest)() = 0;
-
-void SimplifyQuadralateralPaths_Test() {
- size_t index = 0;
- if (firstTest) {
- while (index < simplifyTestsCount && simplifyTests[index] != firstTest) {
- ++index;
- }
- }
- for ( ; index < simplifyTestsCount; ++index) {
- (*simplifyTests[index])();
- }
-}
« no previous file with comments | « experimental/Intersection/EdgeWalkerPolygons_Test.cpp ('k') | experimental/Intersection/EdgeWalkerQuadratic4x4_Test.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698