diff options
author | reed@android.com <reed@android.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2010-06-15 00:57:50 +0000 |
---|---|---|
committer | reed@android.com <reed@android.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2010-06-15 00:57:50 +0000 |
commit | f59799139bacd300bf5251a1ca4e6b2ad3196457 (patch) | |
tree | 4b4b5149b2539423a86c325d76eda044050cbfa2 /include/core | |
parent | 4f9cdcc810bd4af92a2383d29214fa9691dccef3 (diff) |
rename round, ceil, etc. to avoid some platform macros
git-svn-id: http://skia.googlecode.com/svn/trunk@577 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'include/core')
-rw-r--r-- | include/core/SkSize.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/include/core/SkSize.h b/include/core/SkSize.h index 9df9508f7d..8371c9b21b 100644 --- a/include/core/SkSize.h +++ b/include/core/SkSize.h @@ -83,19 +83,19 @@ struct SkSize : public SkTSize<SkScalar> { return *this; } - SkISize round() const { + SkISize toRound() const { SkISize s; s.set(SkScalarRound(fWidth), SkScalarRound(fHeight)); return s; } - - SkISize ceil() const { + + SkISize toCeil() const { SkISize s; s.set(SkScalarCeil(fWidth), SkScalarCeil(fHeight)); return s; } - SkISize floor() const { + SkISize toFloor() const { SkISize s; s.set(SkScalarFloor(fWidth), SkScalarFloor(fHeight)); return s; |