Home
last modified time | relevance | path

Searched refs:SkTMax (Results 1 – 25 of 82) sorted by relevance

1234

/external/skia/src/pathops/
DSkPathOpsLine.cpp52 double largest = SkTMax(SkTMax(SkTMax(fPts[0].fX, fPts[0].fY), fPts[1].fX), fPts[1].fY); in nearPoint()
53 largest = SkTMax(largest, -tiniest); in nearPoint()
76 double largest = SkTMax(SkTMax(SkTMax(fPts[0].fX, fPts[0].fY), fPts[1].fX), fPts[1].fY); in nearRay()
77 largest = SkTMax(largest, -tiniest); in nearRay()
108 double largest = SkTMax(SkTMax(y, left), right); in NearPointH()
109 largest = SkTMax(largest, -tiniest); in NearPointH()
143 double largest = SkTMax(SkTMax(x, top), bottom); in NearPointV()
144 largest = SkTMax(largest, -tiniest); in NearPointV()
DSkPathOpsPoint.h142 double largest = SkTMax(SkTMax(SkTMax(fX, a.fX), fY), a.fY); in approximatelyEqual()
143 largest = SkTMax(largest, -tiniest); in approximatelyEqual()
165 float largest = SkTMax(SkTMax(SkTMax(a.fX, b.fX), a.fY), b.fY); in ApproximatelyEqual()
166 largest = SkTMax(largest, -tiniest); in ApproximatelyEqual()
203 double largest = SkTMax(SkTMax(SkTMax(fX, a.fX), fY), a.fY); in roughlyEqual()
204 largest = SkTMax(largest, -tiniest); in roughlyEqual()
217 float largest = SkTMax(SkTMax(SkTMax(a.fX, b.fX), a.fY), b.fY); in RoughlyEqual()
218 largest = SkTMax(largest, -tiniest); in RoughlyEqual()
DSkPathOpsQuad.cpp153 double largest = SkTMax(SkTMax(SkTMax(SkTMax(SkTMax(fPts[0].fX, fPts[0].fY), in isLinear()
155 largest = SkTMax(largest, -tiniest); in isLinear()
DSkPathOpsCubic.cpp221 double largest = SkTMax(SkTMax(SkTMax(SkTMax(SkTMax(SkTMax(SkTMax(fPts[0].fX, fPts[0].fY), in isLinear()
223 largest = SkTMax(largest, -tiniest); in isLinear()
246 SkScalar smaller = SkTMax(0.f, SkTMin(ls, ms)); in ComplexBreak()
247 SkScalar larger = SkTMin(1.f, SkTMax(ls, ms)); in ComplexBreak()
DSkPathOpsRect.h18 fRight = SkTMax(fRight, pt.fX); in add()
19 fBottom = SkTMax(fBottom, pt.fY); in add()
DSkOpAngle.cpp220 int end = SkTMax(fSectorStart, fSectorEnd); in checkCrossesZero()
388 longest = SkTMax(longest, lenSq); in distEndRatio()
427 smallTs[index] = t = testAscends ? SkTMax(t, testT) : SkTMin(t, testT); in endsIntersect()
476 maxX = SkTMax(maxX, curve[idx2].fX); in endsIntersect()
477 maxY = SkTMax(maxY, curve[idx2].fY); in endsIntersect()
479 double maxWidth = SkTMax(maxX - minX, maxY - minY); in endsIntersect()
536 maxX = SkTMax(maxX, curve[idx2].fX); in endToSide()
537 maxY = SkTMax(maxY, curve[idx2].fY); in endToSide()
539 double maxWidth = SkTMax(maxX - minX, maxY - minY); in endToSide()
1015 int end = SkTMax(fSectorStart, fSectorEnd); in setSector()
DSkReduceOrder.cpp207 double denom = SkTMax(fabs(cx), SkTMax(fabs(cy), in reduce()
208 SkTMax(fabs(cubic[minX].fX), fabs(cubic[minY].fY)))); in reduce()
/external/skia/tests/
DPathOpsLineIntersectionTest.cpp122 double right = SkTMax(line1[0].fX, line1[1].fX); in testOne()
129 double right = SkTMax(line2[0].fX, line2[1].fX); in testOne()
136 double bottom = SkTMax(line1[0].fY, line1[1].fY); in testOne()
143 double bottom = SkTMax(line2[0].fY, line2[1].fY); in testOne()
165 double right = SkTMax(line1[0].fX, line1[1].fX); in testOneCoincident()
174 double right = SkTMax(line2[0].fX, line2[1].fX); in testOneCoincident()
183 double bottom = SkTMax(line1[0].fY, line1[1].fY); in testOneCoincident()
192 double bottom = SkTMax(line2[0].fY, line2[1].fY); in testOneCoincident()
DPathOpsCubicLineIntersectionIdeas.cpp83 t = SkTMax(0., t); in binary_search()
179 largestR2 = SkTMax(largestR2, R2MinusQ3); in DEF_TEST()
182 double largest = SkTMax(fabs(allRoots[0]), fabs(allRoots[1])); in DEF_TEST()
184 largest = SkTMax(largest, fabs(allRoots[2])); in DEF_TEST()
227 worstStep[largeBits] = SkTMax(worstStep[largeBits], diff); in DEF_TEST()
DPathOpsAngleIdeas.cpp123 double longest = SkTMax(v[0].length(), SkTMax(v[1].length(), v[2].length())); in distEndRatio()
269 max = SkTMax(max, corner[index].length()); in maxDist()
277 max = SkTMax(max, fabs(quad[index].fX)); in maxQuad()
278 max = SkTMax(max, fabs(quad[index].fY)); in maxQuad()
286 double maxQuads = SkTMax(maxQuad(quad1), maxQuad(quad2)); in bruteMinT()
488 maxX = SkTMax(SkTMax(SkTMax(maxX, origin.fX), q[1].fX), q[2].fX); in testQuadAngles()
489 maxY = SkTMax(SkTMax(SkTMax(maxY, origin.fY), q[1].fY), q[2].fY); in testQuadAngles()
490 maxWidth = SkTMax(maxWidth, SkTMax(maxX - minX, maxY - minY)); in testQuadAngles()
DStrokerTest.cpp193 bestTan = SkTMax(bestTan, gMaxRecursion[0]); in DEF_TEST()
194 bestCubic = SkTMax(bestCubic, gMaxRecursion[1]); in DEF_TEST()
303 bestTan = SkTMax(bestTan, gMaxRecursion[0]); in DEF_TEST()
304 bestCubic = SkTMax(bestCubic, gMaxRecursion[1]); in DEF_TEST()
388 best[0] = SkTMax(best[0], gMaxRecursion[0]); in DEF_TEST()
389 best[1] = SkTMax(best[1], gMaxRecursion[1]); in DEF_TEST()
DSRGBReadWritePixelsTest.cpp46 float lower = SkTMax(0.f, (float) inputComponent - error); in check_conversion()
71 float lower = SkTMax(0.f, (float) inputComponent - error); in check_double_conversion()
79 lower = SkTMax(0.f, (float) lowerComponent - error); in check_double_conversion()
DPathOpsTightBoundsTest.cpp95 bitsWritten.fRight = SkTMax(bitsWritten.fRight, x); in testTightBoundsQuads()
101 bitsWritten.fBottom = SkTMax(bitsWritten.fBottom, y); in testTightBoundsQuads()
/external/skia/src/android/
DSkBitmapRegionDecoderPriv.h36 int left = SkTMax(0, subset->fLeft); in adjust_subset_rect()
37 int top = SkTMax(0, subset->fTop); in adjust_subset_rect()
DSkBitmapRegionCodec.cpp87 const int extraX = SkTMax(0, desiredSubset.width() - outX - subset.width()); in decodeRegion()
88 const int extraY = SkTMax(0, desiredSubset.height() - outY - subset.height()); in decodeRegion()
/external/skia/src/opts/
DSkMorphologyImageFilter_opts.h105 B = SkTMax(b, B); in morph()
106 G = SkTMax(g, G); in morph()
107 R = SkTMax(r, R); in morph()
108 A = SkTMax(a, A); in morph()
/external/skia/src/gpu/
DGrResourceCache.cpp136 fHighWaterCount = SkTMax(this->getResourceCount(), fHighWaterCount); in insertResource()
137 fHighWaterBytes = SkTMax(fBytes, fHighWaterBytes); in insertResource()
145 fBudgetedHighWaterCount = SkTMax(fBudgetedCount, fBudgetedHighWaterCount); in insertResource()
146 fBudgetedHighWaterBytes = SkTMax(fBudgetedBytes, fBudgetedHighWaterBytes); in insertResource()
415 fHighWaterBytes = SkTMax(fBytes, fHighWaterBytes); in didChangeGpuMemorySize()
422 fBudgetedHighWaterBytes = SkTMax(fBudgetedBytes, fBudgetedHighWaterBytes); in didChangeGpuMemorySize()
440 fBudgetedHighWaterBytes = SkTMax(fBudgetedBytes, fBudgetedHighWaterBytes); in didChangeBudgetStatus()
441 fBudgetedHighWaterCount = SkTMax(fBudgetedCount, fBudgetedHighWaterCount); in didChangeBudgetStatus()
DGrMemoryPool.cpp20 minAllocSize = SkTMax<size_t>(minAllocSize, 1 << 10); in GrMemoryPool()
23 fPreallocSize = SkTMax(fPreallocSize, fMinAllocSize); in GrMemoryPool()
47 blockSize = SkTMax<size_t>(blockSize, fMinAllocSize); in allocate()
DGrTextureProvider.cpp92 wdesc->fWidth = SkTMax(kMinSize, GrNextPow2(desc->fWidth)); in refScratchTexture()
93 wdesc->fHeight = SkTMax(kMinSize, GrNextPow2(desc->fHeight)); in refScratchTexture()
/external/skia/src/core/
DSkGlyphCache.cpp241 SkScalar max = SkTMax(SkTMax(pts[0], pts[2]), pts[4]); in quad_in_bounds()
250 SkScalar max = SkTMax(SkTMax(SkTMax(pts[0], pts[2]), pts[4]), pts[6]); in cubic_in_bounds()
267 intercept->fInterval[1] = SkTMax(intercept->fInterval[1], val); in AddInterval()
675 bytesNeeded = SkTMax(bytesNeeded, minBytesNeeded); in internalPurge()
678 bytesNeeded = SkTMax(bytesNeeded, fTotalMemoryUsed >> 2); in internalPurge()
DSkConvolver.cpp242 int maxColorChannel = SkTMax(outRow[byteOffset + 0], in ConvolveVertically()
243 SkTMax(outRow[byteOffset + 1], in ConvolveVertically()
325 fMaxFilter = SkTMax(fMaxFilter, filterLength); in AddFilter()
/external/skia/gm/
Dbleed.cpp490 SkScalar x = SkTMax(SkTMax(corners[0].fX, corners[1].fX), in onDraw()
491 SkTMax(corners[2].fX, corners[3].fX)); in onDraw()
549 SkScalar x = kBlockSize + SkTMax(SkTMax(corners[0].fX, corners[1].fX), in onDraw()
550 SkTMax(corners[2].fX, corners[3].fX)); in onDraw()
551 maxX = SkTMax(maxX, x); in onDraw()
Daaxfermodes.cpp206 int maxSum = SkTMax(SkTMax(SkColorGetA(kBGColor) + SkColorGetA(color), in setupShapePaint()
208 SkTMax(SkColorGetG(kBGColor) + SkColorGetG(color), in setupShapePaint()
/external/skia/tools/VisualBench/
DVisualBenchmarkStream.cpp47 int w = SkScalarCeilToInt(SkTMax(fPath.getBounds().right(), fPerlinRect.right())); in onGetSize()
48 int h = SkScalarCeilToInt(SkTMax(fPath.getBounds().bottom(), fPerlinRect.bottom())); in onGetSize()
/external/skia/src/codec/
DSkGifCodec.cpp374 width = SkTMax(width, frameWidth + frameLeft);
375 height = SkTMax(height, frameHeight + frameTop);
535 *rowsBeforeFrame = SkTMin(count, SkTMax(0, fFrameRect.top() - currRow));
542 const int rowsAfterFrame = SkTMax(0, currRow + rowsLeft - fFrameRect.bottom());

1234