Chromium Code Reviews| Index: src/pathops/SkPathOpsRect.h |
| diff --git a/src/pathops/SkPathOpsRect.h b/src/pathops/SkPathOpsRect.h |
| index d4e5f5489a4f1f7de798e4a52ab0f60770a42f0e..1efbb8c6ea64ce8b49dec872a020f9d7c7256197 100644 |
| --- a/src/pathops/SkPathOpsRect.h |
| +++ b/src/pathops/SkPathOpsRect.h |
| @@ -64,6 +64,10 @@ struct SkDRect { |
| } |
| void setBounds(const SkDQuad& curve, const SkDQuad& sub, double tStart, double tEnd); |
| + |
| + bool valid() const { |
| + return fLeft <= fRight && fTop <= fBottom; |
| + } |
| }; |
| #endif |