/third_party/skia/include/core/ |
H A D | SkRect.h | 31 int32_t fRight; //!< larger x-axis bounds member 85 result in fLeft greater than fRight, or fTop greater than fBottom. 89 @param r integer stored in fRight 103 @param w added to x and stored in fRight 113 Call sort() to reverse fLeft and fRight if needed. 127 Call sort() to reverse fLeft and fRight if needed. 129 @return fRight 131 int32_t right() const { return fRight; } in right() 141 and sort() to reverse fLeft and fRight if needed. 160 @return fRight minu [all...] |
/third_party/skia/src/core/ |
H A D | SkRect.cpp | 18 desc += split + "\t fRight:" + std::to_string(fRight) + "\n"; in dump() 27 std::min(a.fRight, b.fRight), in intersect() 39 if (r.fLeft >= r.fRight || r.fTop >= r.fBottom) { in join() 44 if (fLeft >= fRight || fTop >= fBottom) { in join() 49 if (r.fRight > fRight) fRight = r.fRight; in join() [all...] |
H A 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) { // wholl in ClipLine() [all...] |
H A 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()
|
H A 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 pts[1].fX = std::min(pts[1].fX, clip.fRight); in clipMonoQuad() 213 pts[2].fX = std::min(pts[2].fX, clip.fRight); in clipMonoQuad() 362 if (pts[0].fX >= clip.fRight) { // wholl in clipMonoCubic() [all...] |
H A 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()
|
H A 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()
|
H A D | SkLatticeIter.cpp | 42 return valid_divs(lattice.fXDivs, lattice.fXCount, latticeBounds.fLeft, latticeBounds.fRight) in Valid() 149 int xCountScalable = count_scalable_pixels(xDivs, xCount, xIsScalable, src.fLeft, src.fRight); in SkLatticeIter() 157 src.fLeft, src.fRight, dst.fLeft, dst.fRight, xIsScalable); in SkLatticeIter() 223 fSrcX[2] = SkIntToScalar(c.fRight); in SkLatticeIter() 233 fDstX[2] = dst.fRight - SkIntToScalar(w - c.fRight); in SkLatticeIter() 234 fDstX[3] = dst.fRight; in SkLatticeIter()
|
H A D | SkRegion.cpp | 243 "(%d,%d,%d,%d)", r.fLeft, r.fTop, r.fRight, r.fBottom); in toString() 351 runs[4] = bounds.fRight; in BuildRectRuns() 427 if (!scanline_contains(scanline, r.fLeft, r.fRight)) { in contains() 512 if (scanline_intersects(scanline, sect.fLeft, sect.fRight)) { in intersects() 599 dx = pin_offset_s32(fBounds.fLeft, fBounds.fRight, dx); in translate() 1246 rect.fRight = *runs++; in validate_run() 1248 rect.fRight == SkRegion_kRunTypeSentinel || in validate_run() 1249 rect.fLeft >= rect.fRight || // check non-empty rect in validate_run() 1253 lastRight = rect.fRight; in validate_run() 1339 desc += split + "\t fBounds.fRight in dump() [all...] |
H A D | SkPathMakers.h | 45 fPts[1] = SkPoint::Make(rect.fRight, rect.fTop); in SkPath_RectPointIterator() 46 fPts[2] = SkPoint::Make(rect.fRight, rect.fBottom); in SkPath_RectPointIterator() 60 fPts[1] = SkPoint::Make(oval.fRight, cy); in SkPath_OvalPointIterator() 74 const SkScalar R = bounds.fRight; in SkPath_RRectPointIterator()
|
/third_party/skia/src/gpu/geometry/ |
H A 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 > in GrRectsOverlap() [all...] |
/third_party/skia/src/pathops/ |
H A 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 in width() [all...] |
H A 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() [all...] |
/third_party/skia/docs/examples/ |
H A D | Canvas_drawRRect.cpp | 12 rRect.setNinePatch(outer, radii.fLeft, radii.fTop, radii.fRight, radii.fBottom); in REG_FIDDLE() 17 canvas->drawLine(outer.fRight - radii.fRight, outer.fTop, in REG_FIDDLE() 18 outer.fRight - radii.fRight, outer.fBottom, paint); in REG_FIDDLE() 20 outer.fRight, outer.fTop + radii.fTop, paint); in REG_FIDDLE() 22 outer.fRight, outer.fBottom - radii.fBottom, paint); in REG_FIDDLE()
|
H A D | Rect_equal_operator.cpp | 10 test.fLeft, test.fTop, test.fRight, test.fBottom, in REG_FIDDLE() 12 negZero.fLeft, negZero.fTop, negZero.fRight, negZero.fBottom, in REG_FIDDLE() 14 test.fRight == negZero.fRight && test.fBottom == negZero.fBottom) ? in REG_FIDDLE()
|
H A D | RRect_Corner.cpp | 16 r.fRight, r.fTop + rrect.radii(SkRRect::kUpperRight_Corner).fY, paint); in REG_FIDDLE() 18 r.fRight, r.fBottom - rrect.radii(SkRRect::kLowerRight_Corner).fY, paint); in REG_FIDDLE() 21 canvas->drawLine(r.fRight - rrect.radii(SkRRect::kUpperRight_Corner).fX, r.fTop, in REG_FIDDLE() 22 r.fRight - rrect.radii(SkRRect::kLowerRight_Corner).fX, r.fBottom, paint); in REG_FIDDLE()
|
H A D | RRect_setNinePatch.cpp | 15 r.fRight, r.fTop + rrect.radii(SkRRect::kUpperRight_Corner).fY, paint); in REG_FIDDLE() 17 r.fRight, r.fBottom - rrect.radii(SkRRect::kLowerRight_Corner).fY, paint); in REG_FIDDLE() 20 canvas->drawLine(r.fRight - rrect.radii(SkRRect::kUpperRight_Corner).fX, r.fTop, in REG_FIDDLE() 21 r.fRight - rrect.radii(SkRRect::kLowerRight_Corner).fX, r.fBottom, paint); in REG_FIDDLE()
|
H A D | Canvas_getLocalClipBounds.cpp | 11 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 D | Bitmap_extractSubset.cpp | 9 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()
|
H A D | Canvas_getDeviceClipBounds.cpp | 11 bounds.fLeft, bounds.fTop, bounds.fRight, bounds.fBottom); in REG_FIDDLE() 19 bounds.fLeft, bounds.fTop, bounds.fRight, bounds.fBottom); in REG_FIDDLE() 25 bounds.fLeft, bounds.fTop, bounds.fRight, bounds.fBottom); in REG_FIDDLE()
|
/third_party/skia/tests/ |
H A 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, sr in DEF_TEST() [all...] |
H A D | BlitMaskClip.cpp | 25 REPORTER_ASSERT(fReporter, x >= fBounds.fLeft && x < fBounds.fRight); 28 REPORTER_ASSERT(fReporter, right > fBounds.fLeft && right <= fBounds.fRight); 63 for (int left = b.fLeft; left < b.fRight; left++) { in DEF_TEST() 64 for (int right = left + 1; right <= b.fRight; right++) { in DEF_TEST()
|
H A D | PathOpsAsWindingTest.cpp | 22 path.quadTo(rect.fRight, rect.fTop, rect.fRight, rect.centerY()); in build_squircle() 23 path.quadTo(rect.fRight, rect.fBottom, rect.centerX(), rect.fBottom); in build_squircle() 37 path.cubicTo(aX34, rect.fTop, rect.fRight, aY14, rect.fRight, rect.centerY()); in build_squircle() 38 path.cubicTo(rect.fRight, aY34, aX34, rect.fBottom, rect.centerX(), rect.fBottom); in build_squircle() 174 for (SkScalar x = rectA.fLeft - 1; x <= rectA.fRight + 1; ++x) { in DEF_TEST()
|
/third_party/skia/gm/ |
H A D | constcolorprocessor.cpp | 167 canvas->drawString(inputLabel, renderRect.fRight + kPad, -inputLabelBounds.fTop, 170 inputLabelBounds.offset(renderRect.fRight + kPad, -inputLabelBounds.fTop); 175 canvas->drawString(procLabel, renderRect.fRight + kPad, 178 procLabelBounds.offset(renderRect.fRight + kPad, 189 SkScalar width = std::max(inputLabelBounds.fRight, procLabelBounds.fRight);
|
/third_party/skia/src/sksl/ir/ |
H A D | SkSLBinaryExpression.h | 35 , fRight(std::move(right)) { in BinaryExpression() 71 return fRight; in right() 75 return fRight; in right() 102 std::unique_ptr<Expression> fRight; member in SkSL::final
|