diff options
Diffstat (limited to 'include/pathops/SkPathOps.h')
-rw-r--r-- | include/pathops/SkPathOps.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/pathops/SkPathOps.h b/include/pathops/SkPathOps.h index a98f4ea4d6..ba18f4ba72 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 |