/third_party/skia/include/core/ |
D | SkRect.h | 30 int32_t fTop; //!< smaller y-axis bounds member 118 int32_t top() const { return fTop; } in top() 146 int32_t y() const { return fTop; } in y() 149 SkIPoint topLeft() const { return {fLeft, fTop}; } in topLeft() 163 int32_t height() const { return Sk32_can_overflow_sub(fBottom, fTop); } in height() 186 int64_t height64() const { return (int64_t)fBottom - (int64_t)fTop; } in height64() 194 bool isEmpty64() const { return fRight <= fLeft || fBottom <= fTop; } in isEmpty64() 251 fTop = top; in setLTRB() 266 fTop = y; in setXYWH() 273 fTop = 0; in setWH() [all …]
|
/third_party/flutter/skia/include/core/ |
D | SkRect.h | 29 int32_t fTop; //!< smaller y-axis bounds member 105 int32_t top() const { return fTop; } in top() 133 int32_t y() const { return fTop; } in y() 136 SkIPoint topLeft() const { return {fLeft, fTop}; } in topLeft() 150 int32_t height() const { return Sk32_can_overflow_sub(fBottom, fTop); } in height() 173 int64_t height64() const { return (int64_t)fBottom - (int64_t)fTop; } in height64() 181 bool isEmpty64() const { return fRight <= fLeft || fBottom <= fTop; } in isEmpty64() 238 fTop = top; in set() 266 fTop = y; in setXYWH() 284 Sk32_sat_add(fLeft, dx), Sk32_sat_add(fTop, dy), in makeOffset() [all …]
|
/third_party/skia/src/gpu/geometry/ |
D | GrRect.h | 17 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 && b.fRight > a.fLeft && b.fBottom > a.fTop; in GrRectsOverlap() 85 SkASSERT(!a.isFinite() || (a.fLeft <= a.fRight && a.fTop <= a.fBottom)); in GrRectsTouchOrOverlap() [all …]
|
D | GrTriangulator.cpp | 252 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->fAlpha + t * other.fBottom->fAlpha); in intersect() 294 TESS_LOG("removing edge %g -> %g\n", edge->fTop->fID, edge->fBottom->fID); in remove() 317 vertices.append(e->fTop); in emitMonotonePoly() 394 e->fTop->fID, e->fBottom->fID, fID, side == kLeft_Side ? "left" : "right"); in addEdge() [all …]
|
/third_party/flutter/skia/src/gpu/geometry/ |
D | GrRect.h | 17 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() 69 SkASSERT(!a.isFinite() || (a.fLeft <= a.fRight && a.fTop <= a.fBottom)); in GrRectsOverlap() 70 SkASSERT(!b.isFinite() || (b.fLeft <= b.fRight && b.fTop <= b.fBottom)); in GrRectsOverlap() 71 return a.fRight > b.fLeft && a.fBottom > b.fTop && b.fRight > a.fLeft && b.fBottom > a.fTop; in GrRectsOverlap() 78 SkASSERT(!a.isFinite() || (a.fLeft <= a.fRight && a.fTop <= a.fBottom)); in GrRectsTouchOrOverlap() 79 SkASSERT(!b.isFinite() || (b.fLeft <= b.fRight && b.fTop <= b.fBottom)); in GrRectsTouchOrOverlap() [all …]
|
/third_party/skia/src/core/ |
D | SkRect.cpp | 16 std::max(a.fTop, b.fTop), in intersect() 29 if (r.fLeft >= r.fRight || r.fTop >= r.fBottom) { in join() 34 if (fLeft >= fRight || fTop >= fBottom) { in join() 38 if (r.fTop < fTop) fTop = r.fTop; in join() 49 quad[0].set(fLeft, fTop); in toQuad() 50 quad[1].set(fRight, fTop); in toQuad() 112 CHECK_INTERSECT(r.fLeft, r.fTop, r.fRight, r.fBottom, fLeft, fTop, fRight, fBottom); in intersect() 118 CHECK_INTERSECT(a.fLeft, a.fTop, a.fRight, a.fBottom, b.fLeft, b.fTop, b.fRight, b.fBottom); in intersect() 132 fTop = std::min(fTop, r.fTop); in join() 156 line.appendf(" %s, /* %f */\n", set_scalar(&tmp, fTop, asType), fTop); in dump() [all …]
|
D | SkScan.h | 106 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()
|
D | SkEdgeClipper.cpp | 16 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() 288 chop_mono_cubic_at_y(pts, clip.fTop, tmp); in chop_cubic_in_Y() [all …]
|
D | SkLineClipper.cpp | 86 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), clip.fTop); in ClipLine()
|
/third_party/flutter/skia/src/pathops/ |
D | SkPathOpsRect.h | 15 double fLeft, fTop, fRight, fBottom; member 19 fTop = SkTMin(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() 73 return fLeft <= fRight && fTop <= fBottom; in valid()
|
D | SkPathOpsBounds.h | 18 && 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, pt.fY) in almostContains() 58 return fLeft <= pt.fX && fTop <= pt.fY && in contains()
|
/third_party/skia/src/pathops/ |
D | SkPathOpsRect.h | 15 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() 73 return fLeft <= fRight && fTop <= fBottom; in valid()
|
D | SkPathOpsBounds.h | 18 && 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, pt.fY) in almostContains() 58 return fLeft <= pt.fX && fTop <= pt.fY && in contains()
|
/third_party/flutter/skia/src/core/ |
D | SkRect.cpp | 19 if (fLeft >= fRight || fTop >= fBottom) { in join() 23 if (top < fTop) fTop = top; in join() 34 quad[0].set(fLeft, fTop); in toQuad() 35 quad[1].set(fRight, fTop); in toQuad() 97 CHECK_INTERSECT(left, top, right, bottom, fLeft, fTop, fRight, fBottom); in intersect() 103 return this->intersect(r.fLeft, r.fTop, r.fRight, r.fBottom); in intersect() 107 CHECK_INTERSECT(a.fLeft, a.fTop, a.fRight, a.fBottom, b.fLeft, b.fTop, b.fRight, b.fBottom); in intersect() 119 if (fLeft >= fRight || fTop >= fBottom) { in join() 123 fTop = SkMinScalar(fTop, top); in join() 147 line.appendf(" %s, /* %f */\n", set_scalar(&tmp, fTop, asType), fTop); in dump() [all …]
|
D | SkRasterClipStack.h | 18 SkTStack(void* storage, size_t size) : fDeque(sizeof(T), storage, size), fTop(nullptr) {} in SkTStack() 31 SkASSERT(fTop); in top() 32 return *fTop; in top() 36 SkASSERT(fTop); in top() 37 return *fTop; in top() 42 fTop = this->push_raw(); in push() 43 new (fTop) T(); in push() 44 return *fTop; in push() 47 fTop = this->push_raw(); in push() 48 new (fTop) T(src); in push() [all …]
|
D | SkEdgeClipper.cpp | 16 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() 284 if (pts[0].fY < clip.fTop) { in chop_cubic_in_Y() 286 chop_mono_cubic_at_y(pts, clip.fTop, tmp); in chop_cubic_in_Y() [all …]
|
D | SkScan.h | 101 xr->fTop = SkIntToFixed(src.fTop); in XRect_set() 112 xr->fTop = SkScalarToFixed(src.fTop); in XRect_set() 121 dst->fTop = SkFixedRoundToInt(xr.fTop); in XRect_round() 131 dst->fTop = SkFixedFloorToInt(xr.fTop); in XRect_roundOut()
|
D | SkLineClipper.cpp | 86 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), clip.fTop); in ClipLine()
|
/third_party/skia/docs/examples/ |
D | Canvas_drawRRect.cpp | 12 rRect.setNinePatch(outer, radii.fLeft, radii.fTop, radii.fRight, radii.fBottom); in draw() 15 canvas->drawLine(outer.fLeft + radii.fLeft, outer.fTop, in draw() 17 canvas->drawLine(outer.fRight - radii.fRight, outer.fTop, in draw() 19 canvas->drawLine(outer.fLeft, outer.fTop + radii.fTop, in draw() 20 outer.fRight, outer.fTop + radii.fTop, paint); in draw()
|
/third_party/flutter/skia/docs/examples/ |
D | Canvas_drawRRect.cpp | 12 rRect.setNinePatch(outer, radii.fLeft, radii.fTop, radii.fRight, radii.fBottom); in draw() 15 canvas->drawLine(outer.fLeft + radii.fLeft, outer.fTop, in draw() 17 canvas->drawLine(outer.fRight - radii.fRight, outer.fTop, in draw() 19 canvas->drawLine(outer.fLeft, outer.fTop + radii.fTop, in draw() 20 outer.fRight, outer.fTop + radii.fTop, paint); in draw()
|
/third_party/flutter/skia/src/gpu/ |
D | GrClip.h | 76 innerClipBounds.fBottom > innerClipBounds.fTop + kBoundsTolerance && in IsInsideClip() 78 innerClipBounds.fTop < queryBounds.fTop + kBoundsTolerance && in IsInsideClip() 94 outerClipBounds.fBottom - outerClipBounds.fTop <= kBoundsTolerance || in IsOutsideClip() 98 outerClipBounds.fTop >= queryBounds.fBottom - kBoundsTolerance || in IsOutsideClip() 100 outerClipBounds.fBottom <= queryBounds.fTop + kBoundsTolerance; in IsOutsideClip() 108 SkScalarFloorToInt(bounds.fTop + kBoundsTolerance), in GetPixelIBounds() 118 SkScalarFloorToScalar(bounds.fTop + kBoundsTolerance), in GetPixelBounds() 128 SkScalarAbs(SkScalarRoundToScalar(rect.fTop) - rect.fTop) <= kBoundsTolerance && in IsPixelAligned()
|
D | GrTessellator.cpp | 345 , fTop(top) in Edge() 365 Vertex* fTop; // The top vertex in vertex-sort-order (sweep_lt). member 393 fLine = Line(fTop, fBottom); in recompute() 397 fTop->fID, fBottom->fID, in intersect() 398 other.fTop->fID, other.fBottom->fID); in intersect() 399 if (fTop == other.fTop || fBottom == other.fBottom) { in intersect() 406 double dx = static_cast<double>(other.fTop->fPoint.fX) - fTop->fPoint.fX; in intersect() 407 double dy = static_cast<double>(other.fTop->fPoint.fY) - fTop->fPoint.fY; in intersect() 418 p->fX = SkDoubleToScalar(fTop->fPoint.fX - s * fLine.fB); in intersect() 419 p->fY = SkDoubleToScalar(fTop->fPoint.fY + s * fLine.fA); in intersect() [all …]
|
/third_party/flutter/skia/bench/ |
D | RTreeBench.cpp | 85 query.fTop = rand.nextRangeF(0, GENERATE_EXTENTS); in onDraw() 87 query.fBottom = query.fTop + 1 + rand.nextRangeF(0, GENERATE_EXTENTS/2); in onDraw() 101 out.fTop = SkIntToScalar(index / GRID_WIDTH); in make_XYordered_rects() 103 out.fBottom = out.fTop + 1 + rand.nextRangeF(0, GENERATE_EXTENTS/3); in make_XYordered_rects() 109 out.fTop = SkIntToScalar(index % GRID_WIDTH); in make_YXordered_rects() 111 out.fBottom = out.fTop + 1 + rand.nextRangeF(0, GENERATE_EXTENTS/3); in make_YXordered_rects() 118 out.fTop = rand.nextRangeF(0, GENERATE_EXTENTS); in make_random_rects() 120 out.fBottom = out.fTop + 1 + rand.nextRangeF(0, GENERATE_EXTENTS/5); in make_random_rects()
|
/third_party/skia/bench/ |
D | RTreeBench.cpp | 86 query.fTop = rand.nextRangeF(0, GENERATE_EXTENTS); in onDraw() 88 query.fBottom = query.fTop + 1 + rand.nextRangeF(0, GENERATE_EXTENTS/2); in onDraw() 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/flutter/skia/tests/ |
D | PathOpsAsWindingTest.cpp | 21 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() 175 for (SkScalar y = rectA.fTop - 1; y <= rectA.fBottom + 1; ++y) { in DEF_TEST()
|