Home
last modified time | relevance | path

Searched refs:SkTMin (Results 1 – 25 of 69) sorted by relevance

123

/external/skia/src/pathops/
DSkPathOpsPoint.h141 double tiniest = SkTMin(SkTMin(SkTMin(fX, a.fX), fY), a.fY); in approximatelyEqual()
164 float tiniest = SkTMin(SkTMin(SkTMin(a.fX, b.fX), a.fY), b.fY); in ApproximatelyEqual()
202 double tiniest = SkTMin(SkTMin(SkTMin(fX, a.fX), fY), a.fY); in roughlyEqual()
216 float tiniest = SkTMin(SkTMin(SkTMin(a.fX, b.fX), a.fY), b.fY); in RoughlyEqual()
DSkPathOpsLine.cpp76 double tiniest = SkTMin(SkTMin(SkTMin(fPts[0].fX, fPts[0].fY), fPts[1].fX), fPts[1].fY); in nearPoint()
100 double tiniest = SkTMin(SkTMin(SkTMin(fPts[0].fX, fPts[0].fY), fPts[1].fX), fPts[1].fY); in nearRay()
132 double tiniest = SkTMin(SkTMin(y, left), right); in NearPointH()
167 double tiniest = SkTMin(SkTMin(x, top), bottom); in NearPointV()
DSkPathOpsQuad.cpp150 double tiniest = SkTMin(SkTMin(SkTMin(SkTMin(SkTMin(fPts[0].fX, fPts[0].fY), in isLinear()
DSkOpCubicHull.cpp105 double smallest1distSq = SkTMin(dist1_0, dist1_3); in convexHull()
106 double smallest2distSq = SkTMin(dist2_0, dist2_3); in convexHull()
107 if (approximately_zero(SkTMin(smallest1distSq, smallest2distSq))) { in convexHull()
DSkPathOpsRect.h16 fLeft = SkTMin(fLeft, pt.fX); in add()
17 fTop = SkTMin(fTop, pt.fY); in add()
DSkPathOpsCubic.cpp219 double tiniest = SkTMin(SkTMin(SkTMin(SkTMin(SkTMin(SkTMin(SkTMin(fPts[0].fX, fPts[0].fY), in isLinear()
246 SkScalar smaller = SkTMax(0.f, SkTMin(ls, ms)); in ComplexBreak()
247 SkScalar larger = SkTMin(1.f, SkTMax(ls, ms)); in ComplexBreak()
DSkOpAngle.cpp220 int start = SkTMin(fSectorStart, fSectorEnd); in checkCrossesZero()
475 smallTs[index] = t = testAscends ? SkTMax(t, testT) : SkTMin(t, testT); in endsIntersect()
522 minX = SkTMin(minX, curve[idx2].fX); in endsIntersect()
523 minY = SkTMin(minY, curve[idx2].fY); in endsIntersect()
582 minX = SkTMin(minX, curve[idx2].fX); in endToSide()
583 minY = SkTMin(minY, curve[idx2].fY); in endToSide()
1052 int start = SkTMin(fSectorStart, fSectorEnd); in setSector()
1062 start = SkTMin(fSectorStart, fSectorEnd); in setSector()
DSkOpCoincidence.cpp425 *overS = SkTMax(SkTMin(coin1s->fT, coin1e->fT), SkTMin(coin2s->fT, coin2e->fT)); in overlap()
426 *overE = SkTMin(SkTMax(coin1s->fT, coin1e->fT), SkTMax(coin2s->fT, coin2e->fT)); in overlap()
/external/skia/tools/timer/
DTimerData.cpp86 wallMin = SkTMin(wallMin, fWallTimes[i]); in getResult()
87 truncWallMin = SkTMin(truncWallMin, fTruncatedWallTimes[i]); in getResult()
88 cpuMin = SkTMin(cpuMin, fCpuTimes[i]); in getResult()
89 truncCpuMin = SkTMin(truncCpuMin, fTruncatedCpuTimes[i]); in getResult()
90 gpuMin = SkTMin(gpuMin, fGpuTimes[i]); in getResult()
171 wallMin = SkTMin(wallMin, fWallTimes[i]); in getJSON()
172 truncWallMin = SkTMin(truncWallMin, fTruncatedWallTimes[i]); in getJSON()
173 cpuMin = SkTMin(cpuMin, fCpuTimes[i]); in getJSON()
174 truncCpuMin = SkTMin(truncCpuMin, fTruncatedCpuTimes[i]); in getJSON()
175 gpuMin = SkTMin(gpuMin, fGpuTimes[i]); in getJSON()
/external/skia/tests/
DPathOpsLineIntersectionTest.cpp121 double left = SkTMin(line1[0].fX, line1[1].fX); in testOne()
128 double left = SkTMin(line2[0].fX, line2[1].fX); in testOne()
135 double top = SkTMin(line1[0].fY, line1[1].fY); in testOne()
142 double top = SkTMin(line2[0].fY, line2[1].fY); in testOne()
164 double left = SkTMin(line1[0].fX, line1[1].fX); in testOneCoincident()
173 double left = SkTMin(line2[0].fX, line2[1].fX); in testOneCoincident()
182 double top = SkTMin(line1[0].fY, line1[1].fY); in testOneCoincident()
191 double top = SkTMin(line2[0].fY, line2[1].fY); in testOneCoincident()
DPathOpsAngleIdeas.cpp246 result->tMin = SkTMin(t1, t2); in orderTRange()
285 double maxRadius = SkTMin(maxDist(quad1), maxDist(quad2)); in bruteMinT()
376 lastHighR = SkTMin(r, lastHighR); in bruteMinT()
486 minX = SkTMin(SkTMin(SkTMin(minX, origin.fX), q[1].fX), q[2].fX); in testQuadAngles()
487 minY = SkTMin(SkTMin(SkTMin(minY, origin.fY), q[1].fY), q[2].fY); in testQuadAngles()
626 double min = SkTMin(upperRange.t1, upperRange.t2); in DEF_TEST()
816 maxR = SkTMin(maxR, mDistance(reporter, agrees, quad1, quad2)); in DEF_TEST()
832 maxR = SkTMin(maxR, mDistance(reporter, agrees, q1, q2)); in DEF_TEST()
849 maxR = SkTMin(maxR, mDistance(reporter, agrees, q1, q2)); in DEF_TEST()
DPathOpsCubicLineIntersectionIdeas.cpp93 t = SkTMin(1., t); in binary_search()
178 smallestR2 = SkTMin(smallestR2, R2MinusQ3); in DEF_TEST()
193 double smallest = SkTMin(allRoots[0], allRoots[1]); in DEF_TEST()
195 smallest = SkTMin(smallest, allRoots[2]); in DEF_TEST()
DDeflateWStream.cpp27 SkTMin(size - j, random.nextRangeU(1, 400)); in DEF_TEST()
60 uint32_t minLength = SkTMin(size, in DEF_TEST()
DSkNxTest.cpp139 REPORTER_ASSERT(r, Sk16b::Min(Sk16b(a), Sk16b(b)).kth<0>() == SkTMin(a, b)); in DEF_TEST()
148 REPORTER_ASSERT(r, Sk8h::Min(Sk8h(a), Sk8h(b)).kth<0>() == SkTMin(a, b)); in DEF_TEST()
153 REPORTER_ASSERT(r, Sk8h::Min(Sk8h(a), Sk8h(b)).kth<0>() == SkTMin(a, b)); in DEF_TEST()
DPathOpsTightBoundsTest.cpp94 bitsWritten.fLeft = SkTMin(bitsWritten.fLeft, x); in testTightBoundsQuads()
100 bitsWritten.fTop = SkTMin(bitsWritten.fTop, y); in testTightBoundsQuads()
DSkpSkGrTest.cpp262 int width = SkTMin(gr.width(), sk.width()); in similarBits()
266 int height = SkTMin(gr.height(), sk.height()); in similarBits()
339 SkRect rect = {0, 0, SkIntToScalar(SkTMin(maxDimension, pWidth)), in timePict()
340 SkIntToScalar(SkTMin(maxDimension, pHeight))}; in timePict()
/external/skia/experimental/tools/
Dmultipage_pdf_profiler.cpp109 int w = SkTMin(kLetterWidth, width - (x * kLetterWidth)); in main()
110 int h = SkTMin(kLetterHeight, height - (y * kLetterHeight)); in main()
Dskp_to_pdf_md5.cpp92 int w = SkTMin(kLetterWidth, width - (x * kLetterWidth)); in picture_to_pdf()
93 int h = SkTMin(kLetterHeight, height - (y * kLetterHeight)); in picture_to_pdf()
/external/skia/src/gpu/effects/
DGrConfigConversionEffect.cpp177 color[2] = SkTMin(x, y); in TestForPreservingPMConversions()
178 color[1] = SkTMin(x, y); in TestForPreservingPMConversions()
179 color[0] = SkTMin(x, y); in TestForPreservingPMConversions()
/external/skia/src/core/
DSkRWBuffer.cpp36 size_t amount = SkTMin(this->avail(), length); in append()
153 return SkTMin(fBlock->fUsed, fRemaining); in size()
281 size_t avail = SkTMin(size - fLocalOffset, request - bytesRead); in read()
DSkRect.cpp95 this->set(SkTMin(minArray[0], minArray[2]), SkTMin(minArray[1], minArray[3]), in setBoundsCheck()
DSkBitmapScaler.cpp124 float clampedScale = SkTMin(1.0f, scale); in computeFilters()
156 int srcEnd = SkTMin(srcSize - 1, SkScalarCeilToInt(srcPixel + srcSupport)); in computeFilters()
/external/skia/bench/
DSKPBench.cpp47 int tileW = SkTMin(FLAGS_benchTileW, bounds.width()); in onPerCanvasPreDraw()
48 int tileH = SkTMin(FLAGS_benchTileH, bounds.height()); in onPerCanvasPreDraw()
/external/skia/src/utils/
DSkFrontBufferedStream.cpp108 const size_t bytesToCopy = SkTMin(size, fBufferedSoFar - fOffset); in readFromBuffer()
127 const size_t bytesToBuffer = SkTMin(size, fBufferSize - fBufferedSoFar); in bufferAndWriteTo()
/external/skia/src/gpu/
DGrPathRange.cpp66 const int groupLastPath = SkTMin(groupFirstPath + kPathsPerGroup, fNumPaths) - 1; in willDrawPaths()

123