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

Unified Diff: src/pathops/SkConicLineIntersection.cpp

Issue 1299773002: Remove a couple zombie pathops files. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « BUILD.public ('k') | src/pathops/SkPathOpsPostSect.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/pathops/SkConicLineIntersection.cpp
diff --git a/src/pathops/SkConicLineIntersection.cpp b/src/pathops/SkConicLineIntersection.cpp
deleted file mode 100644
index aa1b12dc72db6228bdcdec5a66a76b93eb330cc2..0000000000000000000000000000000000000000
--- a/src/pathops/SkConicLineIntersection.cpp
+++ /dev/null
@@ -1,37 +0,0 @@
-/*
- * Copyright 2015 Google Inc.
- *
- * Use of this source code is governed by a BSD-style license that can be
- * found in the LICENSE file.
- */
-#include "SkIntersections.h"
-#include "SkPathOpsConic.h"
-#include "SkPathOpsLine.h"
-
-class LineConicIntersections {
-public:
- LineConicIntersections(const SkDConic& c, const SkDLine& l, SkIntersections* i)
- : fConic(c)
- , fLine(l)
- , fIntersections(i)
- , fAllowNear(true) {
- i->setMax(3); // allow short partial coincidence plus discrete intersection
- }
-
- void allowNear(bool allow) {
- fAllowNear = allow;
- }
-
- int intersectRay(double roots[2]) {
- return 0;
- }
-};
-
-int SkIntersections::intersectRay(const SkDConic& conic, const SkDLine& line) {
- LineConicIntersections c(conic, line, this);
- fUsed = c.intersectRay(fT[0]);
- for (int index = 0; index < fUsed; ++index) {
- fPt[index] = conic.ptAtT(fT[0][index]);
- }
- return fUsed;
-}
« no previous file with comments | « BUILD.public ('k') | src/pathops/SkPathOpsPostSect.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698