Home
last modified time | relevance | path

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

123456

/external/skia/src/pathops/
DSkPathOpsPoint.h155 double tiniest = SkTMin(SkTMin(SkTMin(fX, a.fX), fY), a.fY); in approximatelyDEqual()
175 double tiniest = SkTMin(SkTMin(SkTMin(fX, a.fX), fY), a.fY); in approximatelyEqual()
198 float tiniest = SkTMin(SkTMin(SkTMin(a.fX, b.fX), a.fY), b.fY); in ApproximatelyEqual()
236 double tiniest = SkTMin(SkTMin(SkTMin(fX, a.fX), fY), a.fY); in roughlyEqual()
250 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.h16 fLeft = SkTMin(fLeft, pt.fX); in add()
17 fTop = SkTMin(fTop, pt.fY); in add()
DSkPathOpsQuad.cpp181 double tiniest = SkTMin(SkTMin(SkTMin(SkTMin(SkTMin(fPts[0].fX, fPts[0].fY), in isLinear()
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()
DSkPathOpsTightBounds.cpp20 moveBounds.fLeft = SkTMin(moveBounds.fLeft, pts[0].fX); in TightBounds()
21 moveBounds.fTop = SkTMin(moveBounds.fTop, pts[0].fY); in TightBounds()
DSkPathOpsCubic.cpp219 double tiniest = SkTMin(SkTMin(SkTMin(SkTMin(SkTMin(SkTMin(SkTMin(fPts[0].fX, fPts[0].fY), in isLinear()
/external/skia/src/gpu/vk/
DGrVkCaps.cpp154 fMaxVertexAttributes = SkTMin(properties.limits.maxVertexInputAttributes, kMaxVertexAttributes); in initGrCaps()
157 fMaxVertexAttributes = SkTMin(fMaxVertexAttributes, 32); in initGrCaps()
162 fMaxRenderTargetSize = SkTMin(properties.limits.maxImageDimension2D, (uint32_t)INT_MAX); in initGrCaps()
163 fMaxTextureSize = SkTMin(properties.limits.maxImageDimension2D, (uint32_t)INT_MAX); in initGrCaps()
251 shaderCaps->fMaxFragmentSamplers = SkTMin( in initShaderCaps()
252 SkTMin(properties.limits.maxPerStageDescriptorSampledImages, in initShaderCaps()
255 shaderCaps->fMaxCombinedSamplers = SkTMin( in initShaderCaps()
256 SkTMin(properties.limits.maxDescriptorSetSampledImages, in initShaderCaps()
/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.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()
641 double min = SkTMin(upperRange.t1, upperRange.t2); in DEF_TEST()
838 maxR = SkTMin(maxR, mDistance(reporter, agrees, quad1, quad2)); in DEF_TEST()
854 maxR = SkTMin(maxR, mDistance(reporter, agrees, q1, q2)); in DEF_TEST()
871 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()
DSRGBReadWritePixelsTest.cpp48 float upper = SkTMin(255.f, (float) inputComponent + error); in check_conversion()
73 float upper = SkTMin(255.f, (float) inputComponent + error); in check_double_conversion()
81 upper = SkTMin(255.f, (float) upperComponent + error); in check_double_conversion()
/external/skia/src/opts/
DSkMorphologyImageFilter_opts.h112 B = SkTMin(b, B); in morph()
113 G = SkTMin(g, G); in morph()
114 R = SkTMin(r, R); in morph()
115 A = SkTMin(a, A); in morph()
DSkBlend_opts.h57 int count = SkTMin(ndst, nsrc); in srcover_srgb_srgb()
131 int count = SkTMin(ndst, nsrc); in srcover_srgb_srgb()
174 int n = SkTMin(ndst, nsrc); in srcover_srgb_srgb()
/external/skia/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/skia/gm/
Dgammaencodedpremul.cpp21 SkTMin(a, r), in clamp_to_alpha()
22 SkTMin(a, g), in clamp_to_alpha()
23 SkTMin(a, b)); in clamp_to_alpha()
/external/skia/src/utils/
DSkFrontBufferedStream.cpp104 const size_t bytesToCopy = SkTMin(size, fBufferedSoFar - fOffset); in readFromBuffer()
123 const size_t bytesToBuffer = SkTMin(size, fBufferSize - fBufferedSoFar); in bufferAndWriteTo()
165 size = SkTMin(size, fBufferSize - start); in peek()
/external/skia/src/gpu/
DGrProcessor.cpp240 fParams.setFilterMode(SkTMin(params.filterMode(), texture->texturePriv().highestFilterMode())); in reset()
250 filterMode = SkTMin(filterMode, texture->texturePriv().highestFilterMode()); in reset()
265 fParams.setFilterMode(SkTMin(params.filterMode(), texture->texturePriv().highestFilterMode())); in reset()
279 filterMode = SkTMin(filterMode, texture->texturePriv().highestFilterMode()); in reset()
/external/skia/include/gpu/
DGrColor.h116 unsigned r = SkTMin<unsigned>(GrColorUnpackR(c0) + GrColorUnpackR(c1), 0xff); in GrColorSatAdd()
117 unsigned g = SkTMin<unsigned>(GrColorUnpackG(c0) + GrColorUnpackG(c1), 0xff); in GrColorSatAdd()
118 unsigned b = SkTMin<unsigned>(GrColorUnpackB(c0) + GrColorUnpackB(c1), 0xff); in GrColorSatAdd()
119 unsigned a = SkTMin<unsigned>(GrColorUnpackA(c0) + GrColorUnpackA(c1), 0xff); in GrColorSatAdd()
/external/skia/bench/
DSkBlend_optsBench.cpp39 int n = SkTMin(ndst, nsrc); in brute_force_srcover_srgb_srgb()
51 int n = SkTMin(ndst, nsrc); in trivial_srcover_srgb_srgb()
70 int count = SkTMin(ndst, nsrc); in best_non_simd_srcover_srgb_srgb()
/external/skia/fuzz/
Dfuzz.cpp298 const int linesToSkip = SkTMin(stripeHeight, height - i * stripeHeight); in fuzz_img()
303 const int linesToRead = SkTMin(stripeHeight, height - startY); in fuzz_img()
319 const int linesToRead = SkTMin(stripeHeight, height - startY); in fuzz_img()
323 const int linesToSkip = SkTMin(stripeHeight, height - (i + 1) * stripeHeight); in fuzz_img()
360 const int preScaleW = SkTMin(w, W - x); in fuzz_img()
361 const int preScaleH = SkTMin(h, H - y); in fuzz_img()
/external/skia/tools/skiaserve/
DRequest.cpp156 bounds = SkIRect::MakeWH(SkTMin(bounds.width(), maxRTSize), in getBounds()
157 SkTMin(bounds.height(), maxRTSize)); in getBounds()
166 bounds = SkIRect::MakeWH(SkTMin(bounds.width(), kMaxWidth), in getBounds()
167 SkTMin(bounds.height(), kMaxHeight)); in getBounds()
/external/skia/src/core/
DSkStream.cpp162 , fOffset(SkTMin(offset, fSize)) in SkFILEStream()
163 , fOriginalOffset(SkTMin(originalOffset, fSize)) in SkFILEStream()
492 size = SkTMin(fTail->avail(), count); in write()
656 size_t bytesFromCurrent = SkTMin(bytesLeftToRead, bytesLeftInCurrent); in read()
681 bytesToPeek = SkTMin(bytesToPeek, fSize - fOffset); in peek()
689 size_t bytesFromCurrent = SkTMin(current->written() - currentOffset, bytesLeftToPeek); in peek()
DSkRWBuffer.cpp40 size_t amount = SkTMin(this->avail(), length); in append()
167 return SkTMin(fBlock->fCapacity, fRemaining); in size()
292 size_t avail = SkTMin(size - fLocalOffset, request - bytesRead); in read()

123456