Lines Matching refs:xr
86 static inline void XRect_set(SkXRect* xr, const SkIRect& src) { in XRect_set() argument
87 xr->fLeft = SkIntToFixed(src.fLeft); in XRect_set()
88 xr->fTop = SkIntToFixed(src.fTop); in XRect_set()
89 xr->fRight = SkIntToFixed(src.fRight); in XRect_set()
90 xr->fBottom = SkIntToFixed(src.fBottom); in XRect_set()
97 static inline void XRect_set(SkXRect* xr, const SkRect& src) { in XRect_set() argument
98 xr->fLeft = SkScalarToFixed(src.fLeft); in XRect_set()
99 xr->fTop = SkScalarToFixed(src.fTop); in XRect_set()
100 xr->fRight = SkScalarToFixed(src.fRight); in XRect_set()
101 xr->fBottom = SkScalarToFixed(src.fBottom); in XRect_set()
106 static inline void XRect_round(const SkXRect& xr, SkIRect* dst) { in XRect_round() argument
107 dst->fLeft = SkFixedRound(xr.fLeft); in XRect_round()
108 dst->fTop = SkFixedRound(xr.fTop); in XRect_round()
109 dst->fRight = SkFixedRound(xr.fRight); in XRect_round()
110 dst->fBottom = SkFixedRound(xr.fBottom); in XRect_round()
116 static inline void XRect_roundOut(const SkXRect& xr, SkIRect* dst) { in XRect_roundOut() argument
117 dst->fLeft = SkFixedFloor(xr.fLeft); in XRect_roundOut()
118 dst->fTop = SkFixedFloor(xr.fTop); in XRect_roundOut()
119 dst->fRight = SkFixedCeil(xr.fRight); in XRect_roundOut()
120 dst->fBottom = SkFixedCeil(xr.fBottom); in XRect_roundOut()