| Index: src/pathops/SkPathOpsRect.h
|
| ===================================================================
|
| --- src/pathops/SkPathOpsRect.h (revision 9040)
|
| +++ src/pathops/SkPathOpsRect.h (working copy)
|
| @@ -27,7 +27,6 @@
|
| }
|
| }
|
|
|
| - // FIXME: used by debugging only ?
|
| bool contains(const SkDPoint& pt) const {
|
| return approximately_between(fLeft, pt.fX, fRight)
|
| && approximately_between(fTop, pt.fY, fBottom);
|
| @@ -46,6 +45,14 @@
|
| fTop = fBottom = pt.fY;
|
| }
|
|
|
| + double width() const {
|
| + return fRight - fLeft;
|
| + }
|
| +
|
| + double height() const {
|
| + return fBottom - fTop;
|
| + }
|
| +
|
| void setBounds(const SkDLine&);
|
| void setBounds(const SkDCubic&);
|
| void setBounds(const SkDQuad&);
|
|
|