Home
last modified time | relevance | path

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

/external/skia/src/core/
DSkScan.h100 xr->fLeft = SkScalarToFixed(src.fLeft); in XRect_set()
101 xr->fTop = SkScalarToFixed(src.fTop); in XRect_set()
102 xr->fRight = SkScalarToFixed(src.fRight); in XRect_set()
103 xr->fBottom = SkScalarToFixed(src.fBottom); in XRect_set()
DSkFindAndPlaceGlyph.h386 return {SkScalarToFixed(position.fX + kSubpixelRounding), 0};
388 return {0, SkScalarToFixed(position.fY + kSubpixelRounding)};
390 return {SkScalarToFixed(position.fX + kSubpixelRounding),
391 SkScalarToFixed(position.fY + kSubpixelRounding)};
DSkScan_Hairline.cpp152 r.set(SkScalarToFixed(rect.fLeft) >> 16, in HairRect()
153 SkScalarToFixed(rect.fTop) >> 16, in HairRect()
154 (SkScalarToFixed(rect.fRight) >> 16) + 1, in HairRect()
155 (SkScalarToFixed(rect.fBottom) >> 16) + 1); in HairRect()
DSkColor.cpp82 SkFixed hx = (hsv[0] < 0 || hsv[0] >= SkIntToScalar(360)) ? 0 : SkScalarToFixed(hsv[0]/60); in SkHSVToColor()
DSkMatrix.cpp1177 fX = SkScalarToFixed(pt.fX); in SkPerspIter()
1178 fY = SkScalarToFixed(pt.fY); in SkPerspIter()
1196 fX = SkScalarToFixed(pt.fX); in next()
1197 fY = SkScalarToFixed(pt.fY); in next()
1203 fX = SkScalarToFixed(pt.fX); in next()
1204 fY = SkScalarToFixed(pt.fY); in next()
DSkBitmapProcState.cpp191 fInvSx = SkScalarToFixed(fInvMatrix.getScaleX()); in chooseProcs()
193 fInvKy = SkScalarToFixed(fInvMatrix.getSkewY()); in chooseProcs()
DSkDraw.cpp416 SkFixed x = SkScalarToFixed(devPts[i].fX); in bw_square_proc()
417 SkFixed y = SkScalarToFixed(devPts[i].fY); in bw_square_proc()
433 SkFixed x = SkScalarToFixed(devPts[i].fX); in aa_square_proc()
434 SkFixed y = SkScalarToFixed(devPts[i].fY); in aa_square_proc()
478 fRadius = SkScalarToFixed(SkScalarMul(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()
DSkEmbossMaskFilter.cpp43 int am = pin2byte(SkScalarToFixed(ambient) >> 8); in CreateEmboss()
46 int sp = pin2byte(SkScalarToFixed(specular) >> 12); in CreateEmboss()
DGrCircleBlurFragmentProcessor.cpp241 builder[0] = SkScalarToFixed(sigma); in CreateCircleBlurProfileTexture()
242 builder[1] = SkScalarToFixed(halfWH); in CreateCircleBlurProfileTexture()
/external/skia/src/fonts/
DSkGScalerContext.cpp82 glyph->fAdvanceX = SkScalarToFixed(advance.fX); in generateAdvance()
83 glyph->fAdvanceY = SkScalarToFixed(advance.fY); in generateAdvance()
92 glyph->fAdvanceX = SkScalarToFixed(advance.fX); in generateMetrics()
93 glyph->fAdvanceY = SkScalarToFixed(advance.fY); in generateMetrics()
DSkTestScalerContext.cpp211 glyph->fAdvanceX = SkScalarToFixed(advance.fX); in generateAdvance()
212 glyph->fAdvanceY = SkScalarToFixed(advance.fY); in generateAdvance()
220 glyph->fAdvanceX = SkScalarToFixed(advance.fX); in generateMetrics()
221 glyph->fAdvanceY = SkScalarToFixed(advance.fY); in generateMetrics()
/external/skia/include/core/
DSkScalar.h36 #define SkScalarToFixed(x) SkFloatToFixed(x) macro
79 #define SkScalarToFixed(x) SkDoubleToFixed(x) macro
/external/skia/src/ports/
DSkFontHost_FreeType.cpp817 fMatrix22.xx = SkScalarToFixed(fMatrix22Scalar.getScaleX()); in SkScalerContext_FreeType()
818 fMatrix22.xy = SkScalarToFixed(fMatrix22Scalar.getSkewX()); in SkScalerContext_FreeType()
819 fMatrix22.yx = SkScalarToFixed(fMatrix22Scalar.getSkewY()); in SkScalerContext_FreeType()
820 fMatrix22.yy = SkScalarToFixed(fMatrix22Scalar.getScaleY()); in SkScalerContext_FreeType()
1110 SkFixed fixedScale = SkScalarToFixed(scale); in scaleGlyphMetrics()
1787 axisValues[i] = SkScalarToFixed(axisValue); in computeAxisValues()
DSkScalerContext_win_dw.cpp391 glyph->fAdvanceX = SkScalarToFixed(vecs[0].fX); in generateAdvance()
392 glyph->fAdvanceY = SkScalarToFixed(vecs[0].fY); in generateAdvance()
DSkFontHost_win.cpp142 return SkFixedToFIXED(SkScalarToFixed(x)); in SkScalarToFIXED()
935 glyph->fAdvanceX = SkScalarToFixed(advance.fX); in generateMetrics()
936 glyph->fAdvanceY = SkScalarToFixed(advance.fY); in generateMetrics()
943 glyph->fAdvanceX = SkScalarToFixed(advance.fX); in generateMetrics()
944 glyph->fAdvanceY = SkScalarToFixed(advance.fY); in generateMetrics()
/external/skia/src/gpu/text/
DGrStencilAndCoverTextContext.cpp481 SkFixed fixedSizeRatio = SkScalarToFixed(fTextRatio); in setText()
483 SkFixed fx = SkScalarToFixed(x); in setText()
484 SkFixed fy = SkScalarToFixed(y); in setText()
/external/skia/src/utils/
DSkInterpolator.cpp228 return SkScalarToFixed(x) >> 2; in pin_and_convert()
/external/skia/samplecode/
DSamplePath.cpp66 int ffx = SkScalarToFixed(x); in test_cubic2()
DSamplePatch.cpp113 int scale = SkScalarToFixed(v) >> 8; in ScalarTo255()
/external/skia/src/effects/gradients/
DSkRadialGradient.cpp230 unsigned fi = proc(SkScalarToFixed(srcPt.length())); in shadeSpan()
DSkGradientShader.cpp167 recs->fPos = SkScalarToFixed(curr); in SkGradientShaderBase()
168 SkFixed diff = SkScalarToFixed(curr - prev); in SkGradientShaderBase()
DSkLinearGradient.cpp337 unsigned fi = proc(SkScalarToFixed(srcPt.fX)); in shadeSpan()