Home
last modified time | relevance | path

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

/external/skia/samplecode/
DSampleFilter2.cpp83 x = SkScalarRoundToScalar(x); in onDrawContent()
84 y = SkScalarRoundToScalar(y); in onDrawContent()
DSampleFatBits.cpp26 return SkScalarRoundToScalar(x * grid) / grid; in apply_grid()
/external/skia/gm/
Dblurs.cpp127 SkScalar dx = SkScalarRoundToScalar(path.getBounds().width()) + 14 + 0.25f; in onDraw()
156 SkScalar dx = SkScalarRoundToScalar(path.getBounds().width()) + 40 + 0.25f; in onDraw()
/external/skia/src/views/
DSkStackViewLayout.cpp170 pos = SkScalarRoundToScalar(pos); in onLayoutChildren()
174 crossLoc = SkScalarRoundToScalar(crossLoc); in onLayoutChildren()
/external/skia/include/core/
DSkScalar.h40 #define SkScalarRoundToScalar(x) sk_float_floor((x) + 0.5f) macro
83 #define SkScalarRoundToScalar(x) floor((x) + 0.5) macro
/external/skia/tests/
DSkResourceCacheTest.cpp24 float roundedImageWidth = SkScalarRoundToScalar(orig.width() * xScale); in is_in_scaled_image_cache()
25 float roundedImageHeight = SkScalarRoundToScalar(orig.height() * yScale); in is_in_scaled_image_cache()
/external/skia/src/core/
DSkBitmapProcState.cpp148 SkScalar roundedDestWidth = SkScalarRoundToScalar(trueDestWidth); in processHQRequest()
149 SkScalar roundedDestHeight = SkScalarRoundToScalar(trueDestHeight); in processHQRequest()
317 SkScalar tx = -SkScalarRoundToScalar(forward.getTranslateX()); in chooseProcs()
318 SkScalar ty = -SkScalarRoundToScalar(forward.getTranslateY()); in chooseProcs()
DSkClipStack.cpp424 SkScalarRoundToScalar(fFiniteBound.fTop), in updateBoundAndGenID()
425 SkScalarRoundToScalar(fFiniteBound.fRight), in updateBoundAndGenID()
426 SkScalarRoundToScalar(fFiniteBound.fBottom)); in updateBoundAndGenID()
DSkScalerContext.cpp790 SkScalar intYScale = SkScalarRoundToScalar(realYScale); in computeMatrices()
/external/skia/src/animator/
DSkDisplayMath.cpp196 scalarResult = SkScalarRoundToScalar(input); in executeFunction()
/external/skia/src/ports/
DSkScalerContext_win_dw.cpp237 SkScalar gdiTextSize = SkScalarRoundToScalar(realTextSize * 64.0f) / 64.0f; in SkScalerContext_DW()
365 vecs[0].fX = SkScalarRoundToScalar(advanceX); in generateAdvance()
DSkFontHost_win.cpp642 SkScalar gdiTextSize = SkScalarRoundToScalar(scale.fY); in SkScalerContext_GDI()
/external/skia/src/effects/
DSkPerlinNoiseShader.cpp419 newPoint.fX = SkScalarRoundToScalar(newPoint.fX); in shade()
420 newPoint.fY = SkScalarRoundToScalar(newPoint.fY); in shade()
/external/skia/src/gpu/
DSkGpuDevice.cpp1075 if (SkScalarAbs(SkScalarRoundToScalar(transformedRect.left()) - in has_aligned_samples()
1077 SkScalarAbs(SkScalarRoundToScalar(transformedRect.top()) - in has_aligned_samples()