Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(421)

Unified Diff: include/core/SkRect.h

Issue 658753002: add tests for large cordinates bounds when building aaclip (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | tests/AAClipTest.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/core/SkRect.h
diff --git a/include/core/SkRect.h b/include/core/SkRect.h
index 995beb8662ee8a8e395b50435c8e33c44ecce2ca..96bf0f4d9088bf64e8c02dea5e5d625bc9752564 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.
« no previous file with comments | « no previous file | tests/AAClipTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698