Home
last modified time | relevance | path

Searched refs:SkScalarFloorToInt (Results 1 – 25 of 67) sorted by relevance

123

/external/skqp/bench/
DMorphologyBench.cpp69 mf = SkDilateImageFilter::Make(SkScalarFloorToInt(fRadius), in onDraw()
70 SkScalarFloorToInt(fRadius), in onDraw()
74 mf = SkErodeImageFilter::Make(SkScalarFloorToInt(fRadius), in onDraw()
75 SkScalarFloorToInt(fRadius), in onDraw()
/external/skia/bench/
DMorphologyBench.cpp70 SkScalarFloorToInt(fRadius), SkScalarFloorToInt(fRadius), nullptr); in onDraw()
74 SkScalarFloorToInt(fRadius), SkScalarFloorToInt(fRadius), nullptr); in onDraw()
/external/skia/gm/
Dtextblobblockreordering.cpp71 const int yDelta = SkScalarFloorToInt(bounds.height()) + 20; in onDraw()
72 const int xDelta = SkScalarFloorToInt(bounds.width()); in onDraw()
Dtextblobcolortrans.cpp84 for (int y = 0; y + SkScalarFloorToInt(bounds.height()) < kHeight; in onDraw()
85 y += SkScalarFloorToInt(bounds.height())) { in onDraw()
Danisotropic.cpp78 int height = SkScalarFloorToInt(fImage->height() * gScales[i]); in onDraw()
93 int width = SkScalarFloorToInt(fImage->width() * gScales[i]); in onDraw()
Danimated_image_orientation.cpp110 SkISize scaledSize = { SkScalarFloorToInt(unscaledSize.width() * scale) , in onDraw()
111 SkScalarFloorToInt(unscaledSize.height() * scale) }; in onDraw()
Dtextblobmixedsizes.cpp127 const int kPadX = SkScalarFloorToInt(bounds.width() / 3); in onDraw()
128 const int kPadY = SkScalarFloorToInt(bounds.height() / 3); in onDraw()
/external/skqp/gm/
Dtextblobblockreordering.cpp59 const int yDelta = SkScalarFloorToInt(bounds.height()) + 20; in onDraw()
60 const int xDelta = SkScalarFloorToInt(bounds.width()); in onDraw()
Dtextblobcolortrans.cpp76 for (int y = 0; y + SkScalarFloorToInt(bounds.height()) < kHeight; in onDraw()
77 y += SkScalarFloorToInt(bounds.height())) { in onDraw()
Danisotropic.cpp68 int height = SkScalarFloorToInt(fBM.height() * gScales[i]); in onDraw()
83 int width = SkScalarFloorToInt(fBM.width() * gScales[i]); in onDraw()
Dtextblobmixedsizes.cpp113 const int kPadX = SkScalarFloorToInt(bounds.width() / 3); in onDraw()
114 const int kPadY = SkScalarFloorToInt(bounds.height() / 3); in onDraw()
/external/skqp/include/core/
DSkSize.h84 SkISize toFloor() const { return {SkScalarFloorToInt(fWidth), SkScalarFloorToInt(fHeight)}; } in toFloor()
/external/skia/include/core/
DSkSize.h82 SkISize toFloor() const { return {SkScalarFloorToInt(fWidth), SkScalarFloorToInt(fHeight)}; } in toFloor()
/external/skqp/src/gpu/
DGrClip.h107 return SkIRect::MakeLTRB(SkScalarFloorToInt(bounds.fLeft + kBoundsTolerance), in GetPixelIBounds()
108 SkScalarFloorToInt(bounds.fTop + kBoundsTolerance), in GetPixelIBounds()
/external/skqp/tests/
DSRGBReadWritePixelsTest.cpp55 if (outputComponent < SkScalarFloorToInt(lower * 255.f) || in check_conversion()
80 uint8_t lowerComponent = SkScalarFloorToInt(lower * 255.f); in check_double_conversion()
88 lowerComponent = SkScalarFloorToInt(lower * 255.f); in check_double_conversion()
/external/skia/tests/
DSRGBReadWritePixelsTest.cpp57 if (outputComponent < SkScalarFloorToInt(lower * 255.f) || in check_conversion()
82 uint8_t lowerComponent = SkScalarFloorToInt(lower * 255.f); in check_double_conversion()
90 lowerComponent = SkScalarFloorToInt(lower * 255.f); in check_double_conversion()
/external/skqp/src/effects/imagefilters/
DSkMagnifierImageFilter.cpp178 int x_val = SkTPin(bounds.x() + SkScalarFloorToInt(x_interp), 0, inputBM.width() - 1); in onFilterImage()
179 int y_val = SkTPin(bounds.y() + SkScalarFloorToInt(y_interp), 0, inputBM.height() - 1); in onFilterImage()
DSkMatrixConvolutionImageFilter.cpp205 ? SkClampMax(SkScalarFloorToInt(sumA * fGain + fBias), 255) in filterPixels()
207 int r = SkClampMax(SkScalarFloorToInt(sumR * fGain + fBias), a); in filterPixels()
208 int g = SkClampMax(SkScalarFloorToInt(sumG * fGain + fBias), a); in filterPixels()
209 int b = SkClampMax(SkScalarFloorToInt(sumB * fGain + fBias), a); in filterPixels()
/external/skia/src/effects/imagefilters/
DSkMatrixConvolutionImageFilter.cpp264 ? SkTPin(SkScalarFloorToInt(sumA * fGain + fBias), 0, 255) in filterPixels()
266 int r = SkTPin(SkScalarFloorToInt(sumR * fGain + fBias), 0, a); in filterPixels()
267 int g = SkTPin(SkScalarFloorToInt(sumG * fGain + fBias), 0, a); in filterPixels()
268 int b = SkTPin(SkScalarFloorToInt(sumB * fGain + fBias), 0, a); in filterPixels()
DSkMagnifierImageFilter.cpp212 int x_val = SkTPin(bounds.x() + SkScalarFloorToInt(x_interp), 0, inputBM.width() - 1); in onFilterImage()
213 int y_val = SkTPin(bounds.y() + SkScalarFloorToInt(y_interp), 0, inputBM.height() - 1); in onFilterImage()
/external/skia/src/core/
DSkDraw.cpp118 int x = SkScalarFloorToInt(devPts[i].fX); in bw_pt_rect_hair_proc()
119 int y = SkScalarFloorToInt(devPts[i].fY); in bw_pt_rect_hair_proc()
139 int x = SkScalarFloorToInt(devPts[i].fX); in bw_pt_rect_16_hair_proc()
140 int y = SkScalarFloorToInt(devPts[i].fY); in bw_pt_rect_16_hair_proc()
160 int x = SkScalarFloorToInt(devPts[i].fX); in bw_pt_rect_32_hair_proc()
161 int y = SkScalarFloorToInt(devPts[i].fY); in bw_pt_rect_32_hair_proc()
171 int x = SkScalarFloorToInt(devPts[i].fX); in bw_pt_hair_proc()
172 int y = SkScalarFloorToInt(devPts[i].fY); in bw_pt_hair_proc()
DSkScalerContext.h76 fDeviceGamma = SkScalarFloorToInt(dg * (1 << 6)); in setDeviceGamma()
84 fPaintGamma = SkScalarFloorToInt(pg * (1 << 6)); in setPaintGamma()
/external/skqp/src/core/
DSkDraw.cpp115 int x = SkScalarFloorToInt(devPts[i].fX); in bw_pt_rect_hair_proc()
116 int y = SkScalarFloorToInt(devPts[i].fY); in bw_pt_rect_hair_proc()
136 int x = SkScalarFloorToInt(devPts[i].fX); in bw_pt_rect_16_hair_proc()
137 int y = SkScalarFloorToInt(devPts[i].fY); in bw_pt_rect_16_hair_proc()
157 int x = SkScalarFloorToInt(devPts[i].fX); in bw_pt_rect_32_hair_proc()
158 int y = SkScalarFloorToInt(devPts[i].fY); in bw_pt_rect_32_hair_proc()
168 int x = SkScalarFloorToInt(devPts[i].fX); in bw_pt_hair_proc()
169 int y = SkScalarFloorToInt(devPts[i].fY); in bw_pt_hair_proc()
DSkScalerContext.h87 fDeviceGamma = SkScalarFloorToInt(dg * (1 << 6)); in setDeviceGamma()
95 fPaintGamma = SkScalarFloorToInt(pg * (1 << 6)); in setPaintGamma()
/external/skqp/src/utils/
DSkInterpolator.cpp81 endTime = SkScalarFloorToInt(fRepeat * totalTime); in timeToT()
85 (SkMSec) SkScalarFloorToInt(fraction * totalTime); in timeToT()

123