Home
last modified time | relevance | path

Searched refs:SkMin32 (Results 1 – 25 of 41) sorted by relevance

12

/external/skia/src/images/
DSkImageEncoder.cpp19 quality = SkMin32(100, SkMax32(0, quality)); in encodeStream()
25 quality = SkMin32(100, SkMax32(0, quality)); in encodeFile()
32 quality = SkMin32(100, SkMax32(0, quality)); in encodeData()
/external/skia/src/effects/
DSkArithmeticMode.cpp108 r = SkMin32(r, a); in xfer32()
109 g = SkMin32(g, a); in xfer32()
110 b = SkMin32(b, a); in xfer32()
DSkMagnifierImageFilter.cpp329 SkScalar x_dist = SkMin32(x, width - x - 1) * inv_inset; in onFilterImageDeprecated()
330 SkScalar y_dist = SkMin32(y, height - y - 1) * inv_inset; in onFilterImageDeprecated()
/external/skia/src/opts/
DSkMorphologyImageFilter_opts.h24 radius = SkMin32(radius, width - 1); in morph()
57 radius = SkMin32(radius, width - 1); in morph()
89 radius = SkMin32(radius, width - 1); in morph()
DSkBlurImageFilter_opts.h108 int decrementStart = SkMin32(left + leftOffset, width); in box_blur_double()
109 int decrementEnd = SkMin32(right + leftOffset, width); in box_blur_double()
230 int decrementStart = SkMin32(left + leftOffset, width); in box_blur()
231 int decrementEnd = SkMin32(right + leftOffset, width); in box_blur()
/external/skia/src/views/
DSkProgressView.cpp75 percent = SkMax32(0, SkMin32(percent, fMax << 8)); // now its pinned in onDraw()
81 U16CPU value = SkMax32(0, SkMin32(fValue, fMax)); in onDraw()
/external/skia/src/core/
DSkColor.cpp36 unsigned min = SkMin32(r, SkMin32(g, b)); in SkRGBToHSV()
DSkAAClip.cpp90 int n = SkMin32(width, 255); in ComputeRowSizeForWidth()
106 int n = SkMin32(width, 255); in AllocRect()
807 yArray.setReserve(SkMin32(bounds.height(), 1024)); in setRegion()
808 xArray.setReserve(SkMin32(bounds.width() * 128, 64 * 1024)); in setRegion()
1559 rite = leftA = leftB = SkMin32(riteA, riteB); in operatorX()
1634 bot = topA = topB = SkMin32(botA, botB); in operateY()
1956 int minN = SkMin32(srcN, rowN); in merge()
2067 int n = SkMin32(rowN, srcN); in mergeT()
2204 localStopY = SkMin32(localStopY + 1, stopY); in blitMask()
DSkBitmapProcState.cpp394 int n = SkMin32(-ix, count); in Clamp_S32_D32_nofilter_trans_shaderproc()
406 int n = SkMin32(maxX - ix + 1, count); in Clamp_S32_D32_nofilter_trans_shaderproc()
457 int n = SkMin32(stopX - ix, count); in Repeat_S32_D32_nofilter_trans_shaderproc()
DSkScan_Path.cpp272 int local_bot = SkMin32(leftE->fLastY, riteE->fLastY); in walk_convex_edges()
273 local_bot = SkMin32(local_bot, stop_y - 1); in walk_convex_edges()
/external/skia/src/utils/
DSkTextureCompressor_Blitter.h341 const int endX = SkMin32(i + BlockDim, clip.right()); in blitMask()
342 const int endY = SkMin32(j + BlockDim, clip.bottom()); in blitMask()
534 finalX = SkMin32(nextX[i], finalX); in flushRuns()
608 finalX = SkMin32(nextX[i], finalX); in flushRuns()
/external/skia/gm/
Dstringart.cpp37 SkScalar size = SkIntToScalar(SkMin32(kWidth, kHeight)); in onDraw()
Dfontmgr.cpp90 int count = SkMin32(fm->countFamilies(), MAX_FAMILIES); in onDraw()
267 int count = SkMin32(fm->countFamilies(), 32); in onDraw()
Dshadertext3.cpp19 SkScalar s = SkIntToScalar(SkMin32(w, h)); in makebm()
Dshadertext.cpp20 SkScalar s = SkIntToScalar(SkMin32(w, h)); in makebm()
Dshadertext2.cpp17 SkScalar s = SkIntToScalar(SkMin32(w, h)); in makebm()
/external/skia/samplecode/
DSampleDash.cpp68 size_t len = SkMin32(strlen(gStr[i]), SK_ARRAY_COUNT(interval)); in onDrawContent()
/external/skia/bench/
DBitmapRectBench.cpp25 SkIntToScalar(SkMin32(w, h))*3/8, p); in draw_into_bitmap()
DFontCacheBench.cpp126 int count = SkMin32(count_glyphs(array), limit); in onDraw()
DRepeatTileBench.cpp26 SkIntToScalar(SkMin32(w, h))*3/8, p); in draw_into_bitmap()
DAlternatingColorPatternBench.cpp44 SkScalar s = SkIntToScalar(SkMin32(w, h)); in makebm()
/external/skia/include/core/
DSkRect.h298 fRight = SkMin32(a.fRight, b.fRight); in intersect()
299 fBottom = SkMin32(a.fBottom, b.fBottom); in intersect()
318 fRight = SkMin32(a.fRight, b.fRight); in intersectNoEmptyCheck()
319 fBottom = SkMin32(a.fBottom, b.fBottom); in intersectNoEmptyCheck()
/external/skia/tests/
DPathCoverageTest.cpp64 uint32_t count = SkMin32(SkNextPow2(temp), MAX_POINTS_PER_CURVE); in compute_pointCount()
DTextBlobCacheTest.cpp80 int count = SkMin32(fm->countFamilies(), maxFamilies); in text_blob_cache_inner()
DFontNamesTest.cpp146 int count = SkMin32(fm->countFamilies(), MAX_FAMILIES); in test_systemfonts()

12