Home
last modified time | relevance | path

Searched refs:SkScalarToFixed (Results 1 – 18 of 18) sorted by relevance

/external/skia/src/core/
DSkScan.h109 xr->fLeft = SkScalarToFixed(src.fLeft); in XRect_set()
110 xr->fTop = SkScalarToFixed(src.fTop); in XRect_set()
111 xr->fRight = SkScalarToFixed(src.fRight); in XRect_set()
112 xr->fBottom = SkScalarToFixed(src.fBottom); in XRect_set()
DSkFindAndPlaceGlyph.h388 return {SkScalarToFixed(SkScalarFraction(position.fX) + kSubpixelRounding), 0};
390 return {0, SkScalarToFixed(SkScalarFraction(position.fY) + kSubpixelRounding)};
392 return {SkScalarToFixed(SkScalarFraction(position.fX) + kSubpixelRounding),
393 SkScalarToFixed(SkScalarFraction(position.fY) + kSubpixelRounding)};
DSkScan_Hairline.cpp153 r.set(SkScalarToFixed(rect.fLeft) >> 16, in HairRect()
154 SkScalarToFixed(rect.fTop) >> 16, in HairRect()
155 (SkScalarToFixed(rect.fRight) >> 16) + 1, in HairRect()
156 (SkScalarToFixed(rect.fBottom) >> 16) + 1); in HairRect()
DSkBitmapProcState.cpp200 fInvSx = SkScalarToFixed(fInvMatrix.getScaleX()); in chooseProcs()
202 fInvKy = SkScalarToFixed(fInvMatrix.getSkewY()); in chooseProcs()
DSkMatrix.cpp1278 fX = SkScalarToFixed(pt.fX); in SkPerspIter()
1279 fY = SkScalarToFixed(pt.fY); in SkPerspIter()
1297 fX = SkScalarToFixed(pt.fX); in next()
1298 fY = SkScalarToFixed(pt.fY); in next()
1304 fX = SkScalarToFixed(pt.fX); in next()
1305 fY = SkScalarToFixed(pt.fY); in next()
DSkDraw.cpp388 SkFixed x = SkScalarToFixed(devPts[i].fX); in bw_square_proc()
389 SkFixed y = SkScalarToFixed(devPts[i].fY); in bw_square_proc()
405 SkFixed x = SkScalarToFixed(devPts[i].fX); in aa_square_proc()
406 SkFixed y = SkScalarToFixed(devPts[i].fY); in aa_square_proc()
450 fRadius = SkScalarToFixed(width * sx) >> 1; in init()
/external/skia/src/effects/
DSkEmbossMask.cpp88 SkFixed lx = SkScalarToFixed(light.fDirection[0]); in Emboss()
89 SkFixed ly = SkScalarToFixed(light.fDirection[1]); in Emboss()
90 SkFixed lz = SkScalarToFixed(light.fDirection[2]); in Emboss()
DGrCircleBlurFragmentProcessor.cpp286 sigmaToCircleRRatioFixed = SkScalarToFixed(sigmaToCircleRRatio); in create_profile_texture()
/external/skia/src/gpu/ops/
DGrSmallPathRenderer.h79 SkFixed fracX = SkScalarToFixed(SkScalarFraction(tx)) & 0x0000FF00; in set()
80 SkFixed fracY = SkScalarToFixed(SkScalarFraction(ty)) & 0x0000FF00; in set()
/external/skia/src/gpu/
DGrSoftwarePathRenderer.cpp192 SkFixed fracX = SkScalarToFixed(SkScalarFraction(tx)) & 0x0000FF00; in onDrawPath()
193 SkFixed fracY = SkScalarToFixed(SkScalarFraction(ty)) & 0x0000FF00; in onDrawPath()
/external/skia/tests/
DTypefaceTest.cpp122 SkFixed fixedRead = SkScalarToFixed(positionRead[0].value); in DEF_TEST()
123 SkFixed fixedOriginal = SkScalarToFixed(position[0].value); in DEF_TEST()
/external/skia/src/ports/
DSkFontHost_FreeType.cpp834 fMatrix22.xx = SkScalarToFixed(fMatrix22Scalar.getScaleX()); in SkScalerContext_FreeType()
835 fMatrix22.xy = SkScalarToFixed(-fMatrix22Scalar.getSkewX()); in SkScalerContext_FreeType()
836 fMatrix22.yx = SkScalarToFixed(-fMatrix22Scalar.getSkewY()); in SkScalerContext_FreeType()
837 fMatrix22.yy = SkScalarToFixed(fMatrix22Scalar.getScaleY()); in SkScalerContext_FreeType()
958 fMatrix22.xx = SkScalarToFixed(fMatrix22Scalar.getScaleX()); in SkScalerContext_FreeType()
959 fMatrix22.xy = SkScalarToFixed(-fMatrix22Scalar.getSkewX()); in SkScalerContext_FreeType()
960 fMatrix22.yx = SkScalarToFixed(-fMatrix22Scalar.getSkewY()); in SkScalerContext_FreeType()
961 fMatrix22.yy = SkScalarToFixed(fMatrix22Scalar.getScaleY()); in SkScalerContext_FreeType()
1873 axisValues[i] = SkScalarToFixed(axisValue); in computeAxisValues()
DSkFontHost_win.cpp142 return SkFixedToFIXED(SkScalarToFixed(x)); in SkScalarToFIXED()
/external/skia/include/private/
DSkFixed.h142 #define SkScalarToFixed(x) SkFloatToFixed(x) macro
/external/skia/src/utils/
DSkInterpolator.cpp229 return SkScalarToFixed(x) >> 2; in pin_and_convert()
/external/skia/src/effects/gradients/
DSkRadialGradient.cpp228 unsigned fi = proc(SkScalarToFixed(srcPt.length())); in shadeSpan()
DSkGradientShader.cpp264 recs->fPos = SkScalarToFixed(curr); in SkGradientShaderBase()
265 SkFixed diff = SkScalarToFixed(curr - prev); in SkGradientShaderBase()
DSkLinearGradient.cpp389 unsigned fi = proc(SkScalarToFixed(srcPt.fX)); in shadeSpan()