Home
last modified time | relevance | path

Searched refs:SkScalarFloorToScalar (Results 1 – 17 of 17) sorted by relevance

/external/skia/src/gpu/ops/
DGrNonAAStrokeRectOp.cpp109 bounds.set(SkScalarFloorToScalar(bounds.fLeft), in NonAAStrokeRectOp()
110 SkScalarFloorToScalar(bounds.fTop), in NonAAStrokeRectOp()
111 SkScalarFloorToScalar(bounds.fRight), in NonAAStrokeRectOp()
112 SkScalarFloorToScalar(bounds.fBottom)); in NonAAStrokeRectOp()
DGrSmallPathRenderer.cpp175 translate = SkVector::Make(SkScalarFloorToScalar(translateX), in SmallPathOp()
176 SkScalarFloorToScalar(translateY)); in SmallPathOp()
292 SkScalar log = SkScalarFloorToScalar(SkScalarLog2(SkScalarInvert(maxScale))); in onPrepareDraws()
399 SkScalar dx = SkScalarFloorToScalar(scaledBounds.fLeft); in addDFPathToAtlas()
400 SkScalar dy = SkScalarFloorToScalar(scaledBounds.fTop); in addDFPathToAtlas()
514 SkScalar dx = SkScalarFloorToScalar(shapeDevBounds.fLeft); in addBMPathToAtlas()
515 SkScalar dy = SkScalarFloorToScalar(shapeDevBounds.fTop); in addBMPathToAtlas()
DGrDashOp.cpp139 SkScalar numFullIntervals = SkScalarFloorToScalar(temp); in calc_end_adjustment()
142 *endingInt = *endingInt - SkScalarFloorToScalar(temp) * srcIntervalLen; in calc_end_adjustment()
/external/skia/gm/
Dmixedtextblobs.cpp144 canvas->translate(SkScalarFloorToScalar(bounds.width() + SkIntToScalar(25)), in onDraw()
145 -(x * SkScalarFloorToScalar(bounds.height() + in onDraw()
148 canvas->translate(0, SkScalarFloorToScalar(bounds.height() + SkIntToScalar(25))); in onDraw()
/external/skia/src/gpu/
DGrClip.h119 return SkRect::MakeLTRB(SkScalarFloorToScalar(bounds.fLeft + kBoundsTolerance), in GetPixelBounds()
120 SkScalarFloorToScalar(bounds.fTop + kBoundsTolerance), in GetPixelBounds()
/external/skia/src/core/
DSkLinearBitmapPipeline_tile.h149 return std::min(x - SkScalarFloorToScalar(x / base) * base, cap); in tile_mod()
278 if (SkScalarFloorToScalar(x) != 0.0f) { in maybeProcessSpan()
289 SkASSERT(SkScalarFloorToScalar(span.startX()) == 0.0f); in maybeProcessSpan()
398 SkScalar mod = bias - SkScalarFloorToScalar(div) * 2.0f * fYMax; in tileY()
DSkBitmapScaler.cpp143 destSubsetLo = SkScalarFloorToScalar(destSubsetLo); in computeFilters()
150 float srcBegin = SkTMax(0.f, SkScalarFloorToScalar(srcPixel - srcSupport)); in computeFilters()
DSkColor.cpp85 SkScalar w = SkScalarFloorToScalar(hx); in SkHSVToColor()
DSkRasterClip.cpp359 return x - SkScalarFloorToScalar(x) < domain; in nearly_integral()
DSkClipStack.cpp410 fFiniteBound.set(SkScalarFloorToScalar(fFiniteBound.fLeft+0.45f), in updateBoundAndGenID()
/external/skia/bench/
DGameBench.cpp178 fSaved[fNumSaved][0] = SkScalarFloorToScalar(fSaved[fNumSaved][0]); in onDraw()
179 fSaved[fNumSaved][1] = SkScalarFloorToScalar(fSaved[fNumSaved][1]); in onDraw()
/external/skia/tests/
DSkLinearBitmapPipelineTest.cpp137 fPoints->push_back({SkScalarFloorToScalar(X(pt)), SkScalarFloorToScalar(Y(pt))}); in compare_tiler_case()
DClipStackTest.cpp1000 rect.setXYWH(SkScalarFloorToScalar(xy.fX), in test_reduced_clip_stack()
1001 SkScalarFloorToScalar(xy.fY), in test_reduced_clip_stack()
1346 sx = SkScalarFloorToScalar(sx * alignedRect.width()) / alignedRect.width(); in test_reduced_clip_stack_aa()
1348 sy = SkScalarFloorToScalar(sy * alignedRect.height()) / alignedRect.height(); in test_reduced_clip_stack_aa()
/external/skia/src/shaders/
DSkPictureShader.cpp230 scaledSize.set(SkScalarFloorToScalar(scaledSize.width() * downScale), in refBitmapShader()
231 SkScalarFloorToScalar(scaledSize.height() * downScale)); in refBitmapShader()
DSkPerlinNoiseShader.cpp247 SkScalarFloorToScalar(tileWidth * fBaseFrequency.fX) / tileWidth; in stitch()
259 SkScalarFloorToScalar(tileHeight * fBaseFrequency.fY) / tileHeight; in stitch()
565 SkScalar px = x - SkScalarFloorToScalar(x); in calculateImprovedNoiseValueForPoint()
566 SkScalar py = y - SkScalarFloorToScalar(y); in calculateImprovedNoiseValueForPoint()
567 SkScalar pz = z - SkScalarFloorToScalar(z); in calculateImprovedNoiseValueForPoint()
/external/skia/include/core/
DSkScalar.h29 #define SkScalarFloorToScalar(x) sk_float_floor(x) macro
DSkRect.h862 dst->set(SkScalarFloorToScalar(fLeft), in roundOut()
863 SkScalarFloorToScalar(fTop), in roundOut()