diff options
author | humper@google.com <humper@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2013-01-07 19:54:40 +0000 |
---|---|---|
committer | humper@google.com <humper@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2013-01-07 19:54:40 +0000 |
commit | 0e51577a14f903ffeafa117a75954baeb173ffb9 (patch) | |
tree | 3f3d849f3b6ec7778660f0da19f5d4175ba9f800 /src/core/SkScan_Hairline.cpp | |
parent | af2bd7bdf593b3fc91bb1acffcc4a51bdb2f29ec (diff) |
fix warning from scalar --> int32 conversion
BUG=
Review URL: https://codereview.appspot.com/7065050
git-svn-id: http://skia.googlecode.com/svn/trunk@7061 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'src/core/SkScan_Hairline.cpp')
-rw-r--r-- | src/core/SkScan_Hairline.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/core/SkScan_Hairline.cpp b/src/core/SkScan_Hairline.cpp index 69095c0c6d..9e567b6d25 100644 --- a/src/core/SkScan_Hairline.cpp +++ b/src/core/SkScan_Hairline.cpp @@ -33,10 +33,12 @@ static void vertline(int y, int stopy, SkFixed fx, SkFixed dx, } while (++y < stopy); } +#ifdef SK_DEBUG static bool canConvertFDot6ToFixed(SkFDot6 x) { const int maxDot6 = SK_MaxS32 >> (16 - 6); return SkAbs32(x) <= maxDot6; } +#endif void SkScan::HairLineRgn(const SkPoint& pt0, const SkPoint& pt1, const SkRegion* clip, SkBlitter* blitter) { |