/external/skia/include/core/ |
D | SkRect.h | 21 int32_t fLeft, fTop, fRight, fBottom; member 61 int right() const { return fRight; } in right() 72 int width() const { return fRight - fLeft; } in width() 89 int centerX() const { return (fRight + fLeft) >> 1; } in centerX() 103 bool isEmpty() const { return fLeft >= fRight || fTop >= fBottom; } in isEmpty() 107 SK_MaxS32 == fRight && in isLargest() 120 SkIsS16(fRight) && SkIsS16(fBottom); in is16Bit() 130 fRight = right; in set() 141 fRight = x + width; in setXYWH() 150 fRight = fBottom = SK_MaxS32; in setLargest() [all …]
|
/external/skia/src/gpu/ |
D | GrRect.h | 15 int16_t fLeft, fTop, fRight, fBottom; member 35 int width() const { return fRight - fLeft; } in width() 38 bool isEmpty() const { return fLeft >= fRight || fTop >= fBottom; } in isEmpty() 45 fRight = right; in set() 52 fRight = SkToS16(r.fRight); in set() 61 SkASSERT(!a.isFinite() || (a.fLeft <= a.fRight && a.fTop <= a.fBottom)); in GrRectsOverlap() 62 SkASSERT(!b.isFinite() || (b.fLeft <= b.fRight && b.fTop <= b.fBottom)); in GrRectsOverlap() 63 return a.fRight > b.fLeft && a.fBottom > b.fTop && b.fRight > a.fLeft && b.fBottom > a.fTop; in GrRectsOverlap() 70 SkASSERT(!a.isFinite() || (a.fLeft <= a.fRight && a.fTop <= a.fBottom)); in GrRectsTouchOrOverlap() 71 SkASSERT(!b.isFinite() || (b.fLeft <= b.fRight && b.fTop <= b.fBottom)); in GrRectsTouchOrOverlap() [all …]
|
D | GrClip.h | 77 return innerClipBounds.fRight - innerClipBounds.fLeft > kBoundsTolerance && in IsInsideClip() 81 innerClipBounds.fRight > queryBounds.fRight - kBoundsTolerance && in IsInsideClip() 95 outerClipBounds.fRight - outerClipBounds.fLeft <= kBoundsTolerance || in IsOutsideClip() 99 outerClipBounds.fLeft >= queryBounds.fRight - kBoundsTolerance || in IsOutsideClip() 101 outerClipBounds.fRight <= queryBounds.fLeft + kBoundsTolerance || in IsOutsideClip() 111 SkScalarCeilToInt(bounds.fRight - kBoundsTolerance), in GetPixelIBounds() 121 SkScalarCeilToScalar(bounds.fRight - kBoundsTolerance), in GetPixelBounds() 131 SkScalarAbs(SkScalarRoundToScalar(rect.fRight) - rect.fRight) <= kBoundsTolerance && in IsPixelAligned()
|
D | GrTextureProducer.cpp | 178 if ((!proxyIsExact || contentRect->fRight < proxy->width()) && in DetermineDomainMode() 179 contentRect->fRight - filterHalfWidth < constraintRect.fRight) { in DetermineDomainMode() 180 domainRect->fRight = contentRect->fRight - kDomainInset; in DetermineDomainMode() 200 if (!proxyIsExact || contentRect->fRight < proxy->width()) { in DetermineDomainMode() 201 domainRect->fRight = contentRect->fRight - kDomainInset; in DetermineDomainMode() 211 if (domainRect->fLeft > domainRect->fRight) { in DetermineDomainMode() 212 domainRect->fLeft = domainRect->fRight = SkScalarAve(domainRect->fLeft, domainRect->fRight); in DetermineDomainMode()
|
D | GrSoftwarePathRenderer.cpp | 100 devClipBounds.fRight, devPathBounds.fTop); in DrawAroundInvPath() 110 if (devClipBounds.fRight > devPathBounds.fRight) { in DrawAroundInvPath() 111 rect.iset(devPathBounds.fRight, devPathBounds.fTop, in DrawAroundInvPath() 112 devClipBounds.fRight, devPathBounds.fBottom); in DrawAroundInvPath() 118 devClipBounds.fRight, devClipBounds.fBottom); in DrawAroundInvPath()
|
/external/skia/src/pathops/ |
D | SkPathOpsRect.h | 13 double fLeft, fTop, fRight, fBottom; member 18 fRight = SkTMax(fRight, pt.fX); in add() 23 return approximately_between(fLeft, pt.fX, fRight) in contains() 30 SkASSERT(fLeft <= fRight); in intersects() 32 SkASSERT(r.fLeft <= r.fRight); in intersects() 34 return r.fLeft <= fRight && fLeft <= r.fRight && r.fTop <= fBottom && fTop <= r.fBottom; in intersects() 38 fLeft = fRight = pt.fX; in set() 43 return fRight - fLeft; in width() 69 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/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() 106 CHECK_INTERSECT(left, top, right, bottom, fLeft, fTop, fRight, fBottom); in intersect() 112 return this->intersect(r.fLeft, r.fTop, r.fRight, r.fBottom); in intersect() 116 CHECK_INTERSECT(a.fLeft, a.fTop, a.fRight, a.fBottom, b.fLeft, b.fTop, b.fRight, b.fBottom); in intersect() 128 if (fLeft >= fRight || fTop >= fBottom) { in join() 133 fRight = SkMaxScalar(fRight, right); in join() 157 line.appendf(" %s, /* %f */\n", set_scalar(&tmp, fRight, asType), fRight); in dump() [all …]
|
D | SkLineClipper.cpp | 74 outer.fRight >= inner.fRight && outer.fBottom >= inner.fBottom; in containsNoEmptyCheck() 90 if (nestedLT(bounds.fRight, clip.fLeft, bounds.width()) || in IntersectLine() 91 nestedLT(clip.fRight, bounds.fLeft, bounds.width()) || in IntersectLine() 127 if ((tmp[index1].fX <= clip.fLeft || tmp[index0].fX >= clip.fRight) && in IntersectLine() 136 if (tmp[index1].fX > clip.fRight) { in IntersectLine() 137 tmp[index1].set(clip.fRight, sect_with_vertical(src, clip.fRight)); in IntersectLine() 218 } else if (tmp[index0].fX >= clip.fRight) { // wholly to the right in ClipLine() 222 tmp[0].fX = tmp[1].fX = clip.fRight; in ClipLine() 239 if (tmp[index1].fX > clip.fRight) { in ClipLine() 240 r->set(clip.fRight, sect_with_vertical(tmp, clip.fRight)); in ClipLine() [all …]
|
D | SkScan.h | 101 xr->fRight = SkIntToFixed(src.fRight); in XRect_set() 112 xr->fRight = SkScalarToFixed(src.fRight); in XRect_set() 121 dst->fRight = SkFixedRoundToInt(xr.fRight); in XRect_round() 131 dst->fRight = SkFixedCeilToInt(xr.fRight); in XRect_roundOut()
|
D | SkEdgeClipper.cpp | 167 if (pts[0].fX >= clip.fRight) { // wholly to the right in clipMonoQuad() 169 this->appendVLine(clip.fRight, pts[0].fY, pts[2].fY, reverse); in clipMonoQuad() 197 if (pts[2].fX > clip.fRight) { in clipMonoQuad() 198 if (chopMonoQuadAtX(pts, clip.fRight, &t)) { in clipMonoQuad() 201 clamp_le(tmp[1].fX, clip.fRight); in clipMonoQuad() 202 tmp[2].fX = clip.fRight; in clipMonoQuad() 205 this->appendVLine(clip.fRight, tmp[2].fY, tmp[4].fY, reverse); in clipMonoQuad() 209 this->appendVLine(clip.fRight, pts[0].fY, pts[2].fY, reverse); in clipMonoQuad() 356 if (pts[0].fX >= clip.fRight) { // wholly to the right in clipMonoCubic() 358 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()
|
D | SkLatticeIter.cpp | 42 return valid_divs(lattice.fXDivs, lattice.fXCount, latticeBounds.fLeft, latticeBounds.fRight) in Valid() 150 int xCountScalable = count_scalable_pixels(xDivs, xCount, xIsScalable, src.fLeft, src.fRight); in SkLatticeIter() 158 src.fLeft, src.fRight, dst.fLeft, dst.fRight, xIsScalable); in SkLatticeIter() 218 fSrcX[2] = SkIntToScalar(c.fRight); in SkLatticeIter() 228 fDstX[2] = dst.fRight - SkIntToScalar(w - c.fRight); in SkLatticeIter() 229 fDstX[3] = dst.fRight; in SkLatticeIter()
|
D | SkRegion.cpp | 154 return this->setRect(r.fLeft, r.fTop, r.fRight, r.fBottom); in setRect() 204 "(%d,%d,%d,%d)", r.fLeft, r.fTop, r.fRight, r.fBottom); in toString() 307 runs[4] = bounds.fRight; in BuildRectRuns() 383 if (!scanline_contains(scanline, r.fLeft, r.fRight)) { in contains() 468 if (scanline_intersects(scanline, sect.fLeft, sect.fRight)) { in intersects() 544 fBounds.fRight + dx, fBounds.fBottom + dy); in translate() 1190 rect.fRight = *runs++; in validate_run() 1192 rect.fRight == SkRegion::kRunTypeSentinel || in validate_run() 1193 rect.fLeft >= rect.fRight || // check non-empty rect in validate_run() 1197 lastRight = rect.fRight; in validate_run() [all …]
|
D | SkScan_Hairline.cpp | 89 SkIntToFDot6(bounds.fRight), SkIntToFDot6(bounds.fBottom)); in HairLineRgn() 96 ptsR.fRight += SK_FDot6One; in HairLineRgn() 155 (SkScalarToFixed(rect.fRight) >> 16) + 1, in HairRect() 186 blitter->blitRect(r.fRight - 1, r.fTop + 1, 1, height - 2); // right in HairRect() 257 return r.fLeft > r.fRight || r.fTop > r.fBottom; in is_inverted() 264 return a.fLeft < b.fRight && b.fLeft < a.fRight && in geometric_overlap() 272 return inner.fRight <= outer.fRight && inner.fLeft >= outer.fLeft && in geometric_contains() 647 r.fRight + rx, r.fBottom + ry); in FrameRect() 654 tmp.set(outer.fLeft, outer.fTop, outer.fRight, outer.fTop + dy); in FrameRect() 662 tmp.fLeft = outer.fRight - dx; in FrameRect() [all …]
|
/external/skia/src/sksl/ir/ |
D | SkSLBinaryExpression.h | 27 , fRight(std::move(right)) {} in BinaryExpression() 33 *fRight); in constantPropagate() 38 fRight->hasSideEffects(); in hasSideEffects() 43 fRight->description() + ")"; in description() 48 std::unique_ptr<Expression> fRight; member
|
/external/skia/gm/ |
D | constcolorprocessor.cpp | 137 renderRect.fRight + kPad, in onDraw() 140 inputLabelBounds.offset(renderRect.fRight + kPad, -inputLabelBounds.fTop); in onDraw() 146 renderRect.fRight + kPad, in onDraw() 149 procLabelBounds.offset(renderRect.fRight + kPad, in onDraw() 160 SkScalar width = SkTMax(inputLabelBounds.fRight, procLabelBounds.fRight); in onDraw()
|
/external/skia/src/gpu/ops/ |
D | GrNonAAStrokeRectOp.cpp | 31 verts[2].set(rect.fRight - rad, rect.fTop + rad); in init_stroke_rect_strip() 32 verts[3].set(rect.fRight + rad, rect.fTop - rad); in init_stroke_rect_strip() 33 verts[4].set(rect.fRight - rad, rect.fBottom - rad); in init_stroke_rect_strip() 34 verts[5].set(rect.fRight + rad, rect.fBottom + rad); in init_stroke_rect_strip() 65 fColor, fRect.fLeft, fRect.fTop, fRect.fRight, fRect.fBottom, fStrokeWidth); in dumpInfo() 111 SkScalarFloorToScalar(bounds.fRight), in NonAAStrokeRectOp() 170 vertex[1].set(fRect.fRight, fRect.fTop); in onPrepareDraws() 171 vertex[2].set(fRect.fRight, fRect.fBottom); in onPrepareDraws()
|
D | GrAAStrokeRectOp.cpp | 20 pts->setRectFan(r.fLeft + dx, r.fTop + dy, r.fRight - dx, r.fBottom - dy, stride); in set_inset_fan() 83 devInside->fLeft = devInside->fRight = devRect.centerX(); in compute_rects() 182 info.fDevOutside.fRight, info.fDevOutside.fBottom, info.fDevOutsideAssist.fLeft, in dumpInfo() 183 info.fDevOutsideAssist.fTop, info.fDevOutsideAssist.fRight, in dumpInfo() 185 info.fDevInside.fRight, info.fDevInside.fBottom, info.fDegenerate); in dumpInfo() 452 inset = SkMinScalar(SK_Scalar1, devOutside.fRight - devInside.fRight); in generateAAStrokeRectGeometry() 491 SkASSERT(devInside.fLeft == devInside.fRight && devInside.fTop == devInside.fBottom); in generateAAStrokeRectGeometry() 492 fan2Pos->setRectFan(devInside.fLeft, devInside.fTop, devInside.fRight, in generateAAStrokeRectGeometry() 494 fan3Pos->setRectFan(devInside.fLeft, devInside.fTop, devInside.fRight, in generateAAStrokeRectGeometry() 515 SkASSERT(devInside.fLeft == devInside.fRight && devInside.fTop == devInside.fBottom); in generateAAStrokeRectGeometry() [all …]
|
/external/skia/tests/ |
D | BlitMaskClip.cpp | 21 REPORTER_ASSERT(fReporter, x >= fBounds.fLeft && x < fBounds.fRight); in blitH() 24 REPORTER_ASSERT(fReporter, right > fBounds.fLeft && right <= fBounds.fRight); in blitH() 59 for (int left = b.fLeft; left < b.fRight; left++) { in DEF_TEST() 60 for (int right = left + 1; right <= b.fRight; right++) { in DEF_TEST()
|
/external/pdfium/fpdfsdk/pdfwindow/ |
D | PWL_Utils.cpp | 598 FX_FLOAT fRight = rect.right; in GetBorderAppStream() local 613 sAppStream << fLeft << " " << fBottom << " " << fRight - fLeft << " " in GetBorderAppStream() 616 << fRight - fLeft - fWidth * 2 << " " in GetBorderAppStream() 632 sAppStream << fRight - fWidth / 2 << " " << fTop - fWidth / 2 in GetBorderAppStream() 634 sAppStream << fRight - fWidth / 2 << " " << fBottom + fWidth / 2 in GetBorderAppStream() 649 sAppStream << fRight - fHalfWidth << " " << fTop - fHalfWidth in GetBorderAppStream() 651 sAppStream << fRight - fHalfWidth * 2 << " " << fTop - fHalfWidth * 2 in GetBorderAppStream() 662 sAppStream << fRight - fHalfWidth << " " << fTop - fHalfWidth in GetBorderAppStream() 664 sAppStream << fRight - fHalfWidth << " " << fBottom + fHalfWidth in GetBorderAppStream() 670 sAppStream << fRight - fHalfWidth * 2 << " " in GetBorderAppStream() [all …]
|
/external/skia/src/sksl/ast/ |
D | SkSLASTBinaryExpression.h | 25 , fRight(std::move(right)) {} in ASTBinaryExpression() 29 fRight->description() + ")"; in description() 34 const std::unique_ptr<ASTExpression> fRight; member
|
/external/skia/src/sksl/ |
D | SkSLCompiler.cpp | 231 this->addDefinition(b->fLeft.get(), &b->fRight, definitions); in addDefinitions() 455 *target = std::move(bin.fRight); in delete_left() 466 (*iter)->expression() != &bin.fRight) { in delete_left() 486 if (!b->tryRemoveExpressionBefore(iter, bin.fRight.get())) { in delete_right() 551 vectorize(b, iter, bin.fRight->fType, &bin.fLeft, outUpdated, outNeedsRescan); in vectorize_left() 563 vectorize(b, iter, bin.fLeft->fType, &bin.fRight, outUpdated, outNeedsRescan); in vectorize_right() 643 ((bin->fRight->fType.kind() != Type::kScalar_Kind) && in simplifyExpression() 644 (bin->fRight->fType.kind() != Type::kVector_Kind))) { in simplifyExpression() 651 bin->fRight->fType.kind() == Type::kScalar_Kind) { in simplifyExpression() 663 bin->fRight->fType.kind() == Type::kVector_Kind) { in simplifyExpression() [all …]
|
/external/pdfium/xfa/fwl/theme/ |
D | cfwl_pushbuttontp.cpp | 32 FX_FLOAT fRight = rect.right(); in DrawBackground() local 38 strokePath.LineTo(CFX_PointF(fRight - PUSHBUTTON_SIZE_Corner, rect.top)); in DrawBackground() 39 strokePath.LineTo(CFX_PointF(fRight, rect.top + PUSHBUTTON_SIZE_Corner)); in DrawBackground() 40 strokePath.LineTo(CFX_PointF(fRight, fBottom - PUSHBUTTON_SIZE_Corner)); in DrawBackground() 41 strokePath.LineTo(CFX_PointF(fRight - PUSHBUTTON_SIZE_Corner, fBottom)); in DrawBackground()
|
/external/skia/src/gpu/effects/ |
D | GrTextureDomain.cpp | 51 SkASSERT(domain.fLeft <= domain.fRight); in GrTextureDomain() 53 fDomain.fLeft = SkScalarPin(domain.fLeft, 0.0f, kFullRect.fRight); in GrTextureDomain() 54 fDomain.fRight = SkScalarPin(domain.fRight, fDomain.fLeft, kFullRect.fRight); in GrTextureDomain() 57 SkASSERT(fDomain.fLeft <= fDomain.fRight); in GrTextureDomain() 173 SkScalarToFloat(textureDomain.domain().fRight * wInv), in setData() 305 domain.fRight = d->fRandom->nextRangeScalar(domain.fLeft, proxy->width()); in TestCreate() 420 subset.fRight = d->fRandom->nextRangeU(subset.fLeft, proxy->width()); in TestCreate()
|