| Index: include/core/SkRect.h
|
| diff --git a/include/core/SkRect.h b/include/core/SkRect.h
|
| index 0038c7c2fa2bbe3ad4fa14f403151ef9553063c6..8e4d669c48279c02c08ede805d43f44c935b9dcd 100644
|
| --- a/include/core/SkRect.h
|
| +++ b/include/core/SkRect.h
|
| @@ -395,6 +395,12 @@ struct SK_API SkRect {
|
| return r;
|
| }
|
|
|
| + static SkRect SK_WARN_UNUSED_RESULT MakeIWH(int w, int h) {
|
| + SkRect r;
|
| + r.set(0, 0, SkIntToScalar(w), SkIntToScalar(h));
|
| + return r;
|
| + }
|
| +
|
| static SkRect SK_WARN_UNUSED_RESULT MakeSize(const SkSize& size) {
|
| SkRect r;
|
| r.set(0, 0, size.width(), size.height());
|
|
|