Home
last modified time | relevance | path

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

1234567

/external/skqp/src/pathops/
DSkPathOpsPoint.h157 double tiniest = SkTMin(SkTMin(SkTMin(fX, a.fX), fY), a.fY); in approximatelyDEqual()
177 double tiniest = SkTMin(SkTMin(SkTMin(fX, a.fX), fY), a.fY); in approximatelyEqual()
200 float tiniest = SkTMin(SkTMin(SkTMin(a.fX, b.fX), a.fY), b.fY); in ApproximatelyEqual()
238 double tiniest = SkTMin(SkTMin(SkTMin(fX, a.fX), fY), a.fY); in roughlyEqual()
252 float tiniest = SkTMin(SkTMin(SkTMin(a.fX, b.fX), a.fY), b.fY); in RoughlyEqual()
DSkPathOpsLine.cpp51 double tiniest = SkTMin(SkTMin(SkTMin(fPts[0].fX, fPts[0].fY), fPts[1].fX), fPts[1].fY); in nearPoint()
75 double tiniest = SkTMin(SkTMin(SkTMin(fPts[0].fX, fPts[0].fY), fPts[1].fX), fPts[1].fY); in nearRay()
107 double tiniest = SkTMin(SkTMin(y, left), right); in NearPointH()
142 double tiniest = SkTMin(SkTMin(x, top), bottom); in NearPointV()
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.h18 fLeft = SkTMin(fLeft, pt.fX); in add()
19 fTop = SkTMin(fTop, pt.fY); in add()
DSkPathOpsTightBounds.cpp20 moveBounds.fLeft = SkTMin(moveBounds.fLeft, pts[0].fX); in TightBounds()
21 moveBounds.fTop = SkTMin(moveBounds.fTop, pts[0].fY); in TightBounds()
DSkPathOpsCurve.cpp18 minX = SkTMin(minX, fCubic.fPts[index].fX); in nearPoint()
27 minY = SkTMin(minY, fCubic.fPts[index].fY); in nearPoint()
48 double largest = SkTMax(SkTMax(maxX, maxY), -SkTMin(minX, minY)); in nearPoint()
DSkPathOpsQuad.cpp191 double tiniest = SkTMin(SkTMin(SkTMin(SkTMin(SkTMin(fPts[0].fX, fPts[0].fY), in isLinear()
/external/skqp/gm/
Dtrickycubicstrokes.cpp32 bounds.fLeft = SkTMin(SkTMin(P[0].x(), P[1].x()), SkTMin(P[2].x(), P[3].x())); in calc_tight_cubic_bounds()
33 bounds.fTop = SkTMin(SkTMin(P[0].y(), P[1].y()), SkTMin(P[2].y(), P[3].y())); in calc_tight_cubic_bounds()
/external/skqp/tests/
DPDFGlyphsToUnicodeTest.cpp85 SkTMin<SkGlyphID>(0xFFFF, lastGlyphID)); in DEF_TEST()
108 SkTMin<SkGlyphID>(0x00FF, lastGlyphID)); in DEF_TEST()
127 SkTMin<SkGlyphID>(0x00FE, lastGlyphID)); in DEF_TEST()
141 SkTMin<SkGlyphID>(0x110, lastGlyphID)); in DEF_TEST()
181 SkTMin<SkGlyphID>(0xFFFF, lastGlyphID)); in DEF_TEST()
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.cpp248 result->tMin = SkTMin(t1, t2); in orderTRange()
287 double maxRadius = SkTMin(maxDist(quad1), maxDist(quad2)); in bruteMinT()
381 lastHighR = SkTMin(r, lastHighR); in bruteMinT()
490 minX = SkTMin(SkTMin(SkTMin(minX, origin.fX), q[1].fX), q[2].fX); in testQuadAngles()
491 minY = SkTMin(SkTMin(SkTMin(minY, origin.fY), q[1].fY), q[2].fY); in testQuadAngles()
639 double min = SkTMin(upperRange.t1, upperRange.t2); in DEF_TEST()
836 maxR = SkTMin(maxR, mDistance(reporter, agrees, quad1, quad2)); in DEF_TEST()
852 maxR = SkTMin(maxR, mDistance(reporter, agrees, q1, q2)); in DEF_TEST()
869 maxR = SkTMin(maxR, mDistance(reporter, agrees, q1, q2)); in DEF_TEST()
DPathOpsCubicLineIntersectionIdeas.cpp93 t = SkTMin(1., t); in binary_search()
180 smallestR2 = SkTMin(smallestR2, R2MinusQ3); in DEF_TEST()
195 double smallest = SkTMin(allRoots[0], allRoots[1]); in DEF_TEST()
197 smallest = SkTMin(smallest, allRoots[2]); in DEF_TEST()
/external/skqp/src/gpu/ccpr/
DGrCCAtlas.cpp32 w = SkTMin(w + kPadding, maxAtlasSize); in addRect()
35 h = SkTMin(h + kPadding, maxAtlasSize); in addRect()
72 fWidth = SkTMin(specs.fMinWidth + kPadding, fMaxTextureSize); in GrCCAtlas()
73 fHeight = SkTMin(specs.fMinHeight + kPadding, fMaxTextureSize); in GrCCAtlas()
135 fHeight = SkTMin(fHeight * 2, fMaxTextureSize); in internalPlaceRect()
139 fWidth = SkTMin(fWidth * 2, fMaxTextureSize); in internalPlaceRect()
/external/skqp/src/android/
DSkBitmapRegionDecoderPriv.h46 int width = SkTMin(imageDims.width() - left, subset->width() - *outX); in adjust_subset_rect()
47 int height = SkTMin(imageDims.height() - top, subset->height() - *outY); in adjust_subset_rect()
/external/skqp/src/gpu/vk/
DGrVkCaps.cpp432 fMaxVertexAttributes = SkTMin(fMaxVertexAttributes, 32); in applyDriverCorrectnessWorkarounds()
478 fMaxVertexAttributes = SkTMin(properties.limits.maxVertexInputAttributes, kMaxVertexAttributes); in initGrCaps()
482 fMaxRenderTargetSize = SkTMin(properties.limits.maxImageDimension2D, (uint32_t)INT_MAX); in initGrCaps()
483 fMaxTextureSize = SkTMin(properties.limits.maxImageDimension2D, (uint32_t)INT_MAX); in initGrCaps()
485 fMaxTextureSize = SkTMin(fMaxTextureSize, 4096); in initGrCaps()
489 fMaxRenderTargetSize = SkTMin(fMaxTextureSize, fMaxRenderTargetSize); in initGrCaps()
593 shaderCaps->fMaxFragmentSamplers = SkTMin( in initShaderCaps()
594 SkTMin(properties.limits.maxPerStageDescriptorSampledImages, in initShaderCaps()
/external/skqp/tools/skiaserve/
DRequest.cpp107 bounds = SkIRect::MakeWH(SkTMin(bounds.width(), maxRTSize), in getBounds()
108 SkTMin(bounds.height(), maxRTSize)); in getBounds()
116 bounds = SkIRect::MakeWH(SkTMin(bounds.width(), kMaxWidth), in getBounds()
117 SkTMin(bounds.height(), kMaxHeight)); in getBounds()
/external/skqp/include/private/
DSkFloatingPoint.h95 x = SkTMin<float>(x, SK_MaxS32FitsInFloat); in sk_float_saturate2int()
104 x = SkTMin<double>(x, SK_MaxS32); in sk_double_saturate2int()
113 x = SkTMin<float>(x, SK_MaxS64FitsInFloat); in sk_float_saturate2int64()
/external/skqp/src/utils/
DSkFrontBufferedStream.cpp106 const size_t bytesToCopy = SkTMin(size, fBufferedSoFar - fOffset); in readFromBuffer()
125 const size_t bytesToBuffer = SkTMin(size, fBufferSize - fBufferedSoFar); in bufferAndWriteTo()
167 size = SkTMin(size, fBufferSize - start); in peek()
/external/skqp/samplecode/
DSampleShadowColor.cpp82 fZIndex = SkTMin(9, fZIndex+1); in onQuery()
125 uint8_t min = SkTMin(SkTMin(SkColorGetR(color), SkColorGetG(color)), in drawShadowedPath()
/external/skqp/include/core/
DSkTypes.h193 template <typename T> constexpr const T& SkTMin(const T& a, const T& b) { in SkTMin() function
202 return (x < lo) ? lo : SkTMin(x, hi); in SkTClamp()
208 return SkTMax(SkTMin(value, max), min); in SkTPin()
/external/skqp/src/gpu/effects/
DGrConfigConversionEffect.h42 color[2] = SkTMin(x, y); in TestForPreservingPMConversions()
43 color[1] = SkTMin(x, y); in TestForPreservingPMConversions()
44 color[0] = SkTMin(x, y); in TestForPreservingPMConversions()
/external/skqp/src/core/
DSkStrike.cpp242 SkScalar min = SkTMin(SkTMin(pts[0], pts[2]), pts[4]); in quad_in_bounds()
251 SkScalar min = SkTMin(SkTMin(SkTMin(pts[0], pts[2]), pts[4]), pts[6]); in cubic_in_bounds()
271 intercept->fInterval[0] = SkTMin(intercept->fInterval[0], val); in AddInterval()
DSkStream.cpp159 , fOffset(SkTMin(offset, fSize)) in SkFILEStream()
160 , fOriginalOffset(SkTMin(originalOffset, fSize)) in SkFILEStream()
225 fOffset = SkTMin(SkSafeMath::Add(position, fOriginalOffset), fSize); in seek()
241 fOffset = SkTMin(SkSafeMath::Add(fOffset, (size_t) offset), fSize); in move()
528 size = SkTMin(fTail->avail(), count); in write()
756 size_t bytesFromCurrent = SkTMin(bytesLeftToRead, bytesLeftInCurrent); in read()
781 bytesToPeek = SkTMin(bytesToPeek, fSize - fOffset); in peek()
789 size_t bytesFromCurrent = SkTMin(current->written() - currentOffset, bytesLeftToPeek); in peek()
/external/skqp/fuzz/
DFuzzMain.cpp483 const int linesToSkip = SkTMin(stripeHeight, height - i * stripeHeight); in fuzz_img()
488 const int linesToRead = SkTMin(stripeHeight, height - startY); in fuzz_img()
503 const int linesToRead = SkTMin(stripeHeight, height - startY); in fuzz_img()
507 const int linesToSkip = SkTMin(stripeHeight, height - (i + 1) * stripeHeight); in fuzz_img()
544 const int preScaleW = SkTMin(w, W - x); in fuzz_img()
545 const int preScaleH = SkTMin(h, H - y); in fuzz_img()
/external/skqp/bench/
DPathTextBench.cpp63 float size = (1 - t0) * SkTMin(kScreenWidth, kScreenHeight) / 50 + in onDelayedSetup()
64 t0 * SkTMin(kScreenWidth, kScreenHeight) / 3; in onDelayedSetup()

1234567