Home
last modified time | relevance | path

Searched refs:SkPin32 (Results 1 – 9 of 9) sorted by relevance

/external/skia/src/core/
DSkFontStyle.cpp21 fUnion.fR.fWeight = SkPin32(weight, kThin_Weight, kBlack_Weight); in SkFontStyle()
22 fUnion.fR.fWidth = SkPin32(width, kUltraCondensed_Width, kUltaExpanded_Width); in SkFontStyle()
23 fUnion.fR.fSlant = SkPin32(slant, kUpright_Slant, kItalic_Slant); in SkFontStyle()
DSkBitmap.cpp204 fPixelRefOrigin.set(SkPin32(dx, 0, info.width()), SkPin32(dy, 0, info.height())); in setPixelRef()
DSkString.cpp512 minDigits = SkPin32(minDigits, 0, 8); in insertHex()
DSkCanvas.cpp2106 c.fRight = SkPin32(center.fRight, c.fLeft, w); in internalDrawBitmapNine()
2107 c.fBottom = SkPin32(center.fBottom, c.fTop, h); in internalDrawBitmapNine()
/external/skia/src/effects/gradients/
DSkRadialGradient.cpp95 fy = SkPin32(fy, -0xFFFF >> 1, 0xFFFF >> 1); in shadeSpan16_radial_clamp()
98 unsigned xx = SkPin32(fx, -0xFFFF >> 1, 0xFFFF >> 1); in shadeSpan16_radial_clamp()
108 unsigned xx = SkPin32(fx, -0xFFFF >> 1, 0xFFFF >> 1); in shadeSpan16_radial_clamp()
109 unsigned fi = SkPin32(fy, -0xFFFF >> 1, 0xFFFF >> 1); in shadeSpan16_radial_clamp()
/external/skia/src/effects/
DSkTableMaskFilter.cpp94 table[i] = SkPin32(sk_float_round2int(powf(x, g) * 255), 0, 255); in MakeGammaTable()
DSkMagnifierImageFilter.cpp376 int x_val = SkPin32(SkScalarFloorToInt(x_interp), 0, width - 1); in onFilterImage()
377 int y_val = SkPin32(SkScalarFloorToInt(y_interp), 0, height - 1); in onFilterImage()
DSkMatrixConvolutionImageFilter.cpp130 x = SkPin32(x, bounds.fLeft, bounds.fRight - 1); in fetch()
131 y = SkPin32(y, bounds.fTop, bounds.fBottom - 1); in fetch()
/external/skia/include/core/
DSkTypes.h414 static inline int32_t SkPin32(int32_t value, int32_t min, int32_t max) { in SkPin32() function