/third_party/skia/include/core/ |
D | SkRect.h | 29 int32_t fLeft; //!< smaller x-axis bounds member 117 int32_t left() const { return fLeft; } in left() 145 int32_t x() const { return fLeft; } in x() 155 SkIPoint topLeft() const { return {fLeft, fTop}; } in topLeft() 162 int32_t width() const { return Sk32_can_overflow_sub(fRight, fLeft); } in width() 184 int64_t width64() const { return (int64_t)fRight - (int64_t)fLeft; } in width64() 200 bool isEmpty64() const { return fRight <= fLeft || fBottom <= fTop; } in isEmpty64() 256 fLeft = left; in setLTRB() 271 fLeft = x; in setXYWH() 278 fLeft = 0; in setWH() [all …]
|
/third_party/flutter/skia/include/core/ |
D | SkRect.h | 28 int32_t fLeft; //!< smaller x-axis bounds member 36 desc += split + "\t fLeft:" + std::to_string(fLeft) + "\n"; in dump() 107 int32_t left() const { return fLeft; } in left() 135 int32_t x() const { return fLeft; } in x() 145 SkIPoint topLeft() const { return {fLeft, fTop}; } in topLeft() 152 int32_t width() const { return Sk32_can_overflow_sub(fRight, fLeft); } in width() 174 int64_t width64() const { return (int64_t)fRight - (int64_t)fLeft; } in width64() 190 bool isEmpty64() const { return fRight <= fLeft || fBottom <= fTop; } in isEmpty64() 246 fLeft = left; in set() 274 fLeft = x; in setXYWH() [all …]
|
/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() 51 fLeft = left; in set() 58 fLeft = SkToS16(r.fLeft); in set() 65 fLeft += 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/skia/src/core/ |
D | SkRect.cpp | 16 desc += split + "\t fLeft:" + std::to_string(fLeft) + "\n"; in dump() 25 std::max(a.fLeft, b.fLeft), in intersect() 39 if (r.fLeft >= r.fRight || r.fTop >= r.fBottom) { in join() 44 if (fLeft >= fRight || fTop >= fBottom) { in join() 47 if (r.fLeft < fLeft) fLeft = r.fLeft; in join() 59 quad[0].set(fLeft, fTop); in toQuad() 62 quad[3].set(fLeft, fBottom); in toQuad() 122 CHECK_INTERSECT(r.fLeft, r.fTop, r.fRight, r.fBottom, fLeft, fTop, fRight, fBottom); in intersect() 128 CHECK_INTERSECT(a.fLeft, a.fTop, a.fRight, a.fBottom, b.fLeft, b.fTop, b.fRight, b.fBottom); in intersect() 141 fLeft = std::min(fLeft, r.fLeft); in join() [all …]
|
D | SkLineClipper.cpp | 86 return outer.fLeft <= inner.fLeft && outer.fTop <= inner.fTop && 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() 148 if (tmp[index0].fX < clip.fLeft) { in IntersectLine() 149 tmp[index0].set(clip.fLeft, sect_with_vertical(src, clip.fLeft)); in IntersectLine() 229 if (tmp[index1].fX <= clip.fLeft) { // wholly to the left in ClipLine() 230 tmp[0].fX = tmp[1].fX = clip.fLeft; in ClipLine() 244 if (tmp[index0].fX < clip.fLeft) { in ClipLine() [all …]
|
D | SkBlitter.cpp | 84 SkScalar partialL = bounds.fLeft + 1 - rect.fLeft; 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() 107 this->blitAntiH(bounds.fLeft, bounds.fBottom - 1, alphas, runs); in blitFatAntiRect() 201 int cx = clip.fLeft; in blitMask() 203 int maskLeft = mask.fBounds.fLeft; in blitMask() 259 const uint8_t* aa = mask.getAddr8(clip.fLeft, clip.fTop); in blitMask() 267 this->blitAntiH(clip.fLeft, y, aa, runs); in blitMask() 295 this->blitRect(cr.fLeft, cr.fTop, cr.width(), cr.height()); in blitRectRegion() 348 return (unsigned)(x - rect.fLeft) < (unsigned)rect.width(); in x_in_rect() [all …]
|
D | SkScan.h | 105 xr->fLeft = SkIntToFixed(src.fLeft); in XRect_set() 116 xr->fLeft = SkScalarToFixed(src.fLeft); in XRect_set() 125 dst->fLeft = SkFixedRoundToInt(xr.fLeft); in XRect_round() 135 dst->fLeft = SkFixedFloorToInt(xr.fLeft); in XRect_roundOut()
|
D | SkLatticeIter.cpp | 35 latticeBounds.fLeft == lattice.fXDivs[0]); in Valid() 42 return valid_divs(lattice.fXDivs, lattice.fXCount, latticeBounds.fLeft, latticeBounds.fRight) in Valid() 133 bool xIsScalable = (xCount > 0 && src.fLeft == xDivs[0]); in SkLatticeIter() 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() 222 fSrcX[1] = SkIntToScalar(c.fLeft); in SkLatticeIter() 231 fDstX[0] = dst.fLeft; in SkLatticeIter() 232 fDstX[1] = dst.fLeft + SkIntToScalar(c.fLeft); in SkLatticeIter() 242 fDstX[1] = fDstX[0] + (fDstX[3] - fDstX[0]) * c.fLeft / (w - c.width()); in SkLatticeIter()
|
/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() 51 fLeft = left; in set() 58 fLeft = SkToS16(r.fLeft); 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/gpu/gl/ |
D | GrGLIRect.h | 21 GrGLint fLeft; member 30 return &fLeft; in asInts() 32 GR_STATIC_ASSERT(0 == offsetof(GrGLIRect, fLeft)); in asInts() 38 int* asInts() { return &fLeft; } in asInts() 41 GR_GL_CALL(gl, Viewport(fLeft, fBottom, fWidth, fHeight)); in pushToGLViewport() 45 GR_GL_CALL(gl, Scissor(fLeft, fBottom, fWidth, fHeight)); in pushToGLScissor() 70 fLeft = leftOffset; in setRelativeTo() 84 return fLeft <= 0 && in contains() 86 fLeft + fWidth >= width && in contains() 90 void invalidate() {fLeft = fWidth = fBottom = fHeight = -1;} in invalidate() [all …]
|
/third_party/flutter/skia/src/pathops/ |
D | SkPathOpsRect.h | 15 double fLeft, fTop, fRight, fBottom; member 18 fLeft = SkTMin(fLeft, 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() 26 if (left < fLeft) fLeft = left; in add() 33 add(toAdd.fLeft, toAdd.fTop, toAdd.fRight, toAdd.fBottom); in add() 37 if (pt.fX < fLeft) fLeft = pt.fX; in add() 44 if (pt.fX < fLeft) fLeft = SkDoubleToScalar(pt.fX); in add() 51 return AlmostLessOrEqualUlps(fLeft, pt.fX) 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 18 fLeft = std::min(fLeft, 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() 26 if (left < fLeft) fLeft = left; in add() 33 add(toAdd.fLeft, toAdd.fTop, toAdd.fRight, toAdd.fBottom); in add() 37 if (pt.fX < fLeft) fLeft = pt.fX; in add() 44 if (pt.fX < fLeft) fLeft = SkDoubleToScalar(pt.fX); in add() 51 return AlmostLessOrEqualUlps(fLeft, pt.fX) 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() 22 if (left < fLeft) fLeft = left; in join() 34 quad[0].set(fLeft, fTop); in toQuad() 37 quad[3].set(fLeft, 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() 122 fLeft = SkMinScalar(fLeft, left); in join() 146 line.printf( "SkRect::MakeLTRB(%s, /* %f */\n", set_scalar(&tmp, fLeft, asType), fLeft); in dump() [all …]
|
D | SkBlitter.cpp | 78 SkScalar partialL = bounds.fLeft + 1 - rect.fLeft; in blitFatAntiRect() 90 this->blitAntiH(bounds.fLeft, bounds.fTop, alphas, runs); in blitFatAntiRect() 93 this->blitAntiRect(bounds.fLeft, bounds.fTop + 1, bounds.width() - 2, bounds.height() - 2, in blitFatAntiRect() 101 this->blitAntiH(bounds.fLeft, bounds.fBottom - 1, alphas, runs); in blitFatAntiRect() 195 int cx = clip.fLeft; in blitMask() 197 int maskLeft = mask.fBounds.fLeft; in blitMask() 253 const uint8_t* aa = mask.getAddr8(clip.fLeft, clip.fTop); in blitMask() 261 this->blitAntiH(clip.fLeft, y, aa, runs); in blitMask() 289 this->blitRect(cr.fLeft, cr.fTop, cr.width(), cr.height()); in blitRectRegion() 342 return (unsigned)(x - rect.fLeft) < (unsigned)rect.width(); in x_in_rect() [all …]
|
D | SkLineClipper.cpp | 86 return outer.fLeft <= inner.fLeft && outer.fTop <= inner.fTop && 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() 148 if (tmp[index0].fX < clip.fLeft) { in IntersectLine() 149 tmp[index0].set(clip.fLeft, sect_with_vertical(src, clip.fLeft)); in IntersectLine() 229 if (tmp[index1].fX <= clip.fLeft) { // wholly to the left in ClipLine() 230 tmp[0].fX = tmp[1].fX = clip.fLeft; in ClipLine() 244 if (tmp[index0].fX < clip.fLeft) { in ClipLine() [all …]
|
D | SkScan.h | 100 xr->fLeft = SkIntToFixed(src.fLeft); in XRect_set() 111 xr->fLeft = SkScalarToFixed(src.fLeft); in XRect_set() 120 dst->fLeft = SkFixedRoundToInt(xr.fLeft); in XRect_round() 130 dst->fLeft = SkFixedFloorToInt(xr.fLeft); in XRect_roundOut()
|
/third_party/flutter/skia/src/gpu/ |
D | GrClip.h | 75 return innerClipBounds.fRight > innerClipBounds.fLeft + kBoundsTolerance && in IsInsideClip() 77 innerClipBounds.fLeft < queryBounds.fLeft + 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() 107 return SkIRect::MakeLTRB(SkScalarFloorToInt(bounds.fLeft + kBoundsTolerance), in GetPixelIBounds() 117 return SkRect::MakeLTRB(SkScalarFloorToScalar(bounds.fLeft + kBoundsTolerance), in GetPixelBounds() 127 return SkScalarAbs(SkScalarRoundToScalar(rect.fLeft) - rect.fLeft) <= kBoundsTolerance && in IsPixelAligned()
|
/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() 16 outer.fLeft + radii.fLeft, outer.fBottom, paint); in draw() 19 canvas->drawLine(outer.fLeft, outer.fTop + radii.fTop, in draw() 21 canvas->drawLine(outer.fLeft, outer.fBottom - radii.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() 15 canvas->drawLine(outer.fLeft + radii.fLeft, outer.fTop, in draw() 16 outer.fLeft + radii.fLeft, outer.fBottom, paint); in draw() 19 canvas->drawLine(outer.fLeft, outer.fTop + radii.fTop, in draw() 21 canvas->drawLine(outer.fLeft, outer.fBottom - radii.fBottom, in draw()
|
/third_party/flutter/skia/src/sksl/ir/ |
D | SkSLBinaryExpression.h | 26 , fLeft(std::move(left)) in BinaryExpression() 32 return irGenerator.constantFold(*fLeft, in constantPropagate() 38 return Compiler::IsAssignment(fOperator) || fLeft->hasSideEffects() || in hasSideEffects() 43 return std::unique_ptr<Expression>(new BinaryExpression(fOffset, fLeft->clone(), fOperator, in clone() 48 return "(" + fLeft->description() + " " + Compiler::OperatorName(fOperator) + " " + in description() 52 std::unique_ptr<Expression> fLeft; member
|
/third_party/flutter/skia/bench/ |
D | RTreeBench.cpp | 84 query.fLeft = rand.nextRangeF(0, GENERATE_EXTENTS); in onDraw() 86 query.fRight = query.fLeft + 1 + rand.nextRangeF(0, GENERATE_EXTENTS/2); in onDraw() 100 out.fLeft = SkIntToScalar(index % GRID_WIDTH); in make_XYordered_rects() 102 out.fRight = out.fLeft + 1 + rand.nextRangeF(0, GENERATE_EXTENTS/3); in make_XYordered_rects() 108 out.fLeft = SkIntToScalar(index / GRID_WIDTH); in make_YXordered_rects() 110 out.fRight = out.fLeft + 1 + rand.nextRangeF(0, GENERATE_EXTENTS/3); in make_YXordered_rects() 117 out.fLeft = rand.nextRangeF(0, GENERATE_EXTENTS); in make_random_rects() 119 out.fRight = out.fLeft + 1 + rand.nextRangeF(0, GENERATE_EXTENTS/5); in make_random_rects()
|
/third_party/skia/bench/ |
D | RTreeBench.cpp | 85 query.fLeft = rand.nextRangeF(0, GENERATE_EXTENTS); in onDraw() 87 query.fRight = query.fLeft + 1 + rand.nextRangeF(0, GENERATE_EXTENTS/2); in onDraw() 101 out.fLeft = SkIntToScalar(index % GRID_WIDTH); in make_XYordered_rects() 103 out.fRight = out.fLeft + 1 + rand.nextRangeF(0, GENERATE_EXTENTS/3); in make_XYordered_rects() 109 out.fLeft = SkIntToScalar(index / GRID_WIDTH); in make_YXordered_rects() 111 out.fRight = out.fLeft + 1 + rand.nextRangeF(0, GENERATE_EXTENTS/3); in make_YXordered_rects() 118 out.fLeft = rand.nextRangeF(0, GENERATE_EXTENTS); in make_random_rects() 120 out.fRight = out.fLeft + 1 + rand.nextRangeF(0, GENERATE_EXTENTS/5); in make_random_rects()
|
/third_party/skia/tests/ |
D | M44Test.cpp | 242 SkV2 tl = map2d(m, {src.fLeft, src.fTop}); in DEF_TEST() 245 SkV2 bl = map2d(m, {src.fLeft, 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() 257 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(actual.fLeft, expected.fLeft, e.fLeft), in DEF_TEST() 258 "Expected %g == %g", actual.fLeft, expected.fLeft); in DEF_TEST() 276 SkV4 corners[4] = {{src.fLeft, src.fTop, 0.f, 1.f}, in DEF_TEST() 279 {src.fLeft, 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 …]
|