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