Home
last modified time | relevance | path

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

/external/skia/src/core/
DSkScan.h110 xr->fLeft = SkScalarToFixed(src.fLeft); in XRect_set()
111 xr->fTop = SkScalarToFixed(src.fTop); in XRect_set()
112 xr->fRight = SkScalarToFixed(src.fRight); in XRect_set()
113 xr->fBottom = SkScalarToFixed(src.fBottom); in XRect_set()
DSkFindAndPlaceGlyph.h296 return {SkScalarToFixed(SkScalarFraction(position.fX) + kSubpixelRounding), 0}; in SubpixelAlignment()
298 return {0, SkScalarToFixed(SkScalarFraction(position.fY) + kSubpixelRounding)}; in SubpixelAlignment()
300 return {SkScalarToFixed(SkScalarFraction(position.fX) + kSubpixelRounding), in SubpixelAlignment()
301 SkScalarToFixed(SkScalarFraction(position.fY) + kSubpixelRounding)}; in SubpixelAlignment()
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.cpp157 fInvSx = SkScalarToFixed(fInvMatrix.getScaleX()); in chooseProcs()
159 fInvKy = SkScalarToFixed(fInvMatrix.getSkewY()); in chooseProcs()
DSkDraw.cpp346 SkFixed x = SkScalarToFixed(devPts[i].fX); in bw_square_proc()
347 SkFixed y = SkScalarToFixed(devPts[i].fY); in bw_square_proc()
363 SkFixed x = SkScalarToFixed(devPts[i].fX); in aa_square_proc()
364 SkFixed y = SkScalarToFixed(devPts[i].fY); in aa_square_proc()
408 fRadius = SkScalarToFixed(width * sx) >> 1; in init()
/external/skia/src/effects/
DSkEmbossMask.cpp51 SkFixed lx = SkScalarToFixed(light.fDirection[0]); in Emboss()
52 SkFixed ly = SkScalarToFixed(light.fDirection[1]); in Emboss()
53 SkFixed lz = SkScalarToFixed(light.fDirection[2]); in Emboss()
DGrCircleBlurFragmentProcessor.cpp162 sigmaToCircleRRatioFixed = SkScalarToFixed(sigmaToCircleRRatio); in create_profile_texture()
DGrCircleBlurFragmentProcessor.fp210 sigmaToCircleRRatioFixed = SkScalarToFixed(sigmaToCircleRRatio);
/external/skia/src/gpu/ops/
DGrSmallPathRenderer.h82 SkFixed fracX = SkScalarToFixed(SkScalarFraction(tx)) & 0x0000FF00; in set()
83 SkFixed fracY = SkScalarToFixed(SkScalarFraction(ty)) & 0x0000FF00; in set()
/external/skia/src/ports/
DSkFontHost_FreeType.cpp784 fMatrix22.xx = SkScalarToFixed(fMatrix22Scalar.getScaleX()); in SkScalerContext_FreeType()
785 fMatrix22.xy = SkScalarToFixed(-fMatrix22Scalar.getSkewX()); in SkScalerContext_FreeType()
786 fMatrix22.yx = SkScalarToFixed(-fMatrix22Scalar.getSkewY()); in SkScalerContext_FreeType()
787 fMatrix22.yy = SkScalarToFixed(fMatrix22Scalar.getScaleY()); in SkScalerContext_FreeType()
908 fMatrix22.xx = SkScalarToFixed(fMatrix22Scalar.getScaleX()); in SkScalerContext_FreeType()
909 fMatrix22.xy = SkScalarToFixed(-fMatrix22Scalar.getSkewX()); in SkScalerContext_FreeType()
910 fMatrix22.yx = SkScalarToFixed(-fMatrix22Scalar.getSkewY()); in SkScalerContext_FreeType()
911 fMatrix22.yy = SkScalarToFixed(fMatrix22Scalar.getScaleY()); in SkScalerContext_FreeType()
1827 axisValues[i] = SkScalarToFixed(axisValue); in computeAxisValues()
DSkFontHost_win.cpp142 return SkFixedToFIXED(SkScalarToFixed(x)); in SkScalarToFIXED()
/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.cpp127 SkFixed fixedRead = SkScalarToFixed(positionRead[0].value); in DEF_TEST()
128 SkFixed fixedOriginal = SkScalarToFixed(position[1].value); in DEF_TEST()
/external/skia/include/private/
DSkFixed.h132 #define SkScalarToFixed(x) SkFloatToFixed(x) macro
/external/skia/src/utils/
DSkInterpolator.cpp229 return SkScalarToFixed(x) >> 2; in pin_and_convert()
/external/skia/src/shaders/gradients/
DSkGradientShader.cpp226 recs->fPos = SkScalarToFixed(curr); in SkGradientShaderBase()
227 SkFixed diff = SkScalarToFixed(curr - prev); in SkGradientShaderBase()