/third_party/skia/include/core/ |
D | SkRect.h | 31 int32_t fRight; //!< larger x-axis bounds member 125 int32_t right() const { return fRight; } in right() 156 int32_t width() const { return Sk32_can_overflow_sub(fRight, fLeft); } in width() 178 int64_t width64() const { return (int64_t)fRight - (int64_t)fLeft; } in width64() 194 bool isEmpty64() const { return fRight <= fLeft || fBottom <= fTop; } in isEmpty64() 252 fRight = right; in setLTRB() 267 fRight = Sk32_sat_add(x, width); in setXYWH() 274 fRight = width; in setWH() 281 fRight = size.width(); in setSize() 299 Sk32_sat_add(fRight, dx), Sk32_sat_add(fBottom, dy), in makeOffset() [all …]
|
/third_party/flutter/skia/include/core/ |
D | SkRect.h | 30 int32_t fRight; //!< larger x-axis bounds member 112 int32_t right() const { return fRight; } in right() 143 int32_t width() const { return Sk32_can_overflow_sub(fRight, fLeft); } in width() 165 int64_t width64() const { return (int64_t)fRight - (int64_t)fLeft; } in width64() 181 bool isEmpty64() const { return fRight <= fLeft || fBottom <= fTop; } in isEmpty64() 239 fRight = right; in set() 267 fRight = Sk32_sat_add(x, width); in setXYWH() 285 Sk32_sat_add(fRight, dx), Sk32_sat_add(fBottom, dy), in makeOffset() 303 Sk32_sat_sub(fRight, dx), Sk32_sat_sub(fBottom, dy), in makeInset() 321 Sk32_sat_add(fRight, dx), Sk32_sat_add(fBottom, dy), in makeOutset() [all …]
|
/third_party/skia/src/core/ |
D | SkRect.cpp | 17 std::min(a.fRight, b.fRight), in intersect() 29 if (r.fLeft >= r.fRight || r.fTop >= r.fBottom) { in join() 34 if (fLeft >= fRight || fTop >= fBottom) { in join() 39 if (r.fRight > fRight) fRight = r.fRight; in join() 50 quad[1].set(fRight, fTop); in toQuad() 51 quad[2].set(fRight, fBottom); 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() 133 fRight = std::max(fRight, r.fRight); in join() 157 line.appendf(" %s, /* %f */\n", set_scalar(&tmp, fRight, asType), fRight); in dump() [all …]
|
D | SkLineClipper.cpp | 87 outer.fRight >= inner.fRight && outer.fBottom >= inner.fBottom; in containsNoEmptyCheck() 103 if (nestedLT(bounds.fRight, clip.fLeft, bounds.width()) || in IntersectLine() 104 nestedLT(clip.fRight, bounds.fLeft, bounds.width()) || in IntersectLine() 140 if ((tmp[index1].fX <= clip.fLeft || tmp[index0].fX >= clip.fRight)) { in IntersectLine() 143 if (tmp[0].fX != tmp[1].fX || tmp[0].fX < clip.fLeft || tmp[0].fX > clip.fRight) { in IntersectLine() 151 if (tmp[index1].fX > clip.fRight) { in IntersectLine() 152 tmp[index1].set(clip.fRight, sect_with_vertical(src, clip.fRight)); in IntersectLine() 233 } else if (tmp[index0].fX >= clip.fRight) { // wholly to the right in ClipLine() 237 tmp[0].fX = tmp[1].fX = clip.fRight; in ClipLine() 254 if (tmp[index1].fX > clip.fRight) { in ClipLine() [all …]
|
D | SkScan.h | 107 xr->fRight = SkIntToFixed(src.fRight); in XRect_set() 118 xr->fRight = SkScalarToFixed(src.fRight); in XRect_set() 127 dst->fRight = SkFixedRoundToInt(xr.fRight); in XRect_round() 137 dst->fRight = SkFixedCeilToInt(xr.fRight); in XRect_roundOut()
|
D | SkRectPriv.h | 45 r->fRight = std::max(pt.fX, r->fRight); in GrowToInclude() 54 SkFitsInFixed(r.fRight) && SkFitsInFixed(r.fBottom); in FitsInFixed() 59 SkTFitsIn<int16_t>(r.fRight) && SkTFitsIn<int16_t>(r.fBottom); in Is16Bit() 64 return SkScalarHalf(r.fRight) - SkScalarHalf(r.fLeft); in HalfWidth()
|
D | SkBlitBWMaskTemplate.h | 27 SkASSERT(clip.fRight <= srcMask.fBounds.fRight); in SK_BLITBWMASK_NAME() 43 if (cx == maskLeft && clip.fRight == srcMask.fBounds.fRight) in SK_BLITBWMASK_NAME() 60 int rite_edge = clip.fRight - maskLeft; in SK_BLITBWMASK_NAME()
|
/third_party/skia/src/gpu/geometry/ |
D | GrRect.h | 17 int16_t fLeft, fTop, fRight, fBottom; member 43 int width() const { return fRight - fLeft; } in width() 46 bool isEmpty() const { return fLeft >= fRight || fTop >= fBottom; } in isEmpty() 53 fRight = right; in set() 60 fRight = SkToS16(r.fRight); in set() 67 fRight += dx; 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 …]
|
/third_party/flutter/skia/src/gpu/geometry/ |
D | GrRect.h | 17 int16_t fLeft, fTop, fRight, fBottom; member 43 int width() const { return fRight - fLeft; } in width() 46 bool isEmpty() const { return fLeft >= fRight || fTop >= fBottom; } in isEmpty() 53 fRight = right; in set() 60 fRight = SkToS16(r.fRight); 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/flutter/skia/src/pathops/ |
D | SkPathOpsRect.h | 15 double fLeft, fTop, fRight, fBottom; member 20 fRight = SkTMax(fRight, pt.fX); in add() 25 return approximately_between(fLeft, pt.fX, fRight) in contains() 32 SkASSERT(fLeft <= fRight); in intersects() 34 SkASSERT(r.fLeft <= r.fRight); in intersects() 36 return r.fLeft <= fRight && fLeft <= r.fRight && r.fTop <= fBottom && fTop <= r.fBottom; in intersects() 40 fLeft = fRight = pt.fX; in set() 45 return fRight - fLeft; in width() 73 return fLeft <= fRight && fTop <= fBottom; in valid()
|
D | SkPathOpsBounds.h | 16 return AlmostLessOrEqualUlps(a.fLeft, b.fRight) in Intersects() 17 && AlmostLessOrEqualUlps(b.fLeft, a.fRight) in Intersects() 28 if (right > fRight) fRight = right; in add() 33 add(toAdd.fLeft, toAdd.fTop, toAdd.fRight, toAdd.fBottom); in add() 39 if (pt.fX > fRight) fRight = pt.fX; in add() 46 if (pt.fX > fRight) fRight = SkDoubleToScalar(pt.fX); in add() 52 && AlmostLessOrEqualUlps(pt.fX, fRight) in almostContains() 59 fRight >= pt.fX && fBottom >= pt.fY; in contains()
|
/third_party/skia/src/pathops/ |
D | SkPathOpsRect.h | 15 double fLeft, fTop, fRight, fBottom; member 20 fRight = std::max(fRight, pt.fX); in add() 25 return approximately_between(fLeft, pt.fX, fRight) in contains() 32 SkASSERT(fLeft <= fRight); in intersects() 34 SkASSERT(r.fLeft <= r.fRight); in intersects() 36 return r.fLeft <= fRight && fLeft <= r.fRight && r.fTop <= fBottom && fTop <= r.fBottom; in intersects() 40 fLeft = fRight = pt.fX; in set() 45 return fRight - fLeft; in width() 73 return fLeft <= fRight && fTop <= fBottom; in valid()
|
D | SkPathOpsBounds.h | 16 return AlmostLessOrEqualUlps(a.fLeft, b.fRight) in Intersects() 17 && AlmostLessOrEqualUlps(b.fLeft, a.fRight) in Intersects() 28 if (right > fRight) fRight = right; in add() 33 add(toAdd.fLeft, toAdd.fTop, toAdd.fRight, toAdd.fBottom); in add() 39 if (pt.fX > fRight) fRight = pt.fX; in add() 46 if (pt.fX > fRight) fRight = SkDoubleToScalar(pt.fX); in add() 52 && AlmostLessOrEqualUlps(pt.fX, fRight) in almostContains() 59 fRight >= pt.fX && fBottom >= pt.fY; in contains()
|
/third_party/flutter/skia/src/core/ |
D | SkRect.cpp | 19 if (fLeft >= fRight || fTop >= fBottom) { in join() 24 if (right > fRight) fRight = right; in join() 35 quad[1].set(fRight, fTop); in toQuad() 36 quad[2].set(fRight, fBottom); 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() 124 fRight = SkMaxScalar(fRight, right); in join() 148 line.appendf(" %s, /* %f */\n", set_scalar(&tmp, fRight, asType), fRight); in dump() [all …]
|
D | SkLineClipper.cpp | 87 outer.fRight >= inner.fRight && outer.fBottom >= inner.fBottom; in containsNoEmptyCheck() 103 if (nestedLT(bounds.fRight, clip.fLeft, bounds.width()) || in IntersectLine() 104 nestedLT(clip.fRight, bounds.fLeft, bounds.width()) || in IntersectLine() 140 if ((tmp[index1].fX <= clip.fLeft || tmp[index0].fX >= clip.fRight)) { in IntersectLine() 143 if (tmp[0].fX != tmp[1].fX || tmp[0].fX < clip.fLeft || tmp[0].fX > clip.fRight) { in IntersectLine() 151 if (tmp[index1].fX > clip.fRight) { in IntersectLine() 152 tmp[index1].set(clip.fRight, sect_with_vertical(src, clip.fRight)); in IntersectLine() 233 } else if (tmp[index0].fX >= clip.fRight) { // wholly to the right in ClipLine() 237 tmp[0].fX = tmp[1].fX = clip.fRight; in ClipLine() 254 if (tmp[index1].fX > clip.fRight) { in ClipLine() [all …]
|
D | SkScan.h | 102 xr->fRight = SkIntToFixed(src.fRight); in XRect_set() 113 xr->fRight = SkScalarToFixed(src.fRight); in XRect_set() 122 dst->fRight = SkFixedRoundToInt(xr.fRight); in XRect_round() 132 dst->fRight = SkFixedCeilToInt(xr.fRight); in XRect_roundOut()
|
D | SkEdgeClipper.cpp | 170 if (pts[0].fX >= clip.fRight) { // wholly to the right in clipMonoQuad() 172 this->appendVLine(clip.fRight, pts[0].fY, pts[2].fY, reverse); in clipMonoQuad() 200 if (pts[2].fX > clip.fRight) { in clipMonoQuad() 201 if (chopMonoQuadAtX(pts, clip.fRight, &t)) { in clipMonoQuad() 204 clamp_le(tmp[1].fX, clip.fRight); in clipMonoQuad() 205 tmp[2].fX = clip.fRight; in clipMonoQuad() 208 this->appendVLine(clip.fRight, tmp[2].fY, tmp[4].fY, reverse); in clipMonoQuad() 212 this->appendVLine(clip.fRight, pts[0].fY, pts[2].fY, reverse); in clipMonoQuad() 360 if (pts[0].fX >= clip.fRight) { // wholly to the right in clipMonoCubic() 362 this->appendVLine(clip.fRight, pts[0].fY, pts[3].fY, reverse); in clipMonoCubic() [all …]
|
D | SkBlitBWMaskTemplate.h | 27 SkASSERT(clip.fRight <= srcMask.fBounds.fRight); in SK_BLITBWMASK_NAME() 43 if (cx == maskLeft && clip.fRight == srcMask.fBounds.fRight) in SK_BLITBWMASK_NAME() 60 int rite_edge = clip.fRight - maskLeft; in SK_BLITBWMASK_NAME()
|
/third_party/skia/docs/examples/ |
D | Canvas_drawRRect.cpp | 12 rRect.setNinePatch(outer, radii.fLeft, radii.fTop, radii.fRight, radii.fBottom); in draw() 17 canvas->drawLine(outer.fRight - radii.fRight, outer.fTop, in draw() 18 outer.fRight - radii.fRight, outer.fBottom, paint); in draw() 20 outer.fRight, outer.fTop + radii.fTop, paint); in draw() 22 outer.fRight, outer.fBottom - radii.fBottom, paint); in draw()
|
D | Rect_equal_operator.cpp | 10 test.fLeft, test.fTop, test.fRight, test.fBottom, in draw() 12 negZero.fLeft, negZero.fTop, negZero.fRight, negZero.fBottom, in draw() 14 test.fRight == negZero.fRight && test.fBottom == negZero.fBottom) ? 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() 17 canvas->drawLine(outer.fRight - radii.fRight, outer.fTop, in draw() 18 outer.fRight - radii.fRight, outer.fBottom, paint); in draw() 20 outer.fRight, outer.fTop + radii.fTop, paint); in draw() 22 outer.fRight, outer.fBottom - radii.fBottom, paint); in draw()
|
D | Rect_equal_operator.cpp | 10 test.fLeft, test.fTop, test.fRight, test.fBottom, in draw() 11 negZero.fLeft, negZero.fTop, negZero.fRight, negZero.fBottom, in draw() 14 test.fRight == negZero.fRight && test.fBottom == negZero.fBottom ? in draw()
|
/third_party/flutter/skia/src/gpu/ |
D | GrClip.h | 75 return innerClipBounds.fRight > innerClipBounds.fLeft + kBoundsTolerance && in IsInsideClip() 79 innerClipBounds.fRight > queryBounds.fRight - kBoundsTolerance && in IsInsideClip() 93 outerClipBounds.fRight - outerClipBounds.fLeft <= kBoundsTolerance || in IsOutsideClip() 97 outerClipBounds.fLeft >= queryBounds.fRight - kBoundsTolerance || in IsOutsideClip() 99 outerClipBounds.fRight <= queryBounds.fLeft + kBoundsTolerance || in IsOutsideClip() 109 SkScalarCeilToInt(bounds.fRight - kBoundsTolerance), in GetPixelIBounds() 119 SkScalarCeilToScalar(bounds.fRight - kBoundsTolerance), in GetPixelBounds() 129 SkScalarAbs(SkScalarRoundToScalar(rect.fRight) - rect.fRight) <= kBoundsTolerance && in IsPixelAligned()
|
/third_party/flutter/skia/src/sksl/ir/ |
D | SkSLBinaryExpression.h | 28 , fRight(std::move(right)) {} in BinaryExpression() 34 *fRight); in constantPropagate() 39 fRight->hasSideEffects(); in hasSideEffects() 44 fRight->clone(), fType)); in clone() 49 fRight->description() + ")"; in description() 54 std::unique_ptr<Expression> fRight; member
|
/third_party/skia/tests/ |
D | M44Test.cpp | 243 SkV2 tr = map2d(m, {src.fRight, src.fTop}); in DEF_TEST() 244 SkV2 br = map2d(m, {src.fRight, src.fBottom}); in DEF_TEST() 247 assertEdges(tl.x, tr.x, dst.fLeft, dst.fRight); in DEF_TEST() 248 assertEdges(bl.x, br.x, dst.fLeft, dst.fRight); in DEF_TEST() 261 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(actual.fRight, expected.fRight, e.fRight), in DEF_TEST() 262 "Expected %g == %g", actual.fRight, expected.fRight); in DEF_TEST() 277 {src.fRight, src.fTop, 0.f, 1.f}, in DEF_TEST() 278 {src.fRight, src.fBottom, 0.f, 1.f}, in DEF_TEST() 293 REPORTER_ASSERT(reporter, actual.fLeft <= x && x <= actual.fRight, in DEF_TEST() 295 x, actual.fLeft, actual.fRight); in DEF_TEST() [all …]
|