Home
last modified time | relevance | path

Searched refs:SkScalarCeilToInt (Results 1 - 25 of 52) sorted by relevance

123

/third_party/skia/tools/viewer/
H A DSampleSlide.cpp24 return SkISize::Make(SkScalarCeilToInt(fSample->width()), SkScalarCeilToInt(fSample->height())); in getDimensions()
/third_party/skia/bench/
H A DRecordingBench.cpp29 return SkIPoint::Make(SkScalarCeilToInt(fSrc->cullRect().width()), in onGetSize()
30 SkScalarCeilToInt(fSrc->cullRect().height())); in onGetSize()
H A DSKPBench.cpp59 int xTiles = SkScalarCeilToInt(bounds.width() / SkIntToScalar(tileW)); in onPerCanvasPreDraw()
60 int yTiles = SkScalarCeilToInt(bounds.height() / SkIntToScalar(tileH)); in onPerCanvasPreDraw()
H A DImageCycleBench.cpp66 int rowsPerImage = SkScalarCeilToInt((SkScalar)fRepeatCnt / imagesPerRow);
/third_party/skia/src/effects/imagefilters/
H A DSkDropShadowImageFilter.cpp178 SkIRect dst = src.makeOffset(SkScalarCeilToInt(offsetVec.x()), in onFilterNodeBounds()
179 SkScalarCeilToInt(offsetVec.y())); in onFilterNodeBounds()
183 SkScalarCeilToInt(SkScalarAbs(sigma.x() * 3)), in onFilterNodeBounds()
184 SkScalarCeilToInt(SkScalarAbs(sigma.y() * 3))); in onFilterNodeBounds()
/third_party/skia/src/gpu/tessellate/
H A DPathCurveTessellator.cpp70 SkScalarCeilToInt(wangs_formula::root4(n4/maxSegments_pow4)); in writePatches()
92 int numPatches = SkScalarCeilToInt(sqrtf(n2/maxSegments_pow2)); in writePatches()
114 SkScalarCeilToInt(wangs_formula::root4(n4/maxSegments_pow4)); in writePatches()
H A DPathWedgeTessellator.cpp182 SkScalarCeilToInt(wangs_formula::root4(n4/maxSegments_pow4)); in writePatches()
202 int numPatches = SkScalarCeilToInt(sqrtf(n2/maxSegments_pow2)); in writePatches()
222 SkScalarCeilToInt(wangs_formula::root4(n4/maxSegments_pow4)); in writePatches()
H A DStrokeFixedCountTessellator.cpp229 numEdges += std::max(SkScalarCeilToInt(numRadialSegmentsPerRadian * SK_ScalarPI) - 1, 0); in worst_case_edges_in_join()
377 std::max(SkScalarCeilToInt(maxRadialSegmentsPerRadian * SK_ScalarPI), 1); in prepare()
379 int maxParametricSegmentsInStroke = SkScalarCeilToInt(sqrtf(sqrtf( in prepare()
/third_party/skia/tools/mdbviz/
H A DModel.cpp39 new DebugCanvas(SkScalarCeilToInt(pic->cullRect().width()), in load()
40 SkScalarCeilToInt(pic->cullRect().height()))); in load()
/third_party/skia/include/core/
H A DSkSize.h80 SkISize toCeil() const { return {SkScalarCeilToInt(fWidth), SkScalarCeilToInt(fHeight)}; } in toCeil()
H A DSkRect.h1247 SkScalarCeilToInt(fRight), SkScalarCeilToInt(fBottom)).
1254 SkScalarCeilToInt(fRight), SkScalarCeilToInt(fBottom)); in roundOut()
1260 SkScalarCeilToInt(fRight), SkScalarCeilToInt(fBottom)).
1271 (SkScalarCeilToInt(fLeft), SkScalarCeilToInt(fTop),
1278 dst->setLTRB(SkScalarCeilToInt(fLeft), SkScalarCeilToInt(fTo in roundIn()
[all...]
/third_party/skia/src/effects/
H A DSkEmbossMaskFilter.cpp88 margin->set(SkScalarCeilToInt(3*sigma), SkScalarCeilToInt(3*sigma)); in filterMask()
/third_party/skia/tools/
H A Ddump_record.cpp161 const int w = SkScalarCeilToInt(src->cullRect().width()); in main()
162 const int h = SkScalarCeilToInt(src->cullRect().height()); in main()
/third_party/skia/gm/
H A Dbigrrectaaeffect.cpp46 fTestWidth = SkScalarCeilToInt(rrect.width()) + 2 * kGap; in BigRRectAAEffectGM()
47 fTestHeight = SkScalarCeilToInt(rrect.height()) + 2 * kGap; in BigRRectAAEffectGM()
H A Dblurpositioning.cpp26 int border = SkScalarCeilToInt(sigma * 3); in DEF_SIMPLE_GM()
H A Dcomplexclip_blur_tiled.cpp47 int ts = SkScalarCeilToInt(tileSize);
H A Dpictureshader.cpp55 fBitmap.allocN32Pixels(SkScalarCeilToInt(fTileSize), SkScalarCeilToInt(fTileSize));
/third_party/skia/src/pdf/
H A DSkPDFShader.cpp103 SkISize patternDeviceSize = {SkScalarCeilToInt(deviceBounds.width()), in make_image_shader()
104 SkScalarCeilToInt(deviceBounds.height())}; in make_image_shader()
292 SkTPin(SkScalarCeilToInt(rasterScale * surfaceBBox.width()), 1, kMaxBitmapArea), in make_fallback_shader()
293 SkTPin(SkScalarCeilToInt(rasterScale * surfaceBBox.height()), 1, kMaxBitmapArea)}; in make_fallback_shader()
/third_party/skia/src/core/
H A DSkBlurMask.cpp338 SkASSERT(SkScalarCeilToInt(6*sigma) == size); in ComputeBlurProfile()
374 unsigned int profile_size = SkScalarCeilToInt(6*sigma); in ComputeBlurredScanline()
398 int profileSize = SkScalarCeilToInt(6*sigma); in BlurRect()
515 int windowSize = SkScalarCeilToInt(sigma*6); in BlurGroundTruth()
H A DSkGpuBlurUtils.cpp739 unsigned int devBlurRadius = 3*SkScalarCeilToInt(xformedSigma-1/6.0f); in ComputeBlurredRRectParams()
748 const int devLeft = SkScalarCeilToInt(std::max<SkScalar>(devRadiiUL.fX, devRadiiLL.fX)); in ComputeBlurredRRectParams()
749 const int devTop = SkScalarCeilToInt(std::max<SkScalar>(devRadiiUL.fY, devRadiiUR.fY)); in ComputeBlurredRRectParams()
750 const int devRight = SkScalarCeilToInt(std::max<SkScalar>(devRadiiUR.fX, devRadiiLR.fX)); in ComputeBlurredRRectParams()
751 const int devBot = SkScalarCeilToInt(std::max<SkScalar>(devRadiiLL.fY, devRadiiLR.fY)); in ComputeBlurredRRectParams()
/third_party/skia/tests/
H A DSRGBReadWritePixelsTest.cpp58 outputComponent > SkScalarCeilToInt(upper * 255.f)) { in check_conversion()
81 uint8_t upperComponent = SkScalarCeilToInt(upper * 255.f); in check_double_conversion()
89 upperComponent = SkScalarCeilToInt(upper * 255.f); in check_double_conversion()
H A DWangsFormulaTest.cpp243 REPORTER_ASSERT(r, SkScalarCeilToInt(std::log2(f)) == f_log2); in DEF_TEST()
251 REPORTER_ASSERT(r, SkScalarCeilToInt(std::log2(f)) == f_log2); in DEF_TEST()
455 const int nsegs = SkScalarCeilToInt(wangs_formula::conic(kPrecision, pts, w)); in DEF_TEST()
H A DPathCoverageTest.cpp63 int temp = SkScalarCeilToInt(SkScalarSqrt(d / tol)); in compute_pointCount()
/third_party/skia/tools/skpbench/
H A Dskpbench.cpp542 int width = std::min(SkScalarCeilToInt(skp->cullRect().width()), 2048), in main()
543 height = std::min(SkScalarCeilToInt(skp->cullRect().height()), 2048); in main()
547 srcname.c_str(), SkScalarCeilToInt(skp->cullRect().width()), in main()
548 SkScalarCeilToInt(skp->cullRect().height()), width, height); in main()
/third_party/skia/src/gpu/
H A DGrClip.h172 : SkScalarCeilToInt(v); in GetPixelIBounds()

Completed in 18 milliseconds

123