Index: src/pathops/SkPathOpsTypes.h |
diff --git a/src/pathops/SkPathOpsTypes.h b/src/pathops/SkPathOpsTypes.h |
index ad2ad463e68279be9efc852f571a8246402601af..ad9c931795ddc97768e961e8e74da93081c1ced8 100644 |
--- a/src/pathops/SkPathOpsTypes.h |
+++ b/src/pathops/SkPathOpsTypes.h |
@@ -183,6 +183,10 @@ private: |
#endif |
}; |
+#define SkOPASSERT(cond) SkASSERT(this->globalState()->debugSkipAssert() || cond) |
+#define SkOPOBJASSERT(obj, cond) SkASSERT((obj->debugGlobalState() && \ |
+ obj->debugGlobalState()->debugSkipAssert()) || cond) |
+ |
// Use Almost Equal when comparing coordinates. Use epsilon to compare T values. |
bool AlmostEqualUlps(float a, float b); |
inline bool AlmostEqualUlps(double a, double b) { |