diff options
author | 2009-01-15 14:38:33 +0000 | |
---|---|---|
committer | 2009-01-15 14:38:33 +0000 | |
commit | fc25abdabff76f913fb9d4f373418c10a1eca92b (patch) | |
tree | 9547b99990237c1b1ac1e68a72eadfaa8f4d0723 /include/core/SkScan.h | |
parent | b50a60c463ae4e2475de8a421b0056b03335b28e (diff) |
fix warnings
git-svn-id: http://skia.googlecode.com/svn/trunk@68 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'include/core/SkScan.h')
-rw-r--r-- | include/core/SkScan.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/include/core/SkScan.h b/include/core/SkScan.h index 379c016b41..037dc09f16 100644 --- a/include/core/SkScan.h +++ b/include/core/SkScan.h @@ -83,7 +83,7 @@ public: from int to SkFixed. Does not check for overflow if the src coordinates exceed 32K */ -static void XRect_set(SkXRect* xr, const SkIRect& src) { +static inline void XRect_set(SkXRect* xr, const SkIRect& src) { xr->fLeft = SkIntToFixed(src.fLeft); xr->fTop = SkIntToFixed(src.fTop); xr->fRight = SkIntToFixed(src.fRight); @@ -94,7 +94,7 @@ static void XRect_set(SkXRect* xr, const SkIRect& src) { from SkScalar to SkFixed. Does not check for overflow if the src coordinates exceed 32K */ -static void XRect_set(SkXRect* xr, const SkRect& src) { +static inline void XRect_set(SkXRect* xr, const SkRect& src) { xr->fLeft = SkScalarToFixed(src.fLeft); xr->fTop = SkScalarToFixed(src.fTop); xr->fRight = SkScalarToFixed(src.fRight); @@ -103,7 +103,7 @@ static void XRect_set(SkXRect* xr, const SkRect& src) { /** Round the SkXRect coordinates, and store the result in the SkIRect. */ -static void XRect_round(const SkXRect& xr, SkIRect* dst) { +static inline void XRect_round(const SkXRect& xr, SkIRect* dst) { dst->fLeft = SkFixedRound(xr.fLeft); dst->fTop = SkFixedRound(xr.fTop); dst->fRight = SkFixedRound(xr.fRight); @@ -113,7 +113,7 @@ static void XRect_round(const SkXRect& xr, SkIRect* dst) { /** Round the SkXRect coordinates out (i.e. use floor for left/top, and ceiling for right/bottom), and store the result in the SkIRect. */ -static void XRect_roundOut(const SkXRect& xr, SkIRect* dst) { +static inline void XRect_roundOut(const SkXRect& xr, SkIRect* dst) { dst->fLeft = SkFixedFloor(xr.fLeft); dst->fTop = SkFixedFloor(xr.fTop); dst->fRight = SkFixedCeil(xr.fRight); |