| Index: include/pathops/SkPathOps.h
|
| diff --git a/include/pathops/SkPathOps.h b/include/pathops/SkPathOps.h
|
| index a98f4ea4d6d55f5d3b891c426d165bf8a79c6f05..ba18f4ba72f50738e4d7f09618db2db3e6c5ba80 100644
|
| --- a/include/pathops/SkPathOps.h
|
| +++ b/include/pathops/SkPathOps.h
|
| @@ -10,6 +10,7 @@
|
| #include "SkPreConfig.h"
|
|
|
| class SkPath;
|
| +struct SkRect;
|
|
|
| // FIXME: move everything below into the SkPath class
|
| /**
|
| @@ -54,4 +55,12 @@ bool SK_API Op(const SkPath& one, const SkPath& two, SkPathOp op, SkPath* result
|
| */
|
| bool SK_API Simplify(const SkPath& path, SkPath* result);
|
|
|
| +/** Set the resulting rectangle to the tight bounds of the path.
|
| +
|
| + @param path The path measured.
|
| + @param result The tight bounds of the path.
|
| + @return True if the bounds could be computed.
|
| + */
|
| +bool SK_API TightBounds(const SkPath& path, SkRect* result);
|
| +
|
| #endif
|
|
|