/external/skia/include/core/ |
D | SkRect.h | 32 int32_t fLeft; //!< smaller x-axis bounds member 114 constexpr int32_t left() const { return fLeft; } in left() 142 constexpr int32_t x() const { return fLeft; } in x() 152 constexpr SkIPoint topLeft() const { return {fLeft, fTop}; } in topLeft() 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() 221 return a.fLeft == b.fLeft && a.fTop == b.fTop && 233 return a.fLeft != b.fLeft || a.fTop != b.fTop || 255 fLeft = left; in setLTRB() [all …]
|
/external/pdfium/xfa/fwl/theme/ |
D | cfwl_widgettp.cpp | 141 float fLeft = ((rect.width - (bVert ? 9 : 6)) / 2 + rect.left) + 0.5f; in DrawArrow() local 146 path.MoveTo(CFX_PointF(fLeft, fTop + 1)); in DrawArrow() 147 path.LineTo(CFX_PointF(fLeft + 4, fTop + 5)); in DrawArrow() 148 path.LineTo(CFX_PointF(fLeft + 8, fTop + 1)); in DrawArrow() 149 path.LineTo(CFX_PointF(fLeft + 7, fTop)); in DrawArrow() 150 path.LineTo(CFX_PointF(fLeft + 4, fTop + 3)); in DrawArrow() 151 path.LineTo(CFX_PointF(fLeft + 1, fTop)); in DrawArrow() 154 path.MoveTo(CFX_PointF(fLeft, fTop + 4)); in DrawArrow() 155 path.LineTo(CFX_PointF(fLeft + 4, fTop)); in DrawArrow() 156 path.LineTo(CFX_PointF(fLeft + 8, fTop + 4)); in DrawArrow() [all …]
|
/external/skia/src/core/ |
D | SkRect.cpp | 15 std::max(a.fLeft, b.fLeft), in intersect() 29 if (r.fLeft >= r.fRight || r.fTop >= r.fBottom) { in join() 34 if (fLeft >= fRight || fTop >= fBottom) { in join() 37 if (r.fLeft < fLeft) fLeft = r.fLeft; in join() 49 quad[0].set(fLeft, fTop); in toQuad() 52 quad[3].set(fLeft, 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() 130 fLeft = std::min(fLeft, r.fLeft); in join() 154 line.printf( "SkRect::MakeLTRB(%s, /* %f */\n", set_scalar(&tmp, fLeft, asType), fLeft); in dump() [all …]
|
D | SkLineClipper.cpp | 92 return outer.fLeft <= inner.fLeft && outer.fTop <= inner.fTop && 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() 154 if (tmp[index0].fX < clip.fLeft) { in IntersectLine() 155 tmp[index0].set(clip.fLeft, sect_with_vertical(tmp, clip.fLeft)); in IntersectLine() 235 if (tmp[index1].fX <= clip.fLeft) { // wholly to the left in ClipLine() 236 tmp[0].fX = tmp[1].fX = clip.fLeft; in ClipLine() 250 if (tmp[index0].fX < clip.fLeft) { in ClipLine() [all …]
|
D | SkBlitter.cpp | 86 SkScalar partialL = bounds.fLeft + 1 - rect.fLeft; in blitFatAntiRect() 98 this->blitAntiH(bounds.fLeft, bounds.fTop, alphas, runs); in blitFatAntiRect() 101 this->blitAntiRect(bounds.fLeft, bounds.fTop + 1, bounds.width() - 2, bounds.height() - 2, in blitFatAntiRect() 109 this->blitAntiH(bounds.fLeft, bounds.fBottom - 1, alphas, runs); in blitFatAntiRect() 203 int cx = clip.fLeft; in blitMask() 205 int maskLeft = mask.fBounds.fLeft; in blitMask() 261 const uint8_t* aa = mask.getAddr8(clip.fLeft, clip.fTop); in blitMask() 269 this->blitAntiH(clip.fLeft, y, aa, runs); in blitMask() 299 this->blitRect(cr.fLeft, cr.fTop, cr.width(), cr.height()); in blitRectRegion() 352 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()
|
D | SkRectPriv.h | 44 r->fLeft = std::min(pt.fX, r->fLeft); in GrowToInclude() 53 return SkFitsInFixed(r.fLeft) && SkFitsInFixed(r.fTop) && in FitsInFixed() 58 return SkTFitsIn<int16_t>(r.fLeft) && SkTFitsIn<int16_t>(r.fTop) && in Is16Bit() 64 return SkScalarHalf(r.fRight) - SkScalarHalf(r.fLeft); in HalfWidth()
|
D | SkEdgeClipper.cpp | 171 if (pts[2].fX <= clip.fLeft) { // wholly to the left in clipMonoQuad() 172 this->appendVLine(clip.fLeft, pts[0].fY, pts[2].fY, reverse); in clipMonoQuad() 186 if (pts[0].fX < clip.fLeft) { in clipMonoQuad() 187 if (chopMonoQuadAtX(pts, clip.fLeft, &t)) { in clipMonoQuad() 189 this->appendVLine(clip.fLeft, tmp[0].fY, tmp[2].fY, reverse); in clipMonoQuad() 191 tmp[2].fX = clip.fLeft; in clipMonoQuad() 192 clamp_ge(tmp[3].fX, clip.fLeft); in clipMonoQuad() 199 this->appendVLine(clip.fLeft, pts[0].fY, pts[2].fY, reverse); in clipMonoQuad() 363 if (pts[3].fX <= clip.fLeft) { // wholly to the left in clipMonoCubic() 364 this->appendVLine(clip.fLeft, pts[0].fY, pts[3].fY, reverse); in clipMonoCubic() [all …]
|
/external/skia/src/gpu/ganesh/geometry/ |
D | GrRect.h | 19 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() 53 if (srcRect->fLeft < 0) { in GrClipSrcRectAndDstPoint() 54 dstPoint->fX -= srcRect->fLeft; in GrClipSrcRectAndDstPoint() 55 srcRect->fLeft = 0; in GrClipSrcRectAndDstPoint() 58 srcRect->fLeft -= dstPoint->fX; in GrClipSrcRectAndDstPoint() [all …]
|
/external/skia/src/pathops/ |
D | SkPathOpsRect.h | 22 double fLeft, fTop, fRight, fBottom; member 25 fLeft = std::min(fLeft, 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()
|
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()
|
/external/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()
|
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() 13 (test.fLeft == negZero.fLeft && test.fTop == negZero.fTop && in draw()
|
D | RRect_Corner.cpp | 15 canvas->drawLine(r.fLeft, r.fTop + rrect.radii(SkRRect::kUpperLeft_Corner).fY, in draw() 17 canvas->drawLine(r.fLeft, r.fBottom - rrect.radii(SkRRect::kLowerLeft_Corner).fY, in draw() 19 canvas->drawLine(r.fLeft + rrect.radii(SkRRect::kUpperLeft_Corner).fX, r.fTop, in draw() 20 r.fLeft + rrect.radii(SkRRect::kLowerLeft_Corner).fX, r.fBottom, paint); in draw()
|
D | RRect_setNinePatch.cpp | 14 canvas->drawLine(r.fLeft, r.fTop + rrect.radii(SkRRect::kUpperLeft_Corner).fY, in draw() 16 canvas->drawLine(r.fLeft, r.fBottom - rrect.radii(SkRRect::kLowerLeft_Corner).fY, in draw() 18 canvas->drawLine(r.fLeft + rrect.radii(SkRRect::kUpperLeft_Corner).fX, r.fTop, in draw() 19 r.fLeft + rrect.radii(SkRRect::kLowerLeft_Corner).fX, r.fBottom, paint); in draw()
|
D | Canvas_getLocalClipBounds.cpp | 11 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()
|
D | Bitmap_extractSubset.cpp | 9 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()
|
/external/skia/bench/ |
D | RTreeBench.cpp | 87 query.fLeft = rand.nextRangeF(0, GENERATE_EXTENTS); in onDraw() 89 query.fRight = query.fLeft + 1 + rand.nextRangeF(0, GENERATE_EXTENTS/2); in onDraw() 103 out.fLeft = SkIntToScalar(index % GRID_WIDTH); in make_XYordered_rects() 105 out.fRight = out.fLeft + 1 + rand.nextRangeF(0, GENERATE_EXTENTS/3); in make_XYordered_rects() 111 out.fLeft = SkIntToScalar(index / GRID_WIDTH); in make_YXordered_rects() 113 out.fRight = out.fLeft + 1 + rand.nextRangeF(0, GENERATE_EXTENTS/3); in make_YXordered_rects() 120 out.fLeft = rand.nextRangeF(0, GENERATE_EXTENTS); in make_random_rects() 122 out.fRight = out.fLeft + 1 + rand.nextRangeF(0, GENERATE_EXTENTS/5); in make_random_rects()
|
/external/skia/tests/ |
D | M44Test.cpp | 247 SkV2 tl = map2d(m, {src.fLeft, src.fTop}); in DEF_TEST() 250 SkV2 bl = map2d(m, {src.fLeft, 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() 262 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(actual.fLeft, expected.fLeft, e.fLeft), in DEF_TEST() 263 "Expected %g == %g", actual.fLeft, expected.fLeft); in DEF_TEST() 281 SkV4 corners[4] = {{src.fLeft, src.fTop, 0.f, 1.f}, in DEF_TEST() 284 {src.fLeft, 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 …]
|
D | GrOpListFlushTest.cpp | 78 srcRect.fLeft = i; in DEF_GANESH_TEST_FOR_RENDERING_CONTEXTS() 79 srcRect.fRight = srcRect.fLeft + 1; in DEF_GANESH_TEST_FOR_RENDERING_CONTEXTS() 85 dstRect.fLeft = i+1; in DEF_GANESH_TEST_FOR_RENDERING_CONTEXTS() 86 dstRect.fRight = dstRect.fLeft + 1; in DEF_GANESH_TEST_FOR_RENDERING_CONTEXTS()
|
/external/pdfium/core/fpdfdoc/ |
D | cpdf_iconfit.cpp | 48 float fLeft = kDefaultPosition; in GetIconBottomLeftPosition() local 51 return {fLeft, fBottom}; in GetIconBottomLeftPosition() 55 return {fLeft, fBottom}; in GetIconBottomLeftPosition() 59 fLeft = pA->GetFloatAt(0); in GetIconBottomLeftPosition() 62 return {fLeft, fBottom}; in GetIconBottomLeftPosition()
|
/external/skia/src/sksl/ir/ |
D | SkSLBinaryExpression.h | 37 , fLeft(std::move(left)) in BinaryExpression() 70 return fLeft; in left() 74 return fLeft; in left() 103 std::unique_ptr<Expression> fLeft; variable
|
/external/skia/src/gpu/ |
D | AtlasTypes.cpp | 69 dataPtr += fBytesPerPixel * rect.fLeft; in addSubImage() 86 fDirtyRect.join({rect.fLeft, rect.fTop, rect.fRight, rect.fBottom}); in addSubImage() 107 fDirtyRect.fLeft &= ~clearBits; in prepareForUpload() 115 dataPtr += fBytesPerPixel * fDirtyRect.fLeft; in prepareForUpload() 127 dataPtr += fBytesPerPixel * fCachedRect.fLeft; in prepareForUpload()
|
D | AtlasTypes.h | 34 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() 68 fLeft = left; in set() 75 fLeft = SkToS16(r.fLeft); in set() 82 fLeft += dx; in offset() 342 SkASSERT(rect.fLeft <= rect.fRight); in updateRect() 344 fUVs[0] = (fUVs[0] & 0xE000) | rect.fLeft; in updateRect()
|