Lines Matching defs:src
100 /** Assign an SkXRect from a SkIRect, by promoting the src rect's coordinates
101 from int to SkFixed. Does not check for overflow if the src coordinates
104 static inline void XRect_set(SkXRect* xr, const SkIRect& src) {
105 xr->fLeft = SkIntToFixed(src.fLeft);
106 xr->fTop = SkIntToFixed(src.fTop);
107 xr->fRight = SkIntToFixed(src.fRight);
108 xr->fBottom = SkIntToFixed(src.fBottom);
111 /** Assign an SkXRect from a SkRect, by promoting the src rect's coordinates
112 from SkScalar to SkFixed. Does not check for overflow if the src coordinates
115 static inline void XRect_set(SkXRect* xr, const SkRect& src) {
116 xr->fLeft = SkScalarToFixed(src.fLeft);
117 xr->fTop = SkScalarToFixed(src.fTop);
118 xr->fRight = SkScalarToFixed(src.fRight);
119 xr->fBottom = SkScalarToFixed(src.fBottom);