diff options
author | reed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2013-12-17 19:22:07 +0000 |
---|---|---|
committer | reed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2013-12-17 19:22:07 +0000 |
commit | e1ca705cac4b946993f6cbf798e2a0ba27e739f3 (patch) | |
tree | 9757af858cadeea671264651780935b00d8c0252 /include/core/SkSize.h | |
parent | 3fb15f4d21292a319dc6522bfc99c89a7a5eac68 (diff) |
deprecate SkScalarRound (and its ilk), use SkScalarRound[ToInt,ToScalar]. #define SK_SUPPORT_DEPRECATED_SCALARROUND for legacy clients
BUG=
R=robertphillips@google.com
Review URL: https://codereview.chromium.org/111353003
git-svn-id: http://skia.googlecode.com/svn/trunk@12719 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'include/core/SkSize.h')
-rw-r--r-- | include/core/SkSize.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/core/SkSize.h b/include/core/SkSize.h index 01c6e35083..7bc8c7165d 100644 --- a/include/core/SkSize.h +++ b/include/core/SkSize.h @@ -90,19 +90,19 @@ struct SkSize : public SkTSize<SkScalar> { SkISize toRound() const { SkISize s; - s.set(SkScalarRound(fWidth), SkScalarRound(fHeight)); + s.set(SkScalarRoundToInt(fWidth), SkScalarRoundToInt(fHeight)); return s; } SkISize toCeil() const { SkISize s; - s.set(SkScalarCeil(fWidth), SkScalarCeil(fHeight)); + s.set(SkScalarCeilToInt(fWidth), SkScalarCeilToInt(fHeight)); return s; } SkISize toFloor() const { SkISize s; - s.set(SkScalarFloor(fWidth), SkScalarFloor(fHeight)); + s.set(SkScalarFloorToInt(fWidth), SkScalarFloorToInt(fHeight)); return s; } }; |