Home
last modified time | relevance | path

Searched refs:SkScalarRoundToScalar (Results 1 – 21 of 21) sorted by relevance

/third_party/skia/src/gpu/
DGrClip.h192 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()
/third_party/skia/gm/
Dblurs.cpp98 SkScalar dx = SkScalarRoundToScalar(path.getBounds().width()) + 14 + 0.25f;
114 SkScalar dx = SkScalarRoundToScalar(path.getBounds().width()) + 40 + 0.25f;
/third_party/skia/include/core/
DSkScalar.h31 #define SkScalarRoundToScalar(x) sk_float_floor((x) + 0.5f) macro
/third_party/skia/src/core/
DSkPathBuilder.cpp402 SkScalar startOver90I = SkScalarRoundToScalar(startOver90); in addArc()
569 point.fX = SkScalarRoundToScalar(point.fX); in arcTo()
570 point.fY = SkScalarRoundToScalar(point.fY); in arcTo()
DSkBitmapProcState.cpp173 && SkScalarNearlyEqual(m.getTranslateX(), SkScalarRoundToScalar(m.getTranslateX()), tol) in just_trans_integral()
174 && SkScalarNearlyEqual(m.getTranslateY(), SkScalarRoundToScalar(m.getTranslateY()), tol); in just_trans_integral()
DSkScalerContext.cpp880 SkScalar intYScale = SkScalarRoundToScalar(realYScale); in computeMatrices()
956 SkScalar n = SkScalarRoundToScalar(x * 1024); in sk_relax()
DSkPath.cpp1279 point.fX = SkScalarRoundToScalar(point.fX); in arcTo()
1280 point.fY = SkScalarRoundToScalar(point.fY); in arcTo()
1314 SkScalar startOver90I = SkScalarRoundToScalar(startOver90); in addArc()
/third_party/skia/modules/skparagraph/src/
DTextWrapper.cpp31 roundedWidth = SkScalarRoundToScalar(width * 100) * (1.0f/100); in breakLine()
33 roundedWidth = SkScalarRoundToScalar(width * 10) * (1.0f/10); in breakLine()
DParagraphCache.cpp17 return SkFloat2Bits(SkScalarRoundToScalar(a * threshold)/threshold); in relax()
DParagraphImpl.cpp42 return SkScalarRoundToScalar(a * 100.0)/100.0; in littleRound()
44 return SkScalarRoundToScalar(a * 10.0)/10.0; in littleRound()
DTextLine.cpp52 return SkScalarRoundToScalar(a * 100.0)/100.0; in littleRound()
/third_party/skia/modules/skottie/src/effects/
DFractalNoiseEffect.cpp404 ? SkScalarRoundToScalar(rev_rad*kEvolutionScale) in noise()
/third_party/skia/samplecode/
DSamplePathClip.cpp169 return SkScalarRoundToScalar(x * 0.5f) * 2; in snap()
DSampleThinAA.cpp368 fAngle = 15.f * SkScalarRoundToScalar(fAngle / 15.f); in onAnimate()
DSampleFatBits.cpp36 return SkScalarRoundToScalar(x * grid) / grid; in apply_grid()
/third_party/skia/src/gpu/v1/
DDevice_drawTexture.cpp46 …if (SkScalarAbs(SkScalarRoundToScalar(transformedRect.left()) - transformedRect.left()) < kColorBl… in has_aligned_samples()
47 …SkScalarAbs(SkScalarRoundToScalar(transformedRect.top()) - transformedRect.top()) < kColorBleedT… in has_aligned_samples()
/third_party/skia/src/shaders/
DSkPerlinNoiseShader.cpp515 newPoint.fX = SkScalarRoundToScalar(newPoint.fX); in shade()
516 newPoint.fY = SkScalarRoundToScalar(newPoint.fY); in shade()
/third_party/skia/src/utils/
DSkShadowTessellator.cpp732 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()
/third_party/skia/src/ports/
DSkScalerContext_win_dw.cpp300 SkScalar gdiTextSize = SkScalarRoundToScalar(realTextSize * 64.0f) / 64.0f; in SkScalerContext_DW()
473 advance.fX = SkScalarRoundToScalar(advance.fX); in generateAdvance()
DSkFontHost_win.cpp676 SkScalar gdiTextSize = SkScalarRoundToScalar(scale.fY); in SkScalerContext_GDI()
/third_party/skia/src/gpu/geometry/
DGrTriangulator.cpp124 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()