Home
last modified time | relevance | path

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

/third_party/flutter/skia/modules/skottie/src/effects/
DLevelsEffect.cpp66 const auto channel = SkScalarTruncToInt(fChannel); in apply()
80 if (SkScalarTruncToInt(fClipBlack) == kLottieDoClip) { in apply()
84 if (SkScalarTruncToInt(fClipWhite) == kLottieDoClip) { in apply()
/third_party/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()
/third_party/flutter/skia/tools/viewer/
DStatsLayer.cpp119 int x = SkScalarTruncToInt(rect.fLeft) + kGraphPadding; in onPaint()
129 int startY = SkScalarTruncToInt(rect.fBottom); in onPaint()
143 height = SkTMax(0, height - (SkScalarTruncToInt(rect.fBottom) - startY)); in onPaint()
/third_party/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()
/third_party/skia/include/core/
DSkScalar.h58 #define SkScalarTruncToInt(x) sk_float_saturate2int(x) macro
/third_party/flutter/skia/include/core/
DSkScalar.h58 #define SkScalarTruncToInt(x) sk_float_saturate2int(x) macro
/third_party/skia/src/effects/imagefilters/
DSkDisplacementMapImageFilter.cpp219 const int32_t srcX = Sk32_sat_add(x, SkScalarTruncToInt(displX)); in compute_displacement()
220 const int32_t srcY = Sk32_sat_add(y, SkScalarTruncToInt(displY)); in compute_displacement()
/third_party/flutter/skia/gm/
Dgamma.cpp36 const int szInt = SkScalarTruncToInt(sz);
/third_party/flutter/skia/src/effects/imagefilters/
DSkDisplacementMapEffect.cpp270 const int32_t srcX = Sk32_sat_add(x, SkScalarTruncToInt(displX)); in compute_displacement()
271 const int32_t srcY = Sk32_sat_add(y, SkScalarTruncToInt(displY)); in compute_displacement()
/third_party/skia/src/ports/
DSkFontHost_win.cpp686 lf.lfHeight = -SkScalarTruncToInt(gdiTextSize); in SkScalerContext_GDI()
838 glyph->fLeft = SkScalarTruncToInt(bounds.fLeft); in generateMetrics()
839 glyph->fTop = SkScalarTruncToInt(bounds.fTop); in generateMetrics()
840 glyph->fWidth = SkScalarTruncToInt(bounds.width()); in generateMetrics()
841 glyph->fHeight = SkScalarTruncToInt(bounds.height()); in generateMetrics()
DSkScalerContext_win_dw.cpp311 int bitmapPPEM = SkScalarTruncToInt(gdiTextSize); in SkScalerContext_DW()
/third_party/flutter/skia/src/ports/
DSkFontHost_win.cpp681 lf.lfHeight = -SkScalarTruncToInt(gdiTextSize); in SkScalerContext_GDI()
841 glyph->fLeft = SkScalarTruncToInt(bounds.fLeft); in generateMetrics()
842 glyph->fTop = SkScalarTruncToInt(bounds.fTop); in generateMetrics()
843 glyph->fWidth = SkScalarTruncToInt(bounds.width()); in generateMetrics()
844 glyph->fHeight = SkScalarTruncToInt(bounds.height()); in generateMetrics()
DSkScalerContext_win_dw.cpp265 int bitmapPPEM = SkScalarTruncToInt(gdiTextSize); in SkScalerContext_DW()
/third_party/skia/src/shaders/gradients/
DSk4fLinearGradient.cpp231 const int n = std::min(SkScalarTruncToInt(proc.currentAdvance() + 1), count); in shadeSpanInternal()
/third_party/flutter/skia/src/shaders/gradients/
DSk4fLinearGradient.cpp230 const int n = SkTMin(SkScalarTruncToInt(proc.currentAdvance() + 1), count); in shadeSpanInternal()
/third_party/skia/src/shaders/
DSkPerlinNoiseShader.cpp148 fSeed = SkScalarTruncToInt(seed); in init()
/third_party/flutter/skia/src/shaders/
DSkPerlinNoiseShader.cpp204 fSeed = SkScalarTruncToInt(seed); in init()