Searched refs:SkPin32 (Results 1 - 20 of 20) sorted by relevance

/external/skia/src/core/
H A DSkTileGrid.cpp86 tileStartX = SkPin32(tileStartX, 0, fXTileCount - 1);
87 tileEndX = SkPin32(tileEndX, tileStartX+1, fXTileCount);
88 tileStartY = SkPin32(tileStartY, 0, fYTileCount - 1);
89 tileEndY = SkPin32(tileEndY, tileStartY+1, fYTileCount);
H A DSkFontHost.cpp65 fUnion.fR.fWeight = SkPin32(weight, kThin_Weight, kBlack_Weight);
66 fUnion.fR.fWidth = SkPin32(width, kUltraCondensed_Width, kUltaExpanded_Width);
67 fUnion.fR.fSlant = SkPin32(slant, kUpright_Slant, kItalic_Slant);
H A DSkString.cpp531 minDigits = SkPin32(minDigits, 0, 8);
H A DSkBitmap.cpp292 fPixelRefOrigin.set(SkPin32(dx, 0, info.fWidth),
293 SkPin32(dy, 0, info.fHeight));
H A DSkCanvas.cpp2119 c.fRight = SkPin32(center.fRight, c.fLeft, w);
2120 c.fBottom = SkPin32(center.fBottom, c.fTop, h);
/external/chromium_org/third_party/skia/src/core/
H A DSkTileGrid.cpp95 startX = SkPin32(startX, 0, fXTiles - 1);
96 startY = SkPin32(startY, 0, fYTiles - 1);
97 endX = SkPin32(endX, startX + 1, fXTiles);
98 endY = SkPin32(endY, startY + 1, fYTiles);
H A DSkFontHost.cpp65 fUnion.fR.fWeight = SkPin32(weight, kThin_Weight, kBlack_Weight);
66 fUnion.fR.fWidth = SkPin32(width, kUltraCondensed_Width, kUltaExpanded_Width);
67 fUnion.fR.fSlant = SkPin32(slant, kUpright_Slant, kItalic_Slant);
H A DSkString.cpp531 minDigits = SkPin32(minDigits, 0, 8);
H A DSkBitmap.cpp204 fPixelRefOrigin.set(SkPin32(dx, 0, info.width()), SkPin32(dy, 0, info.height()));
H A DSkCanvas.cpp1993 c.fRight = SkPin32(center.fRight, c.fLeft, w);
1994 c.fBottom = SkPin32(center.fBottom, c.fTop, h);
/external/skia/src/effects/gradients/
H A DSkRadialGradient.cpp91 fy = SkPin32(fy, -0xFFFF >> 1, 0xFFFF >> 1);
94 unsigned xx = SkPin32(fx, -0xFFFF >> 1, 0xFFFF >> 1);
104 unsigned xx = SkPin32(fx, -0xFFFF >> 1, 0xFFFF >> 1);
105 unsigned fi = SkPin32(fy, -0xFFFF >> 1, 0xFFFF >> 1);
282 // SkPin32 is expensive, but so are all the SkFixedMul in this test,
347 unsigned yy = SkPin32(fy, -0xFFFF >> 1, 0xFFFF >> 1);
350 unsigned xx = SkPin32(fx, -0xFFFF >> 1, 0xFFFF >> 1);
360 unsigned xx = SkPin32(fx, -0xFFFF >> 1, 0xFFFF >> 1);
361 unsigned fi = SkPin32(fy, -0xFFFF >> 1, 0xFFFF >> 1);
/external/chromium_org/third_party/skia/src/effects/gradients/
H A DSkRadialGradient.cpp91 fy = SkPin32(fy, -0xFFFF >> 1, 0xFFFF >> 1);
94 unsigned xx = SkPin32(fx, -0xFFFF >> 1, 0xFFFF >> 1);
104 unsigned xx = SkPin32(fx, -0xFFFF >> 1, 0xFFFF >> 1);
105 unsigned fi = SkPin32(fy, -0xFFFF >> 1, 0xFFFF >> 1);
294 // SkPin32 is expensive, but so are all the SkFixedMul in this test,
359 unsigned yy = SkPin32(fy, -0xFFFF >> 1, 0xFFFF >> 1);
362 unsigned xx = SkPin32(fx, -0xFFFF >> 1, 0xFFFF >> 1);
372 unsigned xx = SkPin32(fx, -0xFFFF >> 1, 0xFFFF >> 1);
373 unsigned fi = SkPin32(fy, -0xFFFF >> 1, 0xFFFF >> 1);
/external/chromium_org/third_party/skia/src/effects/
H A DSkTableMaskFilter.cpp101 table[i] = SkPin32(sk_float_round2int(powf(x, g) * 255), 0, 255);
H A DSkMagnifierImageFilter.cpp366 int x_val = SkPin32(SkScalarFloorToInt(x_interp), 0, width - 1);
367 int y_val = SkPin32(SkScalarFloorToInt(y_interp), 0, height - 1);
H A DSkMatrixConvolutionImageFilter.cpp172 x = SkPin32(x, bounds.fLeft, bounds.fRight - 1);
173 y = SkPin32(y, bounds.fTop, bounds.fBottom - 1);
/external/skia/src/effects/
H A DSkTableMaskFilter.cpp93 table[i] = SkPin32(sk_float_round2int(powf(x, g) * 255), 0, 255);
H A DSkMagnifierImageFilter.cpp342 int x_val = SkPin32(SkScalarFloorToInt(x_interp), 0, width - 1);
343 int y_val = SkPin32(SkScalarFloorToInt(y_interp), 0, height - 1);
H A DSkMatrixConvolutionImageFilter.cpp121 x = SkPin32(x, bounds.fLeft, bounds.fRight - 1);
122 y = SkPin32(y, bounds.fTop, bounds.fBottom - 1);
/external/chromium_org/third_party/skia/include/core/
H A DSkTypes.h401 static inline int32_t SkPin32(int32_t value, int32_t min, int32_t max) { function
/external/skia/include/core/
H A DSkTypes.h395 static inline int32_t SkPin32(int32_t value, int32_t min, int32_t max) { function

Completed in 607 milliseconds