Searched refs:SkPin32 (Results 1 – 9 of 9) sorted by relevance
/external/skia/src/core/ |
D | SkFontStyle.cpp | 21 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()
|
D | SkBitmap.cpp | 204 fPixelRefOrigin.set(SkPin32(dx, 0, info.width()), SkPin32(dy, 0, info.height())); in setPixelRef()
|
D | SkString.cpp | 512 minDigits = SkPin32(minDigits, 0, 8); in insertHex()
|
D | SkCanvas.cpp | 2106 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/ |
D | SkRadialGradient.cpp | 95 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/ |
D | SkTableMaskFilter.cpp | 94 table[i] = SkPin32(sk_float_round2int(powf(x, g) * 255), 0, 255); in MakeGammaTable()
|
D | SkMagnifierImageFilter.cpp | 376 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()
|
D | SkMatrixConvolutionImageFilter.cpp | 130 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/ |
D | SkTypes.h | 414 static inline int32_t SkPin32(int32_t value, int32_t min, int32_t max) { in SkPin32() function
|