aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/core/SkRegion.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/core/SkRegion.h')
-rw-r--r--include/core/SkRegion.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/core/SkRegion.h b/include/core/SkRegion.h
index 32be090764..84ab670cc3 100644
--- a/include/core/SkRegion.h
+++ b/include/core/SkRegion.h
@@ -117,7 +117,9 @@ public:
* If left < right and top < bottom, set this region to that rectangle and
* return true, otherwise set this region to empty and return false.
*/
- bool setRect(int32_t left, int32_t top, int32_t right, int32_t bottom);
+ bool setRect(int32_t left, int32_t top, int32_t right, int32_t bottom) {
+ return this->setRect({ left, top, right, bottom });
+ }
/**
* Set this region to the union of an array of rects. This is generally