diff options
author | 2014-10-15 07:05:09 -0700 | |
---|---|---|
committer | 2014-10-15 07:05:09 -0700 | |
commit | 157f36d358814a2235aa6284b78a67b725076063 (patch) | |
tree | 194f439b95cb243ab6978ae5ec839b4ddb39b3a3 /include | |
parent | a365947babca873d14e843ccd74098e8c69d65ef (diff) |
add tests for large cordinates bounds when building aaclip
BUG=skia:
TBR=
Review URL: https://codereview.chromium.org/658753002
Diffstat (limited to 'include')
-rw-r--r-- | include/core/SkRect.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/core/SkRect.h b/include/core/SkRect.h index 995beb8662..96bf0f4d90 100644 --- a/include/core/SkRect.h +++ b/include/core/SkRect.h @@ -75,6 +75,8 @@ struct SK_API SkIRect { */ int height() const { return fBottom - fTop; } + SkISize size() const { return SkISize::Make(this->width(), this->height()); } + /** * Since the center of an integer rect may fall on a factional value, this * method is defined to return (right + left) >> 1. |