Home
last modified time | relevance | path

Searched refs:SkScalarFloorToInt (Results 1 – 25 of 37) sorted by relevance

12

/external/skia/bench/
DMorphologyBench.cpp69 mf = SkDilateImageFilter::Make(SkScalarFloorToInt(fRadius), in onDraw()
70 SkScalarFloorToInt(fRadius), in onDraw()
74 mf = SkErodeImageFilter::Make(SkScalarFloorToInt(fRadius), in onDraw()
75 SkScalarFloorToInt(fRadius), in onDraw()
/external/skia/gm/
Dtextblobblockreordering.cpp60 const int yDelta = SkScalarFloorToInt(bounds.height()) + 20; in onDraw()
61 const int xDelta = SkScalarFloorToInt(bounds.width()); in onDraw()
Dtextblobcolortrans.cpp80 for (int y = 0; y + SkScalarFloorToInt(bounds.height()) < kHeight; in onDraw()
81 y += SkScalarFloorToInt(bounds.height())) { in onDraw()
Danisotropic.cpp69 int height = SkScalarFloorToInt(fBM.height() * gScales[i]); in onDraw()
84 int width = SkScalarFloorToInt(fBM.width() * gScales[i]); in onDraw()
Dtextblobmixedsizes.cpp122 const int kPadX = SkScalarFloorToInt(bounds.width() / 3); in onDraw()
123 const int kPadY = SkScalarFloorToInt(bounds.height() / 3); in onDraw()
/external/skia/include/core/
DSkSize.h112 s.set(SkScalarFloorToInt(fWidth), SkScalarFloorToInt(fHeight)); in toFloor()
DSkRect.h832 dst->set(SkScalarFloorToInt(fLeft), SkScalarFloorToInt(fTop), in roundOut()
858 SkScalarFloorToInt(fRight), SkScalarFloorToInt(fBottom)); in roundIn()
DSkScalar.h34 #define SkScalarFloorToInt(x) sk_float_floor2int(x) macro
/external/skia/tests/
DSRGBReadWritePixelsTest.cpp54 if (outputComponent < SkScalarFloorToInt(lower * 255.f) || in check_conversion()
79 uint8_t lowerComponent = SkScalarFloorToInt(lower * 255.f); in check_double_conversion()
87 lowerComponent = SkScalarFloorToInt(lower * 255.f); in check_double_conversion()
DApplyGammaTest.cpp62 if (dstComponent < SkScalarFloorToInt(lower * 255.f) || in check_gamma()
/external/skia/src/gpu/
DGrClip.h105 return SkIRect::MakeLTRB(SkScalarFloorToInt(bounds.fLeft + kBoundsTolerance), in GetPixelIBounds()
106 SkScalarFloorToInt(bounds.fTop + kBoundsTolerance), in GetPixelIBounds()
/external/skia/src/effects/
DSkMatrixConvolutionImageFilter.cpp193 ? SkClampMax(SkScalarFloorToInt(sumA * fGain + fBias), 255) in filterPixels()
195 int r = SkClampMax(SkScalarFloorToInt(sumR * fGain + fBias), a); in filterPixels()
196 int g = SkClampMax(SkScalarFloorToInt(sumG * fGain + fBias), a); in filterPixels()
197 int b = SkClampMax(SkScalarFloorToInt(sumB * fGain + fBias), a); in filterPixels()
DSkMagnifierImageFilter.cpp436 int x_val = SkTPin(bounds.x() + SkScalarFloorToInt(x_interp), 0, inputBM.width() - 1); in onFilterImage()
437 int y_val = SkTPin(bounds.y() + SkScalarFloorToInt(y_interp), 0, inputBM.height() - 1); in onFilterImage()
/external/skia/src/core/
DSkScalerContext.h61 fDeviceGamma = SkScalarFloorToInt(dg * (1 << 6)); in setDeviceGamma()
69 fPaintGamma = SkScalarFloorToInt(pg * (1 << 6)); in setPaintGamma()
DSkDraw.cpp295 int x = SkScalarFloorToInt(devPts[i].fX); in bw_pt_rect_hair_proc()
296 int y = SkScalarFloorToInt(devPts[i].fY); in bw_pt_rect_hair_proc()
316 int x = SkScalarFloorToInt(devPts[i].fX); in bw_pt_rect_16_hair_proc()
317 int y = SkScalarFloorToInt(devPts[i].fY); in bw_pt_rect_16_hair_proc()
337 int x = SkScalarFloorToInt(devPts[i].fX); in bw_pt_rect_32_hair_proc()
338 int y = SkScalarFloorToInt(devPts[i].fY); in bw_pt_rect_32_hair_proc()
348 int x = SkScalarFloorToInt(devPts[i].fX); in bw_pt_hair_proc()
349 int y = SkScalarFloorToInt(devPts[i].fY); in bw_pt_hair_proc()
1461 int left = SkScalarFloorToInt(position.fX); in operator ()()
1462 int top = SkScalarFloorToInt(position.fY); in operator ()()
[all …]
DSkOverdrawCanvas.cpp29 int left = SkScalarFloorToInt(position.fX) + glyph.fLeft; in operator ()()
30 int top = SkScalarFloorToInt(position.fY) + glyph.fTop; in operator ()()
DSkLinearBitmapPipeline_tile.h296 int32_t repeatCount = SkScalarFloorToInt(div); in maybeProcessSpan()
297 Span repeatableSpan{{0.0f, y}, fXMax - 1.0f, SkScalarFloorToInt(fXMax)}; in maybeProcessSpan()
DSkLinearBitmapPipeline_sample.h300 int ix = SkScalarFloorToInt(X(start)); in src_strategy_blend()
596 int x0 = adjust_edge(fXEdgeType, SkScalarFloorToInt(X(sample) - 0.5), fXMax); in filterPoints()
599 int y0 = adjust_edge(fYEdgeType, SkScalarFloorToInt(Y(sample) - 0.5), fYMax); in filterPoints()
638 this->get2PixelColumn(row0, row1, SkScalarFloorToInt(X(start)), &pxTop, &pxBottom); in spanZeroRate()
DSkGpuBlurUtils.cpp24 rect->fLeft = SkScalarFloorToInt(rect->fLeft * xScale); in scale_irect_roundout()
25 rect->fTop = SkScalarFloorToInt(rect->fTop * yScale); in scale_irect_roundout()
DSkBitmapScaler.cpp196 output->AddFilter(SkScalarFloorToInt(srcBegin), fixedFilterValues, filterCount); in computeFilters()
DSkLinearBitmapPipeline_core.h98 int dxSteps = SkScalarFloorToInt((breakX - this->startX()) / dx); in breakAt()
/external/skia/src/gpu/text/
DGrTextUtils.cpp101 SkScalarFloorToInt(position.fX), SkScalarFloorToInt(position.fY), in DrawBmpText()
137 SkScalarFloorToInt(position.fX), SkScalarFloorToInt(position.fY), in DrawBmpPosText()
/external/skia/src/utils/
DSkInterpolator.cpp80 endTime = SkScalarFloorToInt(fRepeat * totalTime); in timeToT()
84 (SkMSec) SkScalarFloorToInt(fraction * totalTime); in timeToT()
/external/skia/samplecode/
DSampleDegenerateTwoPtRadials.cpp56 int intPart = SkScalarFloorToInt(delta); in onDrawContent()
/external/skia/experimental/SkPerlinNoiseShader2/
DSkPerlinNoiseShader2.cpp392 noisePositionIntegerValue = SkScalarFloorToInt(position); in noise2D()
511 int X = SkScalarFloorToInt(x) & 255; in calculateImprovedNoiseValueForPoint()
512 int Y = SkScalarFloorToInt(y) & 255; in calculateImprovedNoiseValueForPoint()
513 int Z = SkScalarFloorToInt(z) & 255; in calculateImprovedNoiseValueForPoint()
562 rgba[channel] = SkScalarFloorToInt(255 * value); in shade()

12