Home
last modified time | relevance | path

Searched refs:fRight (Results 1 – 25 of 325) sorted by relevance

12345678910>>...13

/external/skia/include/core/
DSkRect.h34 int32_t fRight; //!< larger x-axis bounds member
128 constexpr int32_t right() const { return fRight; } in right()
159 constexpr int32_t width() const { return Sk32_can_overflow_sub(fRight, fLeft); } in width()
181 constexpr int64_t width64() const { return (int64_t)fRight - (int64_t)fLeft; } in width64()
197 bool isEmpty64() const { return fRight <= fLeft || fBottom <= fTop; } in isEmpty64()
222 a.fRight == b.fRight && a.fBottom == b.fBottom;
234 a.fRight != b.fRight || a.fBottom != b.fBottom;
257 fRight = right; in setLTRB()
272 fRight = Sk32_sat_add(x, width); in setXYWH()
279 fRight = width; in setWH()
[all …]
/external/skia/src/core/
DSkRect.cpp17 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()
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 …]
DSkLineClipper.cpp93 outer.fRight >= inner.fRight && outer.fBottom >= inner.fBottom; in containsNoEmptyCheck()
109 if (nestedLT(bounds.fRight, clip.fLeft, bounds.width()) || in IntersectLine()
110 nestedLT(clip.fRight, bounds.fLeft, bounds.width()) || in IntersectLine()
146 if ((tmp[index1].fX <= clip.fLeft || tmp[index0].fX >= clip.fRight)) { in IntersectLine()
149 if (tmp[0].fX != tmp[1].fX || tmp[0].fX < clip.fLeft || tmp[0].fX > clip.fRight) { in IntersectLine()
157 if (tmp[index1].fX > clip.fRight) { in IntersectLine()
158 tmp[index1].set(clip.fRight, sect_with_vertical(tmp, clip.fRight)); in IntersectLine()
239 } else if (tmp[index0].fX >= clip.fRight) { // wholly to the right in ClipLine()
243 tmp[0].fX = tmp[1].fX = clip.fRight; in ClipLine()
260 if (tmp[index1].fX > clip.fRight) { in ClipLine()
[all …]
DSkScan.h107 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()
DSkEdgeClipper.cpp175 if (pts[0].fX >= clip.fRight) { // wholly to the right in clipMonoQuad()
177 this->appendVLine(clip.fRight, pts[0].fY, pts[2].fY, reverse); in clipMonoQuad()
205 if (pts[2].fX > clip.fRight) { in clipMonoQuad()
206 if (chopMonoQuadAtX(pts, clip.fRight, &t)) { in clipMonoQuad()
209 clamp_le(tmp[1].fX, clip.fRight); in clipMonoQuad()
210 tmp[2].fX = clip.fRight; in clipMonoQuad()
213 this->appendVLine(clip.fRight, tmp[2].fY, tmp[4].fY, reverse); in clipMonoQuad()
217 pts[1].fX = std::min(pts[1].fX, clip.fRight); in clipMonoQuad()
218 pts[2].fX = std::min(pts[2].fX, clip.fRight); in clipMonoQuad()
367 if (pts[0].fX >= clip.fRight) { // wholly to the right in clipMonoCubic()
[all …]
DSkRectPriv.h45 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()
DSkBlitBWMaskTemplate.h27 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()
DSkLatticeIter.cpp42 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()
/external/skia/src/pathops/
DSkPathOpsRect.h22 double fLeft, fTop, fRight, fBottom; member
27 fRight = std::max(fRight, pt.fX); in add()
32 return approximately_between(fLeft, pt.fX, fRight) in contains()
39 SkASSERT(fLeft <= fRight); in intersects()
41 SkASSERT(r.fLeft <= r.fRight); in intersects()
43 return r.fLeft <= fRight && fLeft <= r.fRight && r.fTop <= fBottom && fTop <= r.fBottom; in intersects()
47 fLeft = fRight = pt.fX; in set()
52 return fRight - fLeft; in width()
80 return fLeft <= fRight && fTop <= fBottom; in valid()
DSkPathOpsBounds.h16 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/gpu/ganesh/geometry/
DGrRect.h19 SkASSERT(!a.isFinite() || (a.fLeft <= a.fRight && a.fTop <= a.fBottom)); in GrRectsOverlap()
20 SkASSERT(!b.isFinite() || (b.fLeft <= b.fRight && b.fTop <= b.fBottom)); in GrRectsOverlap()
21 return a.fRight > b.fLeft && a.fBottom > b.fTop && b.fRight > a.fLeft && b.fBottom > a.fTop; in GrRectsOverlap()
28 SkASSERT(!a.isFinite() || (a.fLeft <= a.fRight && a.fTop <= a.fBottom)); in GrRectsTouchOrOverlap()
29 SkASSERT(!b.isFinite() || (b.fLeft <= b.fRight && b.fTop <= b.fBottom)); in GrRectsTouchOrOverlap()
30 return a.fRight >= b.fLeft && a.fBottom >= b.fTop && b.fRight >= a.fLeft && b.fBottom >= a.fTop; in GrRectsTouchOrOverlap()
73 if (srcRect->fRight > srcSize.width()) { in GrClipSrcRectAndDstPoint()
74 srcRect->fRight = srcSize.width(); in GrClipSrcRectAndDstPoint()
77 srcRect->fRight = srcRect->fLeft + dstSize.width() - dstPoint->fX; in GrClipSrcRectAndDstPoint()
/external/skia/docs/examples/
DCanvas_drawRRect.cpp12 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()
DRect_equal_operator.cpp10 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()
DRRect_Corner.cpp16 r.fRight, r.fTop + rrect.radii(SkRRect::kUpperRight_Corner).fY, paint); in draw()
18 r.fRight, r.fBottom - rrect.radii(SkRRect::kLowerRight_Corner).fY, paint); in draw()
21 canvas->drawLine(r.fRight - rrect.radii(SkRRect::kUpperRight_Corner).fX, r.fTop, in draw()
22 r.fRight - rrect.radii(SkRRect::kLowerRight_Corner).fX, r.fBottom, paint); in draw()
DRRect_setNinePatch.cpp15 r.fRight, r.fTop + rrect.radii(SkRRect::kUpperRight_Corner).fY, paint); in draw()
17 r.fRight, r.fBottom - rrect.radii(SkRRect::kLowerRight_Corner).fY, paint); in draw()
20 canvas->drawLine(r.fRight - rrect.radii(SkRRect::kUpperRight_Corner).fX, r.fTop, in draw()
21 r.fRight - rrect.radii(SkRRect::kLowerRight_Corner).fX, r.fBottom, paint); in draw()
DCanvas_getLocalClipBounds.cpp11 bounds.fLeft, bounds.fTop, bounds.fRight, bounds.fBottom); in draw()
18 bounds.fLeft, bounds.fTop, bounds.fRight, bounds.fBottom); in draw()
22 bounds.fLeft, bounds.fTop, bounds.fRight, bounds.fBottom); in draw()
DBitmap_extractSubset.cpp9 SkDebugf("bounds: %d, %d, %d, %d\n", bounds.fLeft, bounds.fTop, bounds.fRight, bounds.fBottom); in draw()
15 SkDebugf("subset: %4d, %4d, %4d, %4d ", b.fLeft, b.fTop, b.fRight, b.fBottom); in draw()
19 SkDebugf(" subset: %d, %d, %d, %d", s.fLeft, s.fTop, s.fRight, s.fBottom); in draw()
DCanvas_getDeviceClipBounds.cpp11 bounds.fLeft, bounds.fTop, bounds.fRight, bounds.fBottom); in draw()
19 bounds.fLeft, bounds.fTop, bounds.fRight, bounds.fBottom); in draw()
25 bounds.fLeft, bounds.fTop, bounds.fRight, bounds.fBottom); in draw()
/external/skia/tests/
DM44Test.cpp248 SkV2 tr = map2d(m, {src.fRight, src.fTop}); in DEF_TEST()
249 SkV2 br = map2d(m, {src.fRight, src.fBottom}); in DEF_TEST()
252 assertEdges(tl.x, tr.x, dst.fLeft, dst.fRight); in DEF_TEST()
253 assertEdges(bl.x, br.x, dst.fLeft, dst.fRight); in DEF_TEST()
266 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(actual.fRight, expected.fRight, e.fRight), in DEF_TEST()
267 "Expected %g == %g", actual.fRight, expected.fRight); in DEF_TEST()
282 {src.fRight, src.fTop, 0.f, 1.f}, in DEF_TEST()
283 {src.fRight, src.fBottom, 0.f, 1.f}, in DEF_TEST()
298 REPORTER_ASSERT(reporter, actual.fLeft <= x && x <= actual.fRight, in DEF_TEST()
300 x, actual.fLeft, actual.fRight); in DEF_TEST()
[all …]
DBlitMaskClip.cpp26 REPORTER_ASSERT(fReporter, x >= fBounds.fLeft && x < fBounds.fRight); in blitH()
29 REPORTER_ASSERT(fReporter, right > fBounds.fLeft && right <= fBounds.fRight); in blitH()
64 for (int left = b.fLeft; left < b.fRight; left++) { in DEF_TEST()
65 for (int right = left + 1; right <= b.fRight; right++) { in DEF_TEST()
/external/skia/src/gpu/
DAtlasTypes.h34 int16_t fLeft, fTop, fRight, fBottom; member
60 int width() const { return fRight - fLeft; } in width()
63 bool isEmpty() const { return fLeft >= fRight || fTop >= fBottom; } in isEmpty()
70 fRight = right; in set()
77 fRight = SkToS16(r.fRight); in set()
84 fRight += dx; in offset()
342 SkASSERT(rect.fLeft <= rect.fRight); in updateRect()
343 SkASSERT(rect.fRight <= 0x1FFF); in updateRect()
346 fUVs[2] = (fUVs[2] & 0xE000) | rect.fRight; in updateRect()
/external/skia/gm/
Dconstcolorprocessor.cpp168 canvas->drawString(inputLabel, renderRect.fRight + kPad, -inputLabelBounds.fTop, in onDraw()
171 inputLabelBounds.offset(renderRect.fRight + kPad, -inputLabelBounds.fTop); in onDraw()
176 canvas->drawString(procLabel, renderRect.fRight + kPad, in onDraw()
179 procLabelBounds.offset(renderRect.fRight + kPad, in onDraw()
190 SkScalar width = std::max(inputLabelBounds.fRight, procLabelBounds.fRight); in onDraw()
/external/skia/src/sksl/ir/
DSkSLBinaryExpression.h39 , fRight(std::move(right)) { in BinaryExpression()
78 return fRight; in right()
82 return fRight; in right()
105 std::unique_ptr<Expression> fRight; variable
/external/skia/modules/skparagraph/src/
DTextLine.cpp798 result.clip.fRight -= rightCorrection; in measureTextInsideOneRun()
801 result.clip.fRight -= leftCorrection; in measureTextInsideOneRun()
809 if (compareRound(result.clip.fRight, fAdvance.fX) > 0 && !includeGhostSpaces) { in measureTextInsideOneRun()
815 result.fExcludedTrailingSpaces = std::max(result.clip.fRight - fAdvance.fX, 0.0f); in measureTextInsideOneRun()
817 result.clip.fRight = fAdvance.fX; in measureTextInsideOneRun()
824 result.clip.fRight = result.clip.fLeft; in measureTextInsideOneRun()
1197 clip.fRight = this->width(); in getRectsForRange()
1199 trailingSpaces.fRight = 0; in getRectsForRange()
1208 trailingSpaces.fRight = 0; in getRectsForRange()
1216 trailingSpaces.fRight = trailingSpaces.fLeft + delta; in getRectsForRange()
[all …]
/external/pdfium/xfa/fwl/theme/
Dcfwl_pushbuttontp.cpp37 float fRight = rect.right(); in DrawBackground() local
43 strokePath.LineTo(CFX_PointF(fRight - kPushbuttonSizeCorner, rect.top)); in DrawBackground()
44 strokePath.LineTo(CFX_PointF(fRight, rect.top + kPushbuttonSizeCorner)); in DrawBackground()
45 strokePath.LineTo(CFX_PointF(fRight, fBottom - kPushbuttonSizeCorner)); in DrawBackground()
46 strokePath.LineTo(CFX_PointF(fRight - kPushbuttonSizeCorner, fBottom)); in DrawBackground()

12345678910>>...13