/external/skia/include/core/ |
D | SkRect.h | 31 int32_t fRight; //!< larger x-axis bounds member 113 int32_t right() const { return fRight; } in right() 144 int32_t width() const { return Sk32_can_overflow_sub(fRight, fLeft); } in width() 166 int64_t width64() const { return (int64_t)fRight - (int64_t)fLeft; } in width64() 182 bool isEmpty64() const { return fRight <= fLeft || fBottom <= fTop; } in isEmpty64() 240 fRight = right; in setLTRB() 255 fRight = Sk32_sat_add(x, width); in setXYWH() 262 fRight = width; in setWH() 280 Sk32_sat_add(fRight, dx), Sk32_sat_add(fBottom, dy), in makeOffset() 312 Sk32_sat_sub(fRight, dx), Sk32_sat_sub(fBottom, dy), in makeInset() [all …]
|
/external/skqp/include/core/ |
D | SkRect.h | 40 int32_t fRight; //!< larger x-axis bounds member 122 int32_t right() const { return fRight; } in right() 153 int32_t width() const { return Sk32_can_overflow_sub(fRight, fLeft); } in width() 175 int64_t width64() const { return (int64_t)fRight - (int64_t)fLeft; } in width64() 191 bool isEmpty64() const { return fRight <= fLeft || fBottom <= fTop; } in isEmpty64() 249 fRight = right; in set() 277 fRight = Sk32_sat_add(x, width); in setXYWH() 295 Sk32_sat_add(fRight, dx), Sk32_sat_add(fBottom, dy), in makeOffset() 313 Sk32_sat_sub(fRight, dx), Sk32_sat_sub(fBottom, dy), in makeInset() 331 Sk32_sat_add(fRight, dx), Sk32_sat_add(fBottom, dy), in makeOutset() [all …]
|
/external/skqp/src/gpu/ |
D | GrRect.h | 16 int16_t fLeft, fTop, fRight, fBottom; member 36 int width() const { return fRight - fLeft; } in width() 39 bool isEmpty() const { return fLeft >= fRight || fTop >= fBottom; } in isEmpty() 46 fRight = right; in set() 53 fRight = SkToS16(r.fRight); in set() 62 SkASSERT(!a.isFinite() || (a.fLeft <= a.fRight && a.fTop <= a.fBottom)); in GrRectsOverlap() 63 SkASSERT(!b.isFinite() || (b.fLeft <= b.fRight && b.fTop <= b.fBottom)); in GrRectsOverlap() 64 return a.fRight > b.fLeft && a.fBottom > b.fTop && b.fRight > a.fLeft && b.fBottom > a.fTop; in GrRectsOverlap() 71 SkASSERT(!a.isFinite() || (a.fLeft <= a.fRight && a.fTop <= a.fBottom)); in GrRectsTouchOrOverlap() 72 SkASSERT(!b.isFinite() || (b.fLeft <= b.fRight && b.fTop <= b.fBottom)); in GrRectsTouchOrOverlap() [all …]
|
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()
|
/external/skia/src/core/ |
D | SkRect.cpp | 16 std::min(a.fRight, b.fRight), in intersect() 28 if (r.fLeft >= r.fRight || r.fTop >= r.fBottom) { in join() 33 if (fLeft >= fRight || fTop >= fBottom) { in join() 38 if (r.fRight > fRight) fRight = r.fRight; in join() 49 quad[1].set(fRight, fTop); in toQuad() 50 quad[2].set(fRight, fBottom); in toQuad() 111 CHECK_INTERSECT(r.fLeft, r.fTop, r.fRight, r.fBottom, fLeft, fTop, fRight, fBottom); in intersect() 117 CHECK_INTERSECT(a.fLeft, a.fTop, a.fRight, a.fBottom, b.fLeft, b.fTop, b.fRight, b.fBottom); in intersect() 132 fRight = std::max(fRight, r.fRight); in join() 156 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()
|
/external/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 …]
|
/external/skqp/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()
|
/external/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()
|
/external/skqp/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 | 112 xr->fRight = SkIntToFixed(src.fRight); in XRect_set() 123 xr->fRight = SkScalarToFixed(src.fRight); in XRect_set() 132 dst->fRight = SkFixedRoundToInt(xr.fRight); in XRect_round() 142 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()
|
/external/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()
|
/external/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()
|
/external/skqp/src/sksl/ir/ |
D | SkSLBinaryExpression.h | 27 , fRight(std::move(right)) {} in BinaryExpression() 33 *fRight); in constantPropagate() 38 fRight->hasSideEffects(); in hasSideEffects() 43 fRight->clone(), fType)); in clone() 48 fRight->description() + ")"; in description() 53 std::unique_ptr<Expression> fRight; member
|
/external/skia/src/sksl/ir/ |
D | SkSLBinaryExpression.h | 28 , fRight(std::move(right)) {} in BinaryExpression() 34 *fRight); in constantPropagate() 41 return fLeft->hasProperty(property) || fRight->hasProperty(property); in hasProperty() 46 fRight->clone(), fType)); in clone() 52 fRight->description() + ")"; in description() 58 std::unique_ptr<Expression> fRight; member
|
/external/skqp/docs/ |
D | SkRect_Reference.bmh | 24 horizontal values when sorted. When equal to or greater than fRight, Rect is empty. 33 #Member SkScalar fRight 184 #Param w added to x and stored in fRight ## 435 SkDebugf("unsorted.fRight: %g unsorted.right(): %g\n", unsorted.fRight, unsorted.right()); 437 SkDebugf("sorted.fRight: %g sorted.right(): %g\n", sorted.fRight, sorted.right()); 439 unsorted.fRight: 10 unsorted.right(): 10 440 sorted.fRight: 15 sorted.right(): 15 444 #SeeAlso fRight SkIRect::right() 587 test.fLeft, test.fTop, test.fRight, test.fBottom, 588 negZero.fLeft, negZero.fTop, negZero.fRight, negZero.fBottom, [all …]
|