| Index: src/pathops/SkPathOpsPoint.h
|
| diff --git a/src/pathops/SkPathOpsPoint.h b/src/pathops/SkPathOpsPoint.h
|
| index 35ad80ea4cc8bd572c07d9704997b18776b8c87d..c596b91cc09b28d7fbb6b96b112a3279aafc2837 100644
|
| --- a/src/pathops/SkPathOpsPoint.h
|
| +++ b/src/pathops/SkPathOpsPoint.h
|
| @@ -115,6 +115,20 @@ struct SkDPoint {
|
| fY -= v.fY;
|
| }
|
|
|
| + // only used by testing
|
| + SkDPoint operator+(const SkDVector& v) {
|
| + SkDPoint result = *this;
|
| + result += v;
|
| + return result;
|
| + }
|
| +
|
| + // only used by testing
|
| + SkDPoint operator-(const SkDVector& v) {
|
| + SkDPoint result = *this;
|
| + result -= v;
|
| + return result;
|
| + }
|
| +
|
| // note: this can not be implemented with
|
| // return approximately_equal(a.fY, fY) && approximately_equal(a.fX, fX);
|
| // because that will not take the magnitude of the values into account
|
|
|