Home
last modified time | relevance | path

Searched refs:fTop (Results 1 - 25 of 397) sorted by relevance

12345678910>>...16

/third_party/skia/include/core/
H A DSkRect.h30 int32_t fTop; //!< smaller y-axis bounds member
76 @param pt values for SkIRect fLeft and fTop
85 result in fLeft greater than fRight, or fTop greater than fBottom.
88 @param t integer stored in fTop
102 @param y stored in fTop
120 and sort() to reverse fTop and fBottom if needed.
122 @return fTop
124 int32_t top() const { return fTop; } in top()
134 and sort() to reverse fTop and fBottom if needed.
148 and sort() to reverse fTop an
[all...]
/third_party/skia/src/gpu/geometry/
H A DGrRect.h17 int16_t fLeft, fTop, fRight, fBottom; member
44 int height() const { return fBottom - fTop; } in height()
46 bool isEmpty() const { return fLeft >= fRight || fTop >= fBottom; } in isEmpty()
52 fTop = top; in set()
59 fTop = SkToS16(r.fTop); in set()
66 fTop += dy; in offset()
76 SkASSERT(!a.isFinite() || (a.fLeft <= a.fRight && a.fTop <= a.fBottom)); in GrRectsOverlap()
77 SkASSERT(!b.isFinite() || (b.fLeft <= b.fRight && b.fTop <= b.fBottom)); in GrRectsOverlap()
78 return a.fRight > b.fLeft && a.fBottom > b.fTop in GrRectsOverlap()
[all...]
H A DGrTriangulator.cpp252 fTop->fID, fBottom->fID, other.fTop->fID, other.fBottom->fID); in intersect()
253 if (fTop == other.fTop || fBottom == other.fBottom || in intersect()
254 fTop == other.fBottom || fBottom == other.fTop) { in intersect()
262 fLine, fTop->fPoint, fBottom->fPoint, in intersect()
263 other.fLine, other.fTop->fPoint, other.fBottom->fPoint, in intersect()
282 *alpha = std::max((1.0 - s) * fTop->fAlpha + s * fBottom->fAlpha, in intersect()
283 (1.0 - t) * other.fTop in intersect()
[all...]
/third_party/skia/src/core/
H A DSkRect.cpp17 desc += split + "\t fTop:" + std::to_string(fTop) + "\n"; in dump()
26 std::max(a.fTop, b.fTop), in intersect()
39 if (r.fLeft >= r.fRight || r.fTop >= r.fBottom) { in join()
44 if (fLeft >= fRight || fTop >= fBottom) { in join()
48 if (r.fTop < fTop) fTop = r.fTop; in join()
[all...]
H A DSkEdgeClipper.cpp16 return bounds.fTop >= clip.fBottom || bounds.fBottom <= clip.fTop; in quick_reject()
100 if (pts[0].fY < clip.fTop) { in chop_quad_in_Y()
101 if (chopMonoQuadAtY(pts, clip.fTop, &t)) { in chop_quad_in_Y()
105 tmp[2].fY = clip.fTop; in chop_quad_in_Y()
106 clamp_ge(tmp[3].fY, clip.fTop); in chop_quad_in_Y()
114 if (pts[i].fY < clip.fTop) { in chop_quad_in_Y()
115 pts[i].fY = clip.fTop; in chop_quad_in_Y()
149 if (pts[2].fY <= clip.fTop || pts[0].fY >= clip.fBottom) { in clipMonoQuad()
286 if (pts[0].fY < clip.fTop) { in chop_cubic_in_Y()
[all...]
H A DSkScan.h106 xr->fTop = SkIntToFixed(src.fTop); in XRect_set()
117 xr->fTop = SkScalarToFixed(src.fTop); in XRect_set()
126 dst->fTop = SkFixedRoundToInt(xr.fTop); in XRect_round()
136 dst->fTop = SkFixedFloorToInt(xr.fTop); in XRect_roundOut()
H A DSkLatticeIter.cpp37 latticeBounds.fTop == lattice.fYDivs[0]); in Valid()
43 && valid_divs(lattice.fYDivs, lattice.fYCount, latticeBounds.fTop, latticeBounds.fBottom); in Valid()
140 bool yIsScalable = (yCount > 0 && src.fTop == yDivs[0]); in SkLatticeIter()
151 int yCountScalable = count_scalable_pixels(yDivs, yCount, yIsScalable, src.fTop, src.fBottom); in SkLatticeIter()
162 src.fTop, src.fBottom, dst.fTop, dst.fBottom, yIsScalable); in SkLatticeIter()
227 fSrcY[1] = SkIntToScalar(c.fTop); in SkLatticeIter()
236 fDstY[0] = dst.fTop; in SkLatticeIter()
237 fDstY[1] = dst.fTop + SkIntToScalar(c.fTop); in SkLatticeIter()
[all...]
H A DSkLineClipper.cpp86 return outer.fLeft <= inner.fLeft && outer.fTop <= inner.fTop && in containsNoEmptyCheck()
105 nestedLT(bounds.fBottom, clip.fTop, bounds.height()) || in IntersectLine()
106 nestedLT(clip.fBottom, bounds.fTop, bounds.height())) { in IntersectLine()
124 if (tmp[index0].fY < clip.fTop) { in IntersectLine()
125 tmp[index0].set(sect_with_horizontal(src, clip.fTop), clip.fTop); in IntersectLine()
189 if (pts[index1].fY <= clip.fTop) { // we're above the clip in ClipLine()
202 if (pts[index0].fY < clip.fTop) { in ClipLine()
203 tmp[index0].set(sect_with_horizontal(pts, clip.fTop), cli in ClipLine()
[all...]
H A DSkRectPriv.h46 r->fTop = std::min(pt.fY, r->fTop); in GrowToInclude()
53 return SkFitsInFixed(r.fLeft) && SkFitsInFixed(r.fTop) && in FitsInFixed()
58 return SkTFitsIn<int16_t>(r.fLeft) && SkTFitsIn<int16_t>(r.fTop) && in Is16Bit()
68 return SkScalarHalf(r.fBottom) - SkScalarHalf(r.fTop); in HalfHeight()
H A DSkScan_AntiPath.cpp74 int fTop; member in BaseSuperBlitter
100 fTop = sectBounds.top(); in BaseSuperBlitter()
101 fCurrIY = fTop - 1; in BaseSuperBlitter()
102 fCurrY = SkLeftShift(fTop, SHIFT) - 1; in BaseSuperBlitter()
170 if (fCurrIY >= fTop) { in flush()
180 fCurrIY = fTop - 1; in flush()
535 SkASSERT(iy >= fMask.fBounds.fTop && iy < fMask.fBounds.fBottom);
536 iy -= fMask.fBounds.fTop; // make it relative to 0
696 SkASSERT(SkIntToScalar(ir.fTop) <= path.getBounds().fTop);
[all...]
H A DSkBlitter.cpp86 SkScalar partialT = bounds.fTop + 1 - rect.fTop; in blitFatAntiRect()
90 partialT = rect.fBottom - rect.fTop; in blitFatAntiRect()
96 this->blitAntiH(bounds.fLeft, bounds.fTop, alphas, runs); in blitFatAntiRect()
99 this->blitAntiRect(bounds.fLeft, bounds.fTop + 1, bounds.width() - 2, bounds.height() - 2, in blitFatAntiRect()
202 int cy = clip.fTop; in blitMask()
259 const uint8_t* aa = mask.getAddr8(clip.fLeft, clip.fTop); in blitMask()
265 int y = clip.fTop; in blitMask()
295 this->blitRect(cr.fLeft, cr.fTop, cr.width(), cr.height()); in blitRectRegion()
344 return (unsigned)(y - rect.fTop) < (unsigne in y_in_rect()
[all...]
H A DSkRegion.cpp243 "(%d,%d,%d,%d)", r.fLeft, r.fTop, r.fRight, r.fBottom); in toString()
262 *itop = fBounds.fTop; in count_runtype_values()
347 runs[0] = bounds.fTop; in BuildRectRuns()
425 const RunType* scanline = fRunHead->findScanline(r.fTop); in contains()
510 const RunType* scanline = fRunHead->findScanline(sect.fTop); in intersects()
600 dy = pin_offset_s32(fBounds.fTop, fBounds.fBottom, dy); in translate()
837 , fTop((SkRegionPriv::RunType)top) // just a first guess, we might update this in RgnOper()
860 fTop = (SkRegionPriv::RunType)bottom; // just update our bottom in addSpan()
871 (*fArray)[fStartDst] = fTop; in flush()
887 SkRegionPriv::RunType fTop; member in RgnOper
[all...]
/third_party/skia/src/pathops/
H A DSkPathOpsRect.h15 double fLeft, fTop, fRight, fBottom; member
19 fTop = std::min(fTop, pt.fY); in add()
26 && approximately_between(fTop, pt.fY, fBottom); in contains()
33 SkASSERT(fTop <= fBottom); in intersects()
35 SkASSERT(r.fTop <= r.fBottom); in intersects()
36 return r.fLeft <= fRight && fLeft <= r.fRight && r.fTop <= fBottom && fTop <= r.fBottom; in intersects()
41 fTop = fBottom = pt.fY; in set()
49 return fBottom - fTop; in height()
[all...]
H A DSkPathOpsBounds.h18 && AlmostLessOrEqualUlps(a.fTop, b.fBottom) in Intersects()
19 && AlmostLessOrEqualUlps(b.fTop, a.fBottom); in Intersects()
27 if (top < fTop) fTop = top; in add()
33 add(toAdd.fLeft, toAdd.fTop, toAdd.fRight, toAdd.fBottom); in add()
38 if (pt.fY < fTop) fTop = pt.fY; in add()
45 if (pt.fY < fTop) fTop = SkDoubleToScalar(pt.fY); in add()
53 && AlmostLessOrEqualUlps(fTop, p in almostContains()
[all...]
/third_party/skia/docs/examples/
H A DCanvas_drawRRect.cpp12 rRect.setNinePatch(outer, radii.fLeft, radii.fTop, radii.fRight, radii.fBottom); in REG_FIDDLE()
15 canvas->drawLine(outer.fLeft + radii.fLeft, outer.fTop, in REG_FIDDLE()
17 canvas->drawLine(outer.fRight - radii.fRight, outer.fTop, in REG_FIDDLE()
19 canvas->drawLine(outer.fLeft, outer.fTop + radii.fTop, in REG_FIDDLE()
20 outer.fRight, outer.fTop + radii.fTop, paint); in REG_FIDDLE()
H A DRect_equal_operator.cpp10 test.fLeft, test.fTop, test.fRight, test.fBottom, in REG_FIDDLE()
12 negZero.fLeft, negZero.fTop, negZero.fRight, negZero.fBottom, in REG_FIDDLE()
13 (test.fLeft == negZero.fLeft && test.fTop == negZero.fTop && in REG_FIDDLE()
H A DRRect_Corner.cpp15 canvas->drawLine(r.fLeft, r.fTop + rrect.radii(SkRRect::kUpperLeft_Corner).fY, in REG_FIDDLE()
16 r.fRight, r.fTop + rrect.radii(SkRRect::kUpperRight_Corner).fY, paint); in REG_FIDDLE()
19 canvas->drawLine(r.fLeft + rrect.radii(SkRRect::kUpperLeft_Corner).fX, r.fTop, in REG_FIDDLE()
21 canvas->drawLine(r.fRight - rrect.radii(SkRRect::kUpperRight_Corner).fX, r.fTop, in REG_FIDDLE()
H A DRRect_setNinePatch.cpp14 canvas->drawLine(r.fLeft, r.fTop + rrect.radii(SkRRect::kUpperLeft_Corner).fY, in REG_FIDDLE()
15 r.fRight, r.fTop + rrect.radii(SkRRect::kUpperRight_Corner).fY, paint); in REG_FIDDLE()
18 canvas->drawLine(r.fLeft + rrect.radii(SkRRect::kUpperLeft_Corner).fX, r.fTop, in REG_FIDDLE()
20 canvas->drawLine(r.fRight - rrect.radii(SkRRect::kUpperRight_Corner).fX, r.fTop, in REG_FIDDLE()
H A DCanvas_getLocalClipBounds.cpp11 bounds.fLeft, bounds.fTop, bounds.fRight, bounds.fBottom); in REG_FIDDLE()
18 bounds.fLeft, bounds.fTop, bounds.fRight, bounds.fBottom); in REG_FIDDLE()
22 bounds.fLeft, bounds.fTop, bounds.fRight, bounds.fBottom); in REG_FIDDLE()
H A DBitmap_extractSubset.cpp9 SkDebugf("bounds: %d, %d, %d, %d\n", bounds.fLeft, bounds.fTop, bounds.fRight, bounds.fBottom); in REG_FIDDLE()
15 SkDebugf("subset: %4d, %4d, %4d, %4d ", b.fLeft, b.fTop, b.fRight, b.fBottom); in REG_FIDDLE()
19 SkDebugf(" subset: %d, %d, %d, %d", s.fLeft, s.fTop, s.fRight, s.fBottom); in REG_FIDDLE()
/third_party/skia/bench/
H A DRTreeBench.cpp86 query.fTop = rand.nextRangeF(0, GENERATE_EXTENTS);
88 query.fBottom = query.fTop + 1 + rand.nextRangeF(0, GENERATE_EXTENTS/2);
102 out.fTop = SkIntToScalar(index / GRID_WIDTH); in make_XYordered_rects()
104 out.fBottom = out.fTop + 1 + rand.nextRangeF(0, GENERATE_EXTENTS/3); in make_XYordered_rects()
110 out.fTop = SkIntToScalar(index % GRID_WIDTH); in make_YXordered_rects()
112 out.fBottom = out.fTop + 1 + rand.nextRangeF(0, GENERATE_EXTENTS/3); in make_YXordered_rects()
119 out.fTop = rand.nextRangeF(0, GENERATE_EXTENTS); in make_random_rects()
121 out.fBottom = out.fTop + 1 + rand.nextRangeF(0, GENERATE_EXTENTS/5); in make_random_rects()
/third_party/skia/tests/
H A DPathOpsAsWindingTest.cpp21 path.moveTo(rect.centerX(), rect.fTop); in build_squircle()
22 path.quadTo(rect.fRight, rect.fTop, rect.fRight, rect.centerY()); in build_squircle()
25 path.quadTo(rect.fLeft, rect.fTop, rect.centerX(), rect.fTop); in build_squircle()
34 SkScalar aY14 = rect.fTop + rect.height() * 1 / 4; in build_squircle()
35 SkScalar aY34 = rect.fTop + rect.height() * 3 / 4; in build_squircle()
36 path.moveTo(rect.centerX(), rect.fTop); in build_squircle()
37 path.cubicTo(aX34, rect.fTop, rect.fRight, aY14, rect.fRight, rect.centerY()); in build_squircle()
40 path.cubicTo(rect.fLeft, aY14, aX14, rect.fTop, rect.centerX(), rect.fTop); in build_squircle()
[all...]
H A DM44Test.cpp242 SkV2 tl = map2d(m, {src.fLeft, src.fTop}); in DEF_TEST()
243 SkV2 tr = map2d(m, {src.fRight, src.fTop}); in DEF_TEST()
249 assertEdges(tl.y, bl.y, dst.fTop, dst.fBottom); in DEF_TEST()
250 assertEdges(tr.y, br.y, dst.fTop, dst.fBottom); in DEF_TEST()
259 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(actual.fTop, expected.fTop, e.fTop), in DEF_TEST()
260 "Expected %g == %g", actual.fTop, expected.fTop); in DEF_TEST()
276 SkV4 corners[4] = {{src.fLeft, src.fTop, in DEF_TEST()
[all...]
/third_party/skia/src/gpu/tessellate/
H A DMiddleOutPolygonTriangulator.h93 fMiddleOut->fTop = fNewTopVertex; in ~PoppedTriangleStack()
108 Iter begin() const { return {fMiddleOut ? fMiddleOut->fTop : fEnd, fLastPoint}; } in begin()
132 fTop = fVertexStack;
147 StackVertex* endVertex = fTop; in pushVertex()
170 StackVertex* endVertex = std::min(fTop, fVertexStack + 1);
189 StackVertex* fTop; member in skgpu::MiddleOutPolygonTriangulator
/third_party/skia/experimental/sktext/tests/
H A DSelectableText.cpp167 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(firstPosition.fBoundaries.fTop, 0.0f)); in UNIX_ONLY_TEST()
179 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(lastPosition.fBoundaries.fTop, lastLine.bounds.fTop)); in UNIX_ONLY_TEST()
212 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(next.fBoundaries.fTop, line.fBounds.fTop)); in UNIX_ONLY_TEST()
218 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(position.fBoundaries.fTop, next.fBoundaries.fTop)); in UNIX_ONLY_TEST()
253 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(prev.fBoundaries.fTop, line.fBounds.fTop)); in UNIX_ONLY_TEST()
259 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(position.fBoundaries.fTop, pre in UNIX_ONLY_TEST()
[all...]

Completed in 28 milliseconds

12345678910>>...16