commit | e1ca705cac4b946993f6cbf798e2a0ba27e739f3 | [log] [tgz] |
---|---|---|
author | reed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | Tue Dec 17 19:22:07 2013 +0000 |
committer | reed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | Tue Dec 17 19:22:07 2013 +0000 |
tree | 9757af858cadeea671264651780935b00d8c0252 | |
parent | 3fb15f4d21292a319dc6522bfc99c89a7a5eac68 [diff] [blame] |
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
diff --git a/src/effects/SkEmbossMaskFilter.cpp b/src/effects/SkEmbossMaskFilter.cpp index 905cfab..1306d6a 100644 --- a/src/effects/SkEmbossMaskFilter.cpp +++ b/src/effects/SkEmbossMaskFilter.cpp
@@ -89,7 +89,7 @@ dst->fFormat = SkMask::k3D_Format; if (margin) { - margin->set(SkScalarCeil(3*sigma), SkScalarCeil(3*sigma)); + margin->set(SkScalarCeilToInt(3*sigma), SkScalarCeilToInt(3*sigma)); } if (src.fImage == NULL) {