X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=src%2Fthird_party%2Fskia%2Finclude%2Fpathops%2FSkPathOps.h;h=ba18f4ba72f50738e4d7f09618db2db3e6c5ba80;hb=4a1a0bdd01eef90b0826a0e761d3379d3715c10f;hp=a98f4ea4d6d55f5d3b891c426d165bf8a79c6f05;hpb=b1be5ca53587d23e7aeb77b26861fdc0a181ffd8;p=platform%2Fframework%2Fweb%2Fcrosswalk.git diff --git a/src/third_party/skia/include/pathops/SkPathOps.h b/src/third_party/skia/include/pathops/SkPathOps.h index a98f4ea..ba18f4b 100644 --- a/src/third_party/skia/include/pathops/SkPathOps.h +++ b/src/third_party/skia/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