| Index: include/core/SkRect.h
|
| diff --git a/include/core/SkRect.h b/include/core/SkRect.h
|
| index 39cbb330f82b207cd6a508570fe41f1372353590..f25cac6e53dddc4890b61916a8fe99fefb038cb7 100644
|
| --- a/include/core/SkRect.h
|
| +++ b/include/core/SkRect.h
|
| @@ -418,10 +418,9 @@ struct SK_API SkRect {
|
| return r;
|
| }
|
|
|
| - static SkRect SK_WARN_UNUSED_RESULT MakeLTRB(SkScalar l, SkScalar t, SkScalar r, SkScalar b) {
|
| - SkRect rect;
|
| - rect.set(l, t, r, b);
|
| - return rect;
|
| + static constexpr SkRect SK_WARN_UNUSED_RESULT MakeLTRB(SkScalar l, SkScalar t, SkScalar r,
|
| + SkScalar b) {
|
| + return SkRect {l, t, r, b};
|
| }
|
|
|
| static SkRect SK_WARN_UNUSED_RESULT MakeXYWH(SkScalar x, SkScalar y, SkScalar w, SkScalar h) {
|
|
|