Searched refs:SkScalarRoundToScalar (Results 1 – 19 of 19) sorted by relevance
129 return SkScalarAbs(SkScalarRoundToScalar(rect.fLeft) - rect.fLeft) <= kBoundsTolerance && in IsPixelAligned()130 SkScalarAbs(SkScalarRoundToScalar(rect.fTop) - rect.fTop) <= kBoundsTolerance && in IsPixelAligned()131 SkScalarAbs(SkScalarRoundToScalar(rect.fRight) - rect.fRight) <= kBoundsTolerance && in IsPixelAligned()132 SkScalarAbs(SkScalarRoundToScalar(rect.fBottom) - rect.fBottom) <= kBoundsTolerance; in IsPixelAligned()
33 …if (SkScalarAbs(SkScalarRoundToScalar(transformedRect.left()) - transformedRect.left()) < kColorBl… in has_aligned_samples()34 …SkScalarAbs(SkScalarRoundToScalar(transformedRect.top()) - transformedRect.top()) < kColorBleedT… in has_aligned_samples()
275 p->fX = SkScalarRoundToScalar(p->fX * SkFloatToScalar(4.0f)) * SkFloatToScalar(0.25f); in round()276 p->fY = SkScalarRoundToScalar(p->fY * SkFloatToScalar(4.0f)) * SkFloatToScalar(0.25f); in round()
80 x = SkScalarRoundToScalar(x); in onDrawContent()81 y = SkScalarRoundToScalar(y); in onDrawContent()
179 return SkScalarRoundToScalar(x * 0.5f) * 2; in snap()
27 return SkScalarRoundToScalar(x * grid) / grid; in apply_grid()
97 SkScalar dx = SkScalarRoundToScalar(path.getBounds().width()) + 14 + 0.25f;113 SkScalar dx = SkScalarRoundToScalar(path.getBounds().width()) + 40 + 0.25f;
207 canvas->translate(0, SkScalarRoundToScalar(bm.height() * 0.85f)); in onDraw()322 canvas->translate(0, SkScalarRoundToScalar(bm.height() * 0.85f)); in onDraw()
129 const int dstW = SkScalarRoundToScalar(provider.width() / invScaleX); in processHQRequest()130 const int dstH = SkScalarRoundToScalar(provider.height() / invScaleY); in processHQRequest()
411 SkScalarRoundToScalar(fFiniteBound.fTop), in updateBoundAndGenID()412 SkScalarRoundToScalar(fFiniteBound.fRight), in updateBoundAndGenID()413 SkScalarRoundToScalar(fFiniteBound.fBottom)); in updateBoundAndGenID()
75 && SkScalarNearlyEqual(m.getTranslateX(), SkScalarRoundToScalar(m.getTranslateX()), tol) in just_trans_integral()76 && SkScalarNearlyEqual(m.getTranslateY(), SkScalarRoundToScalar(m.getTranslateY()), tol); in just_trans_integral()
769 SkScalar intYScale = SkScalarRoundToScalar(realYScale); in computeMatrices()
1309 SkScalar n = SkScalarRoundToScalar(x * 1024); in sk_relax()
1450 SkScalar startOver90I = SkScalarRoundToScalar(startOver90); in addArc()
31 #define SkScalarRoundToScalar(x) sk_float_floor((x) + 0.5f) macro
248 SkScalar gdiTextSize = SkScalarRoundToScalar(realTextSize * 64.0f) / 64.0f; in SkScalerContext_DW()425 advance.fX = SkScalarRoundToScalar(advance.fX); in generateAdvance()
653 SkScalar gdiTextSize = SkScalarRoundToScalar(scale.fY); in SkScalerContext_GDI()
601 newPoint.fX = SkScalarRoundToScalar(newPoint.fX); in shade()602 newPoint.fY = SkScalarRoundToScalar(newPoint.fY); in shade()
1349 SkScalar tx = SkScalarRoundToScalar(sx * alignedRect.x()) - sx * alignedRect.x(); in test_reduced_clip_stack_aa()1350 SkScalar ty = SkScalarRoundToScalar(sy * alignedRect.y()) - sy * alignedRect.y(); in test_reduced_clip_stack_aa()