| Index: include/core/SkRect.h
|
| diff --git a/include/core/SkRect.h b/include/core/SkRect.h
|
| index 91765424c71643dd2544c10406d31e221552c4ed..6bf3ffc2fc1c24241abdef72cc2c4b208ddf56e9 100644
|
| --- a/include/core/SkRect.h
|
| +++ b/include/core/SkRect.h
|
| @@ -806,12 +806,14 @@ public:
|
| * Expand this rectangle by rounding its coordinates "out", choosing the
|
| * floor of top and left, and the ceil of right and bottom. If this rect
|
| * is already on integer coordinates, then it will be unchanged.
|
| + *
|
| + * It is safe for this == dst
|
| */
|
| - void roundOut() {
|
| - this->set(SkScalarFloorToScalar(fLeft),
|
| - SkScalarFloorToScalar(fTop),
|
| - SkScalarCeilToScalar(fRight),
|
| - SkScalarCeilToScalar(fBottom));
|
| + void roundOut(SkRect* dst) const {
|
| + dst->set(SkScalarFloorToScalar(fLeft),
|
| + SkScalarFloorToScalar(fTop),
|
| + SkScalarCeilToScalar(fRight),
|
| + SkScalarCeilToScalar(fBottom));
|
| }
|
|
|
| /**
|
|
|