Home
last modified time | relevance | path

Searched refs:SkScalarTruncToInt (Results 1 – 16 of 16) sorted by relevance

/external/skia/tools/viewer/
DStatsLayer.cpp118 int x = SkScalarTruncToInt(rect.fLeft) + kGraphPadding; in onPaint()
128 int startY = SkScalarTruncToInt(rect.fBottom); in onPaint()
142 height = std::max(0, height - (SkScalarTruncToInt(rect.fBottom) - startY)); in onPaint()
/external/skia/modules/skottie/src/effects/
DLevelsEffect.cpp47 if (SkScalarTruncToInt(clip_info.fClipBlack) == kLottieDoClip) { in build_lut()
51 if (SkScalarTruncToInt(clip_info.fClipWhite) == kLottieDoClip) { in build_lut()
152 const auto channel = SkScalarTruncToInt(fChannel); in onSync()
/external/skqp/tools/viewer/
DStatsLayer.cpp108 int x = SkScalarTruncToInt(rect.fLeft) + kGraphPadding; in onPaint()
117 int startY = SkScalarTruncToInt(rect.fBottom); in onPaint()
/external/skia/include/core/
DSkScalar.h58 #define SkScalarTruncToInt(x) sk_float_saturate2int(x) macro
/external/skqp/include/core/
DSkScalar.h58 #define SkScalarTruncToInt(x) sk_float_saturate2int(x) macro
/external/skqp/gm/
Dgamma.cpp18 const int szInt = SkScalarTruncToInt(sz);
/external/skia/src/effects/imagefilters/
DSkDisplacementMapImageFilter.cpp222 const int32_t srcX = Sk32_sat_add(x, SkScalarTruncToInt(displX)); in compute_displacement()
223 const int32_t srcY = Sk32_sat_add(y, SkScalarTruncToInt(displY)); in compute_displacement()
/external/skqp/src/effects/imagefilters/
DSkDisplacementMapEffect.cpp78 const int32_t srcX = Sk32_sat_add(x, SkScalarTruncToInt(displX)); in computeDisplacement()
79 const int32_t srcY = Sk32_sat_add(y, SkScalarTruncToInt(displY)); in computeDisplacement()
/external/skia/src/ports/
DSkFontHost_win.cpp685 lf.lfHeight = -SkScalarTruncToInt(gdiTextSize); in SkScalerContext_GDI()
837 glyph->fLeft = SkScalarTruncToInt(bounds.fLeft); in generateMetrics()
838 glyph->fTop = SkScalarTruncToInt(bounds.fTop); in generateMetrics()
839 glyph->fWidth = SkScalarTruncToInt(bounds.width()); in generateMetrics()
840 glyph->fHeight = SkScalarTruncToInt(bounds.height()); in generateMetrics()
DSkScalerContext_win_dw.cpp271 int bitmapPPEM = SkScalarTruncToInt(gdiTextSize); in SkScalerContext_DW()
/external/skqp/src/ports/
DSkFontHost_win.cpp672 lf.lfHeight = -SkScalarTruncToInt(gdiTextSize); in SkScalerContext_GDI()
899 glyph->fLeft = SkScalarTruncToInt(bounds.fLeft); in generateMetrics()
900 glyph->fTop = SkScalarTruncToInt(bounds.fTop); in generateMetrics()
901 glyph->fWidth = SkScalarTruncToInt(bounds.width()); in generateMetrics()
902 glyph->fHeight = SkScalarTruncToInt(bounds.height()); in generateMetrics()
DSkScalerContext_win_dw.cpp264 int bitmapPPEM = SkScalarTruncToInt(gdiTextSize); in SkScalerContext_DW()
/external/skqp/src/shaders/gradients/
DSk4fLinearGradient.cpp230 const int n = SkTMin(SkScalarTruncToInt(proc.currentAdvance() + 1), count); in shadeSpanInternal()
/external/skia/src/shaders/gradients/
DSk4fLinearGradient.cpp231 const int n = std::min(SkScalarTruncToInt(proc.currentAdvance() + 1), count); in shadeSpanInternal()
/external/skia/src/shaders/
DSkPerlinNoiseShader.cpp148 fSeed = SkScalarTruncToInt(seed); in init()
/external/skqp/src/shaders/
DSkPerlinNoiseShader.cpp204 fSeed = SkScalarTruncToInt(seed); in init()