/third_party/skia/bench/ |
H A D | MorphologyBench.cpp | 70 SkScalarFloorToInt(fRadius), SkScalarFloorToInt(fRadius), nullptr); 74 SkScalarFloorToInt(fRadius), SkScalarFloorToInt(fRadius), nullptr);
|
H A D | ImageCycleBench.cpp | 65 SkScalarFloorToInt(kDeviceSize.fWidth / (kImageSize.fWidth + kPad));
|
/third_party/skia/gm/ |
H A D | textblobcolortrans.cpp | 84 for (int y = 0; y + SkScalarFloorToInt(bounds.height()) < kHeight; 85 y += SkScalarFloorToInt(bounds.height())) {
|
H A D | textblobblockreordering.cpp | 71 const int yDelta = SkScalarFloorToInt(bounds.height()) + 20; 72 const int xDelta = SkScalarFloorToInt(bounds.width());
|
H A D | anisotropic.cpp | 77 int height = SkScalarFloorToInt(fImage->height() * gScales[i]); 92 int width = SkScalarFloorToInt(fImage->width() * gScales[i]);
|
H A D | animated_image_orientation.cpp | 110 SkISize scaledSize = { SkScalarFloorToInt(unscaledSize.width() * scale) , 111 SkScalarFloorToInt(unscaledSize.height() * scale) };
|
H A D | textblobmixedsizes.cpp | 127 const int kPadX = SkScalarFloorToInt(bounds.width() / 3); 128 const int kPadY = SkScalarFloorToInt(bounds.height() / 3);
|
/third_party/skia/include/core/ |
H A D | SkSize.h | 82 SkISize toFloor() const { return {SkScalarFloorToInt(fWidth), SkScalarFloorToInt(fHeight)}; } in toFloor()
|
H A D | SkRect.h | 1246 (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 D | SkScalar.h | 34 #define SkScalarFloorToInt(x) sk_float_floor2int(x) macro
|
/third_party/skia/src/ports/skia_ohos/ |
H A D | FontInfo_ohos.h | 141 weight = SkScalarFloorToInt(value); in computeFontStyle() 143 width = SkScalarFloorToInt(value); in computeFontStyle()
|
/third_party/skia/src/core/ |
H A D | SkDraw.cpp | 119 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 D | SkScalerContext.h | 81 fDeviceGamma = SkScalarFloorToInt(dg * (1 << 6)); in setDeviceGamma() 89 fPaintGamma = SkScalarFloorToInt(pg * (1 << 6)); in setPaintGamma()
|
H A D | SkScan_Hairline.cpp | 164 SkIRect r = SkIRect::MakeLTRB(SkScalarFloorToInt(rect.fLeft), 165 SkScalarFloorToInt(rect.fTop), 166 SkScalarFloorToInt(rect.fRight + 1), 167 SkScalarFloorToInt(rect.fBottom + 1));
|
H A D | SkGlyph.cpp | 26 answer.fBounds.offset(SkScalarFloorToInt(position.x()), SkScalarFloorToInt(position.y())); in mask()
|
H A D | SkBlurMask.cpp | 417 int sw = SkScalarFloorToInt(src.width()); in BlurRect() 418 int sh = SkScalarFloorToInt(src.height()); in BlurRect()
|
H A D | SkDevice.cpp | 91 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 D | SkMatrixConvolutionImageFilter.cpp | 263 ? 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 D | SkMagnifierImageFilter.cpp | 265 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 D | SRGBReadWritePixelsTest.cpp | 57 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 D | ApplyGammaTest.cpp | 84 if (dstComponent < SkScalarFloorToInt(lower) || in check_gamma()
|
/third_party/skia/samplecode/ |
H A D | SampleDegenerateTwoPtRadials.cpp | 49 int intPart = SkScalarFloorToInt(delta);
|
/third_party/skia/src/gpu/ |
H A D | GrClip.h | 167 : SkScalarFloorToInt(v); in GetPixelIBounds()
|
/third_party/skia/tools/gpu/ |
H A D | YUVUtils.cpp | 42 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 D | SkDashPathEffect.cpp | 263 int numMidPoints = SkScalarFloorToInt(numIntervals); in onAsPoints()
|