Searched refs:SkScalarRoundToScalar (Results 1 – 21 of 21) sorted by relevance
192 return SkScalarAbs(SkScalarRoundToScalar(rect.fLeft) - rect.fLeft) <= kBoundsTolerance && in IsPixelAligned()193 SkScalarAbs(SkScalarRoundToScalar(rect.fTop) - rect.fTop) <= kBoundsTolerance && in IsPixelAligned()194 SkScalarAbs(SkScalarRoundToScalar(rect.fRight) - rect.fRight) <= kBoundsTolerance && in IsPixelAligned()195 SkScalarAbs(SkScalarRoundToScalar(rect.fBottom) - rect.fBottom) <= kBoundsTolerance; in IsPixelAligned()
98 SkScalar dx = SkScalarRoundToScalar(path.getBounds().width()) + 14 + 0.25f;114 SkScalar dx = SkScalarRoundToScalar(path.getBounds().width()) + 40 + 0.25f;
31 #define SkScalarRoundToScalar(x) sk_float_floor((x) + 0.5f) macro
402 SkScalar startOver90I = SkScalarRoundToScalar(startOver90); in addArc()569 point.fX = SkScalarRoundToScalar(point.fX); in arcTo()570 point.fY = SkScalarRoundToScalar(point.fY); in arcTo()
173 && SkScalarNearlyEqual(m.getTranslateX(), SkScalarRoundToScalar(m.getTranslateX()), tol) in just_trans_integral()174 && SkScalarNearlyEqual(m.getTranslateY(), SkScalarRoundToScalar(m.getTranslateY()), tol); in just_trans_integral()
880 SkScalar intYScale = SkScalarRoundToScalar(realYScale); in computeMatrices()956 SkScalar n = SkScalarRoundToScalar(x * 1024); in sk_relax()
1279 point.fX = SkScalarRoundToScalar(point.fX); in arcTo()1280 point.fY = SkScalarRoundToScalar(point.fY); in arcTo()1314 SkScalar startOver90I = SkScalarRoundToScalar(startOver90); in addArc()
31 roundedWidth = SkScalarRoundToScalar(width * 100) * (1.0f/100); in breakLine()33 roundedWidth = SkScalarRoundToScalar(width * 10) * (1.0f/10); in breakLine()
17 return SkFloat2Bits(SkScalarRoundToScalar(a * threshold)/threshold); in relax()
42 return SkScalarRoundToScalar(a * 100.0)/100.0; in littleRound()44 return SkScalarRoundToScalar(a * 10.0)/10.0; in littleRound()
52 return SkScalarRoundToScalar(a * 100.0)/100.0; in littleRound()
404 ? SkScalarRoundToScalar(rev_rad*kEvolutionScale) in noise()
169 return SkScalarRoundToScalar(x * 0.5f) * 2; in snap()
368 fAngle = 15.f * SkScalarRoundToScalar(fAngle / 15.f); in onAnimate()
36 return SkScalarRoundToScalar(x * grid) / grid; in apply_grid()
46 …if (SkScalarAbs(SkScalarRoundToScalar(transformedRect.left()) - transformedRect.left()) < kColorBl… in has_aligned_samples()47 …SkScalarAbs(SkScalarRoundToScalar(transformedRect.top()) - transformedRect.top()) < kColorBleedT… in has_aligned_samples()
515 newPoint.fX = SkScalarRoundToScalar(newPoint.fX); in shade()516 newPoint.fY = SkScalarRoundToScalar(newPoint.fY); in shade()
732 out->fX = SkScalarRoundToScalar(16.f*in.fX)*0.0625f; in sanitize_point()733 out->fY = SkScalarRoundToScalar(16.f*in.fY)*0.0625f; in sanitize_point()
300 SkScalar gdiTextSize = SkScalarRoundToScalar(realTextSize * 64.0f) / 64.0f; in SkScalerContext_DW()473 advance.fX = SkScalarRoundToScalar(advance.fX); in generateAdvance()
676 SkScalar gdiTextSize = SkScalarRoundToScalar(scale.fY); in SkScalerContext_GDI()
124 p->fX = SkScalarRoundToScalar(p->fX * SkFloatToScalar(4.0f)) * SkFloatToScalar(0.25f); in round()125 p->fY = SkScalarRoundToScalar(p->fY * SkFloatToScalar(4.0f)) * SkFloatToScalar(0.25f); in round()