Home
last modified time | relevance | path

Searched refs:SkScalarFloorToInt (Results 1 - 25 of 30) sorted by relevance

12

/third_party/skia/bench/
H A DMorphologyBench.cpp70 SkScalarFloorToInt(fRadius), SkScalarFloorToInt(fRadius), nullptr);
74 SkScalarFloorToInt(fRadius), SkScalarFloorToInt(fRadius), nullptr);
H A DImageCycleBench.cpp65 SkScalarFloorToInt(kDeviceSize.fWidth / (kImageSize.fWidth + kPad));
/third_party/skia/gm/
H A Dtextblobcolortrans.cpp84 for (int y = 0; y + SkScalarFloorToInt(bounds.height()) < kHeight;
85 y += SkScalarFloorToInt(bounds.height())) {
H A Dtextblobblockreordering.cpp71 const int yDelta = SkScalarFloorToInt(bounds.height()) + 20;
72 const int xDelta = SkScalarFloorToInt(bounds.width());
H A Danisotropic.cpp77 int height = SkScalarFloorToInt(fImage->height() * gScales[i]);
92 int width = SkScalarFloorToInt(fImage->width() * gScales[i]);
H A Danimated_image_orientation.cpp110 SkISize scaledSize = { SkScalarFloorToInt(unscaledSize.width() * scale) ,
111 SkScalarFloorToInt(unscaledSize.height() * scale) };
H A Dtextblobmixedsizes.cpp127 const int kPadX = SkScalarFloorToInt(bounds.width() / 3);
128 const int kPadY = SkScalarFloorToInt(bounds.height() / 3);
/third_party/skia/include/core/
H A DSkSize.h82 SkISize toFloor() const { return {SkScalarFloorToInt(fWidth), SkScalarFloorToInt(fHeight)}; } in toFloor()
H A DSkRect.h1246 (SkScalarFloorToInt(fLeft), SkScalarFloorToInt(fTop),
1253 dst->setLTRB(SkScalarFloorToInt(fLeft), SkScalarFloorToInt(fTop), in roundOut()
1259 (SkScalarFloorToInt(fLeft), SkScalarFloorToInt(fTop),
1272 SkScalarFloorToInt(fRight), SkScalarFloorToInt(fBottom)).
1279 SkScalarFloorToInt(fRight), SkScalarFloorToInt(fBotto in roundIn()
[all...]
H A DSkScalar.h34 #define SkScalarFloorToInt(x) sk_float_floor2int(x) macro
/third_party/skia/src/ports/skia_ohos/
H A DFontInfo_ohos.h141 weight = SkScalarFloorToInt(value); in computeFontStyle()
143 width = SkScalarFloorToInt(value); in computeFontStyle()
/third_party/skia/src/core/
H A DSkDraw.cpp119 int x = SkScalarFloorToInt(devPts[i].fX); in bw_pt_rect_hair_proc()
120 int y = SkScalarFloorToInt(devPts[i].fY); in bw_pt_rect_hair_proc()
140 int x = SkScalarFloorToInt(devPts[i].fX); in bw_pt_rect_16_hair_proc()
141 int y = SkScalarFloorToInt(devPts[i].fY); in bw_pt_rect_16_hair_proc()
161 int x = SkScalarFloorToInt(devPts[i].fX); in bw_pt_rect_32_hair_proc()
162 int y = SkScalarFloorToInt(devPts[i].fY); in bw_pt_rect_32_hair_proc()
172 int x = SkScalarFloorToInt(devPts[i].fX); in bw_pt_hair_proc()
173 int y = SkScalarFloorToInt(devPts[i].fY); in bw_pt_hair_proc()
H A DSkScalerContext.h81 fDeviceGamma = SkScalarFloorToInt(dg * (1 << 6)); in setDeviceGamma()
89 fPaintGamma = SkScalarFloorToInt(pg * (1 << 6)); in setPaintGamma()
H A DSkScan_Hairline.cpp164 SkIRect r = SkIRect::MakeLTRB(SkScalarFloorToInt(rect.fLeft),
165 SkScalarFloorToInt(rect.fTop),
166 SkScalarFloorToInt(rect.fRight + 1),
167 SkScalarFloorToInt(rect.fBottom + 1));
H A DSkGlyph.cpp26 answer.fBounds.offset(SkScalarFloorToInt(position.x()), SkScalarFloorToInt(position.y())); in mask()
H A DSkBlurMask.cpp417 int sw = SkScalarFloorToInt(src.width()); in BlurRect()
418 int sh = SkScalarFloorToInt(src.height()); in BlurRect()
H A DSkDevice.cpp91 return SkIPoint::Make(SkScalarFloorToInt(fDeviceToGlobal.rc(0, 3)), in getOrigin()
92 SkScalarFloorToInt(fDeviceToGlobal.rc(1, 3))); in getOrigin()
/third_party/skia/src/effects/imagefilters/
H A DSkMatrixConvolutionImageFilter.cpp263 ? SkTPin(SkScalarFloorToInt(sumA * fGain + fBias), 0, 255) in filterPixels()
265 int r = SkTPin(SkScalarFloorToInt(sumR * fGain + fBias), 0, a); in filterPixels()
266 int g = SkTPin(SkScalarFloorToInt(sumG * fGain + fBias), 0, a); in filterPixels()
267 int b = SkTPin(SkScalarFloorToInt(sumB * fGain + fBias), 0, a); in filterPixels()
H A DSkMagnifierImageFilter.cpp265 int x_val = SkTPin(bounds.x() + SkScalarFloorToInt(x_interp), 0, inputBM.width() - 1); in onFilterImage()
266 int y_val = SkTPin(bounds.y() + SkScalarFloorToInt(y_interp), 0, inputBM.height() - 1); in onFilterImage()
/third_party/skia/tests/
H A DSRGBReadWritePixelsTest.cpp57 if (outputComponent < SkScalarFloorToInt(lower * 255.f) || in check_conversion()
82 uint8_t lowerComponent = SkScalarFloorToInt(lower * 255.f); in check_double_conversion()
90 lowerComponent = SkScalarFloorToInt(lower * 255.f); in check_double_conversion()
H A DApplyGammaTest.cpp84 if (dstComponent < SkScalarFloorToInt(lower) || in check_gamma()
/third_party/skia/samplecode/
H A DSampleDegenerateTwoPtRadials.cpp49 int intPart = SkScalarFloorToInt(delta);
/third_party/skia/src/gpu/
H A DGrClip.h167 : SkScalarFloorToInt(v); in GetPixelIBounds()
/third_party/skia/tools/gpu/
H A DYUVUtils.cpp42 int x = SkScalarFloorToInt(normPt.x() * pmap.width()); in look_up()
43 int y = SkScalarFloorToInt(normPt.y() * pmap.height()); in look_up()
/third_party/skia/src/effects/
H A DSkDashPathEffect.cpp263 int numMidPoints = SkScalarFloorToInt(numIntervals); in onAsPoints()

Completed in 17 milliseconds

12