/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/gl/ |
D | GrGLNameAllocator.cpp | 130 fRight(right) { in SparseNameTree() 132 SkASSERT(fRight.get()); in SparseNameTree() 144 if (fLeft->end() + 1 == fRight->first()) { in internalAllocate() 147 fRight.reset(fRight->removeLeftmostContiguousRange(&removedCount)); in internalAllocate() 149 if (NULL == fRight.get()) { in internalAllocate() 158 SkASSERT(fLeft->end() + 1 < fRight->first()); in internalAllocate() 166 return fRight.detach(); in removeLeftmostContiguousRange() 174 GrGLuint name = fRight->appendNames(count); in appendNames() 175 SkASSERT(fRight->end() == fEnd + count); in appendNames() 193 return fRight.detach(); in free() [all …]
|
/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() 28 if (fLeft > fRight) { in intersects() 31 SkASSERT(fLeft <= fRight); in intersects() 33 SkASSERT(r.fLeft <= r.fRight); in intersects() 35 return r.fLeft <= fRight && fLeft <= r.fRight && r.fTop <= fBottom && fTop <= r.fBottom; in intersects() 39 fLeft = fRight = pt.fX; in set() 44 return fRight - fLeft; in width()
|
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 = SkDoubleToScalar(pt.fX); in add() 45 && AlmostLessOrEqualUlps(pt.fX, fRight) in almostContains()
|
D | SkPathOpsCurve.cpp | 18 SkDoubleToScalar(dRect.fRight), SkDoubleToScalar(dRect.fBottom)); in setConicBounds() 28 SkDoubleToScalar(dRect.fRight), SkDoubleToScalar(dRect.fBottom)); in setCubicBounds() 38 SkDoubleToScalar(dRect.fRight), SkDoubleToScalar(dRect.fBottom)); in setQuadBounds()
|
/external/skia/src/core/ |
D | SkRect.cpp | 18 if (fLeft >= fRight || fTop >= fBottom) { in join() 23 if (right > fRight) fRight = right; in join() 29 if (fLeft > fRight) { in sort() 30 SkTSwap<int32_t>(fLeft, fRight); in sort() 43 quad[1].set(fRight, fTop); in toQuad() 44 quad[2].set(fRight, fBottom); in toQuad() 114 CHECK_INTERSECT(left, top, right, bottom, fLeft, fTop, fRight, fBottom); in intersect() 120 return this->intersect(r.fLeft, r.fTop, r.fRight, r.fBottom); in intersect() 124 CHECK_INTERSECT(a.fLeft, a.fTop, a.fRight, a.fBottom, b.fLeft, b.fTop, b.fRight, b.fBottom); in intersect() 136 if (fLeft >= fRight || fTop >= fBottom) { in join() [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() 244 } else if (tmp[index0].fX >= clip.fRight) { // wholly to the right in ClipLine() 248 tmp[0].fX = tmp[1].fX = clip.fRight; in ClipLine() 265 if (tmp[index1].fX > clip.fRight) { in ClipLine() 266 r->set(clip.fRight, sect_with_vertical(tmp, clip.fRight)); in ClipLine() [all …]
|
D | SkScan.h | 87 xr->fRight = SkIntToFixed(src.fRight); in XRect_set() 98 xr->fRight = SkScalarToFixed(src.fRight); in XRect_set() 107 dst->fRight = SkFixedRoundToInt(xr.fRight); in XRect_round() 117 dst->fRight = SkFixedCeilToInt(xr.fRight); in XRect_roundOut()
|
D | SkEdgeClipper.cpp | 150 if (pts[0].fX >= clip.fRight) { // wholly to the right in clipMonoQuad() 152 this->appendVLine(clip.fRight, pts[0].fY, pts[2].fY, reverse); in clipMonoQuad() 180 if (pts[2].fX > clip.fRight) { in clipMonoQuad() 181 if (chopMonoQuadAtX(pts, clip.fRight, &t)) { in clipMonoQuad() 184 clamp_le(tmp[1].fX, clip.fRight); in clipMonoQuad() 185 tmp[2].fX = clip.fRight; in clipMonoQuad() 188 this->appendVLine(clip.fRight, tmp[2].fY, tmp[4].fY, reverse); in clipMonoQuad() 192 this->appendVLine(clip.fRight, pts[0].fY, pts[2].fY, reverse); in clipMonoQuad() 298 if (pts[0].fX >= clip.fRight) { // wholly to the right in clipMonoCubic() 300 this->appendVLine(clip.fRight, pts[0].fY, pts[3].fY, reverse); in clipMonoCubic() [all …]
|
D | SkBlitBWMaskTemplate.h | 28 SkASSERT(clip.fRight <= srcMask.fBounds.fRight); in SK_BLITBWMASK_NAME() 44 if (cx == maskLeft && clip.fRight == srcMask.fBounds.fRight) in SK_BLITBWMASK_NAME() 61 int rite_edge = clip.fRight - maskLeft; in SK_BLITBWMASK_NAME()
|
D | SkRegion.cpp | 155 return this->setRect(r.fLeft, r.fTop, r.fRight, r.fBottom); in setRect() 204 count += sprintf(result+count, "(%d,%d,%d,%d)", r.fLeft, r.fTop, r.fRight, r.fBottom); in toString() 306 runs[4] = bounds.fRight; in BuildRectRuns() 382 if (!scanline_contains(scanline, r.fLeft, r.fRight)) { in contains() 467 if (scanline_intersects(scanline, sect.fLeft, sect.fRight)) { in intersects() 543 fBounds.fRight + dx, fBounds.fBottom + dy); in translate() 1224 bounds->fRight = rite; in compute_bounds() 1235 … SkASSERT(fBounds.fLeft == 0 && fBounds.fTop == 0 && fBounds.fRight == 0 && fBounds.fBottom == 0); in validate() 1264 … SkDebugf(" rgn: [%d %d %d %d]", fBounds.fLeft, fBounds.fTop, fBounds.fRight, fBounds.fBottom); in dump() 1322 fRect.fRight = runs[1]; in next() [all …]
|
D | SkScan_Antihair.cpp | 376 if (istart >= clip->fRight || istop <= clip->fLeft) { in do_anti_hairline() 389 if (istop > clip->fRight) { in do_anti_hairline() 390 istop = clip->fRight; in do_anti_hairline() 487 if (left >= clip->fRight || right <= clip->fLeft) { in do_anti_hairline() 490 if (clip->fLeft <= left && clip->fRight >= right) { in do_anti_hairline() 607 pts[1].set(rect.fRight, rect.fTop); in AntiHairRect() 608 pts[2].set(rect.fRight, rect.fBottom); in AntiHairRect() 694 SkFixedToFDot8(xr.fRight), SkFixedToFDot8(xr.fBottom), in antifillrect() 925 FDot8 outerR = SkScalarToFDot8(r.fRight + rx); in AntiFrameRect() 950 FDot8 innerR = SkScalarToFDot8(r.fRight - rx); in AntiFrameRect() [all …]
|
/external/skia/include/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()
|
/external/skia/src/gpu/ |
D | GrReorderCommandBuilder.cpp | 11 SkASSERT(a.fLeft <= a.fRight && a.fTop <= a.fBottom && in intersect() 12 b.fLeft <= b.fRight && b.fTop <= b.fBottom); in intersect() 13 return a.fLeft < b.fRight && b.fLeft < a.fRight && in intersect()
|
D | GrSoftwarePathRenderer.cpp | 96 devClipBounds.fRight, devPathBounds.fTop); in draw_around_inv_path() 104 if (devClipBounds.fRight > devPathBounds.fRight) { in draw_around_inv_path() 105 rect.iset(devPathBounds.fRight, devPathBounds.fTop, in draw_around_inv_path() 106 devClipBounds.fRight, devPathBounds.fBottom); in draw_around_inv_path() 111 devClipBounds.fRight, devClipBounds.fBottom); in draw_around_inv_path()
|
/external/skia/src/utils/ |
D | SkNinePatch.cpp | 92 verts->set(bounds.fRight, vy); verts++; in fillRow() 258 0, margins.fLeft, bitmap.width() - margins.fRight, bitmap.width() in drawNineViaRects() 265 dst.fRight - SkIntToScalar(margins.fRight), dst.fRight in drawNineViaRects() 274 (SkIntToScalar(margins.fLeft) + SkIntToScalar(margins.fRight)); in drawNineViaRects() 293 s.fRight = srcX[x+1]; in drawNineViaRects() 295 d.fRight = dstX[x+1]; in drawNineViaRects() 315 xDivs[1] = bitmap.width() - margins.fRight; in DrawNine() 321 (margins.fLeft + margins.fRight); in DrawNine()
|
D | SkCullPoints.cpp | 22 (x0 > r.fRight && x1 > r.fRight) || in sect_test() 51 quad[1].set(r.fRight, r.fTop); in toQuad() 52 quad[2].set(r.fRight, r.fBottom); in toQuad() 197 iTarget.fRight = iTarget.fLeft + 1; in SkHitTestPath()
|
/external/skia/gm/ |
D | constcolorprocessor.cpp | 144 renderRect.fRight + kPad, in onDraw() 147 inputLabelBounds.offset(renderRect.fRight + kPad, -inputLabelBounds.fTop); in onDraw() 153 renderRect.fRight + kPad, in onDraw() 156 procLabelBounds.offset(renderRect.fRight + kPad, in onDraw() 167 SkScalar width = SkTMax(inputLabelBounds.fRight, procLabelBounds.fRight); in onDraw()
|
/external/skia/src/animator/ |
D | SkBoundable.cpp | 17 fBounds.fRight = 0; in SkBoundable() 33 rect->fRight = SkIntToScalar(fBounds.fRight); in getBounds()
|
D | SkDrawRectangle.cpp | 30 SK_MEMBER_ALIAS(right, fRect.fRight, Float), 58 SkScalarToFloat(fRect.fLeft), SkScalarToFloat(fRect.fTop), SkScalarToFloat(fRect.fRight), in dump() 106 fRect.fRight = scalar + fRect.fLeft; in setProperty() 139 … SkScalarToFloat(fRect.fLeft), SkScalarToFloat(fRect.fTop), SkScalarToFloat(fRect.fRight), in dump()
|
/external/skia/src/gpu/effects/ |
D | GrTextureDomain.cpp | 29 SkASSERT(domain.fLeft <= domain.fRight); in GrTextureDomain() 31 fDomain.fLeft = SkScalarPin(domain.fLeft, kFullRect.fLeft, kFullRect.fRight); in GrTextureDomain() 32 fDomain.fRight = SkScalarPin(domain.fRight, kFullRect.fLeft, kFullRect.fRight); in GrTextureDomain() 35 SkASSERT(fDomain.fLeft <= fDomain.fRight); in GrTextureDomain() 297 domain.fRight = random->nextRangeScalar(domain.fLeft, SK_Scalar1); in TestCreate()
|
/external/skia/src/views/animated/ |
D | SkBorderView.cpp | 16 fRight(SkIntToScalar(0)), in SkBorderView() 74 evt.findScalar("rightMargin", &fRight); in onEvent() 81 fMargin.set(fLeft, fTop, fRight, fBottom); in onEvent()
|
/external/skia/bench/ |
D | RTreeBench.cpp | 86 query.fRight = query.fLeft + 1 + rand.nextRangeF(0, GENERATE_EXTENTS/2); in onDraw() 102 out.fRight = out.fLeft + 1 + rand.nextRangeF(0, GENERATE_EXTENTS/3); in make_XYordered_rects() 110 out.fRight = out.fLeft + 1 + rand.nextRangeF(0, GENERATE_EXTENTS/3); in make_YXordered_rects() 119 out.fRight = out.fLeft + 1 + rand.nextRangeF(0, GENERATE_EXTENTS/5); in make_random_rects()
|
/external/skia/src/svg/parser/ |
D | SkSVGSVG.cpp | 49 box.fRight == SK_Scalar1 && box.fBottom == SK_Scalar1) in translate() 62 if (box.fRight != SK_Scalar1) { in translate() 64 x.appendScalar(box.fRight); in translate()
|
/external/pdfium/fpdfsdk/src/pdfwindow/ |
D | PWL_ListCtrl.cpp | 79 FX_FLOAT fRight = pChild->GetItemRightMargin(); in GetContentsHeight() local 81 fRet += pChild->GetItemHeight(fLimitWidth - fBorderWidth* 2 - fLeft - fRight); in GetContentsHeight() 111 FX_FLOAT fRight = pChild->GetItemRightMargin(); in ResetAll() local 121 FX_FLOAT fItemHeight = pChild->GetItemHeight(fWidth - fLeft - fRight); in ResetAll() 122 pChild->Move(CPDF_Rect(fLeft, fy-fItemHeight, fWidth - fRight, fy), TRUE, FALSE); in ResetAll()
|