Home
last modified time | relevance | path

Searched refs:SkFloatToFixed (Results 1 – 7 of 7) sorted by relevance

/external/skia/include/private/
DSkFixed.h34 #define SkFloatToFixed(x) ((SkFixed)((x) * SK_Fixed1)) macro
44 #define SkFloatToFixed_Check(x) SkFloatToFixed(x)
135 #undef SkFloatToFixed
136 #define SkFloatToFixed(x) SkFloatToFixed_arm(x) macro
142 #define SkScalarToFixed(x) SkFloatToFixed(x)
/external/skia/src/core/
DSkICC.cpp286 ptr[2] = SkEndian_SwapBE32(SkFloatToFixed(toXYZ.getFloat(0, col))); in write_xyz_tag()
287 ptr[3] = SkEndian_SwapBE32(SkFloatToFixed(toXYZ.getFloat(1, col))); in write_xyz_tag()
288 ptr[4] = SkEndian_SwapBE32(SkFloatToFixed(toXYZ.getFloat(2, col))); in write_xyz_tag()
295 ptr[3] = SkEndian_SwapBE32(SkFloatToFixed(fn.fG)); in write_trc_tag()
296 ptr[4] = SkEndian_SwapBE32(SkFloatToFixed(fn.fA)); in write_trc_tag()
297 ptr[5] = SkEndian_SwapBE32(SkFloatToFixed(fn.fB)); in write_trc_tag()
298 ptr[6] = SkEndian_SwapBE32(SkFloatToFixed(fn.fC)); in write_trc_tag()
299 ptr[7] = SkEndian_SwapBE32(SkFloatToFixed(fn.fD)); in write_trc_tag()
300 ptr[8] = SkEndian_SwapBE32(SkFloatToFixed(fn.fE)); in write_trc_tag()
301 ptr[9] = SkEndian_SwapBE32(SkFloatToFixed(fn.fF)); in write_trc_tag()
/external/skia/bench/
DInterpBench.cpp63 SkFixed curr = SkFloatToFixed(fx); in performTest()
64 SkFixed step = SkFloatToFixed(dx); in performTest()
135 tmp = SkFloatToFixed(fx); dst[i + 0] = TILE(tmp, count); fx += dx; in performTest()
136 tmp = SkFloatToFixed(fx); dst[i + 1] = TILE(tmp, count); fx += dx; in performTest()
137 tmp = SkFloatToFixed(fx); dst[i + 2] = TILE(tmp, count); fx += dx; in performTest()
138 tmp = SkFloatToFixed(fx); dst[i + 3] = TILE(tmp, count); fx += dx; in performTest()
DMathBench.cpp517 fResult[i] = SkFloatToFixed(fData[i]); in onDraw()
/external/skia/src/effects/gradients/
DSkTwoPointConicalGradient.cpp131 return SkFloatToFixed(t); in nextT()
DSkRadialGradient.cpp164 const SkFixed dist = SkFloatToFixed(sk_float_sqrt(fx*fx + fy*fy)); in shadeSpan_radial()
/external/skia/src/ports/
DSkFontHost_win.cpp588 return SkFixedToFIXED(SkFloatToFixed(x)); in float2FIXED()