Home
last modified time | relevance | path

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

/external/skia/src/gpu/
DGrClip.h129 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()
DSkGpuDevice_drawTexture.cpp33 …if (SkScalarAbs(SkScalarRoundToScalar(transformedRect.left()) - transformedRect.left()) < kColorBl… in has_aligned_samples()
34 …SkScalarAbs(SkScalarRoundToScalar(transformedRect.top()) - transformedRect.top()) < kColorBleedT… in has_aligned_samples()
DGrTessellator.cpp275 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()
/external/skia/samplecode/
DSampleFilter2.cpp80 x = SkScalarRoundToScalar(x); in onDrawContent()
81 y = SkScalarRoundToScalar(y); in onDrawContent()
DSamplePathClip.cpp179 return SkScalarRoundToScalar(x * 0.5f) * 2; in snap()
DSampleFatBits.cpp27 return SkScalarRoundToScalar(x * grid) / grid; in apply_grid()
/external/skia/gm/
Dblurs.cpp97 SkScalar dx = SkScalarRoundToScalar(path.getBounds().width()) + 14 + 0.25f;
113 SkScalar dx = SkScalarRoundToScalar(path.getBounds().width()) + 40 + 0.25f;
Dshowmiplevels.cpp207 canvas->translate(0, SkScalarRoundToScalar(bm.height() * 0.85f)); in onDraw()
322 canvas->translate(0, SkScalarRoundToScalar(bm.height() * 0.85f)); in onDraw()
/external/skia/src/core/
DSkBitmapController.cpp129 const int dstW = SkScalarRoundToScalar(provider.width() / invScaleX); in processHQRequest()
130 const int dstH = SkScalarRoundToScalar(provider.height() / invScaleY); in processHQRequest()
DSkClipStack.cpp411 SkScalarRoundToScalar(fFiniteBound.fTop), in updateBoundAndGenID()
412 SkScalarRoundToScalar(fFiniteBound.fRight), in updateBoundAndGenID()
413 SkScalarRoundToScalar(fFiniteBound.fBottom)); in updateBoundAndGenID()
DSkBitmapProcState.cpp75 && SkScalarNearlyEqual(m.getTranslateX(), SkScalarRoundToScalar(m.getTranslateX()), tol) in just_trans_integral()
76 && SkScalarNearlyEqual(m.getTranslateY(), SkScalarRoundToScalar(m.getTranslateY()), tol); in just_trans_integral()
DSkScalerContext.cpp769 SkScalar intYScale = SkScalarRoundToScalar(realYScale); in computeMatrices()
DSkPaint.cpp1309 SkScalar n = SkScalarRoundToScalar(x * 1024); in sk_relax()
DSkPath.cpp1450 SkScalar startOver90I = SkScalarRoundToScalar(startOver90); in addArc()
/external/skia/include/core/
DSkScalar.h31 #define SkScalarRoundToScalar(x) sk_float_floor((x) + 0.5f) macro
/external/skia/src/ports/
DSkScalerContext_win_dw.cpp248 SkScalar gdiTextSize = SkScalarRoundToScalar(realTextSize * 64.0f) / 64.0f; in SkScalerContext_DW()
425 advance.fX = SkScalarRoundToScalar(advance.fX); in generateAdvance()
DSkFontHost_win.cpp653 SkScalar gdiTextSize = SkScalarRoundToScalar(scale.fY); in SkScalerContext_GDI()
/external/skia/src/shaders/
DSkPerlinNoiseShader.cpp601 newPoint.fX = SkScalarRoundToScalar(newPoint.fX); in shade()
602 newPoint.fY = SkScalarRoundToScalar(newPoint.fY); in shade()
/external/skia/tests/
DClipStackTest.cpp1349 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()