/external/skia/include/core/ |
D | SkRect.h | 35 int32_t fBottom; //!< larger y-axis bounds member 135 constexpr int32_t bottom() const { return fBottom; } in bottom() 166 constexpr int32_t height() const { return Sk32_can_overflow_sub(fBottom, fTop); } in height() 189 constexpr int64_t height64() const { return (int64_t)fBottom - (int64_t)fTop; } in height64() 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; 258 fBottom = bottom; in setLTRB() 273 fBottom = Sk32_sat_add(y, height); in setXYWH() 280 fBottom = height; in setWH() [all …]
|
/external/skia/src/core/ |
D | SkRect.cpp | 18 std::min(a.fBottom, b.fBottom) in intersect() 29 if (r.fLeft >= r.fRight || r.fTop >= r.fBottom) { in join() 34 if (fLeft >= fRight || fTop >= fBottom) { in join() 40 if (r.fBottom > fBottom) fBottom = r.fBottom; in join() 51 quad[2].set(fRight, fBottom); 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() 133 fBottom = std::max(fBottom, r.fBottom); in join() 157 line.appendf(" %s /* %f */);", set_scalar(&tmp, fBottom, asType), fBottom); in dump() [all …]
|
D | SkScan.h | 108 xr->fBottom = SkIntToFixed(src.fBottom); in XRect_set() 119 xr->fBottom = SkScalarToFixed(src.fBottom); in XRect_set() 128 dst->fBottom = SkFixedRoundToInt(xr.fBottom); in XRect_round() 138 dst->fBottom = SkFixedCeilToInt(xr.fBottom); in XRect_roundOut()
|
D | SkLineClipper.cpp | 93 outer.fRight >= inner.fRight && outer.fBottom >= inner.fBottom; in containsNoEmptyCheck() 111 nestedLT(bounds.fBottom, clip.fTop, bounds.height()) || in IntersectLine() 112 nestedLT(clip.fBottom, bounds.fTop, bounds.height())) { in IntersectLine() 133 if (tmp[index1].fY > clip.fBottom) { in IntersectLine() 134 tmp[index1].set(sect_with_horizontal(src, clip.fBottom), clip.fBottom); in IntersectLine() 198 if (pts[index0].fY >= clip.fBottom) { // we're below the clip in ClipLine() 212 if (tmp[index1].fY > clip.fBottom) { in ClipLine() 213 tmp[index1].set(sect_with_horizontal(pts, clip.fBottom), clip.fBottom); in ClipLine()
|
D | SkEdgeClipper.cpp | 21 return bounds.fTop >= clip.fBottom || bounds.fBottom <= clip.fTop; in quick_reject() 127 if (pts[2].fY > clip.fBottom) { in chop_quad_in_Y() 128 if (chopMonoQuadAtY(pts, clip.fBottom, &t)) { in chop_quad_in_Y() 131 clamp_le(tmp[1].fY, clip.fBottom); in chop_quad_in_Y() 132 tmp[2].fY = clip.fBottom; in chop_quad_in_Y() 140 if (pts[i].fY > clip.fBottom) { in chop_quad_in_Y() 141 pts[i].fY = clip.fBottom; in chop_quad_in_Y() 154 if (pts[2].fY <= clip.fTop || pts[0].fY >= clip.fBottom) { in clipMonoQuad() 322 if (pts[3].fY > clip.fBottom) { in chop_cubic_in_Y() 324 chop_mono_cubic_at_y(pts, clip.fBottom, tmp); in chop_cubic_in_Y() [all …]
|
D | SkRectPriv.h | 47 r->fBottom = std::max(pt.fY, r->fBottom); in GrowToInclude() 54 SkFitsInFixed(r.fRight) && SkFitsInFixed(r.fBottom); in FitsInFixed() 59 SkTFitsIn<int16_t>(r.fRight) && SkTFitsIn<int16_t>(r.fBottom); in Is16Bit() 68 return SkScalarHalf(r.fBottom) - SkScalarHalf(r.fTop); in HalfHeight()
|
D | SkScan_Path.cpp | 403 shiftedClip.fBottom = SkLeftShift(shiftedClip.fBottom, shiftEdgesUp); in sk_fill_path() 421 if (rect.fBottom > stop_y) { in sk_fill_path() 422 rect.fBottom = stop_y; in sk_fill_path() 456 if (!pathContainedInClip && stop_y > shiftedClip.fBottom) { in sk_fill_path() 457 stop_y = shiftedClip.fBottom; in sk_fill_path() 485 tmp.fBottom = ir.fTop; in sk_blit_above() 497 tmp.fTop = ir.fBottom; in sk_blit_below() 498 tmp.fBottom = cr.fBottom; in sk_blit_below() 612 round_up_to_int(src.fBottom), in conservative_round_to_int() 663 sk_fill_path(path, clipPtr->getBounds(), blitter, ir.fTop, ir.fBottom, in FillPath() [all …]
|
D | SkLatticeIter.cpp | 43 && valid_divs(lattice.fYDivs, lattice.fYCount, latticeBounds.fTop, latticeBounds.fBottom); in Valid() 151 int yCountScalable = count_scalable_pixels(yDivs, yCount, yIsScalable, src.fTop, src.fBottom); in SkLatticeIter() 162 src.fTop, src.fBottom, dst.fTop, dst.fBottom, yIsScalable); in SkLatticeIter() 228 fSrcY[2] = SkIntToScalar(c.fBottom); in SkLatticeIter() 238 fDstY[2] = dst.fBottom - SkIntToScalar(h - c.fBottom); in SkLatticeIter() 239 fDstY[3] = dst.fBottom; in SkLatticeIter()
|
/external/pdfium/xfa/fwl/theme/ |
D | cfwl_checkboxtp.cpp | 83 const float fBottom = rtSign.bottom(); in DrawSignCross() local 84 path.AddLine(rtSign.TopLeft(), CFX_PointF(fRight, fBottom)); in DrawSignCross() 85 path.AddLine(CFX_PointF(rtSign.left, fBottom), in DrawSignCross() 101 const float fBottom = rtSign.bottom(); in DrawSignDiamond() local 104 path.LineTo(CFX_PointF(rtSign.left + fWidth / 2, fBottom)); in DrawSignDiamond() 130 float fBottom = rtSign.bottom(); in DrawSignStar() local 131 float fRadius = (rtSign.top - fBottom) / (1 + cosf(FXSYS_PI / 5.0f)); in DrawSignStar() 133 (rtSign.top + fBottom) / 2.0f); in DrawSignStar() 163 float fBottom = kSignPath; in EnsureCheckPathInitialized() local 164 CFX_PointF pt1(fWidth / 15.0f, fBottom + fHeight * 2 / 5.0f); in EnsureCheckPathInitialized() [all …]
|
D | cfwl_pushbuttontp.cpp | 38 float fBottom = rect.bottom(); in DrawBackground() local 45 strokePath.LineTo(CFX_PointF(fRight, fBottom - kPushbuttonSizeCorner)); in DrawBackground() 46 strokePath.LineTo(CFX_PointF(fRight - kPushbuttonSizeCorner, fBottom)); in DrawBackground() 47 strokePath.LineTo(CFX_PointF(rect.left + kPushbuttonSizeCorner, fBottom)); in DrawBackground() 48 strokePath.LineTo(CFX_PointF(rect.left, fBottom - kPushbuttonSizeCorner)); in DrawBackground()
|
/external/skia/src/pathops/ |
D | SkPathOpsRect.h | 22 double fLeft, fTop, fRight, fBottom; member 28 fBottom = std::max(fBottom, pt.fY); in add() 33 && approximately_between(fTop, pt.fY, fBottom); in contains() 40 SkASSERT(fTop <= fBottom); in intersects() 42 SkASSERT(r.fTop <= r.fBottom); in intersects() 43 return r.fLeft <= fRight && fLeft <= r.fRight && r.fTop <= fBottom && fTop <= r.fBottom; in intersects() 48 fTop = fBottom = pt.fY; in set() 56 return fBottom - fTop; in height() 80 return fLeft <= fRight && fTop <= fBottom; in valid()
|
D | SkPathOpsBounds.h | 18 && AlmostLessOrEqualUlps(a.fTop, b.fBottom) in Intersects() 19 && AlmostLessOrEqualUlps(b.fTop, a.fBottom); in Intersects() 29 if (bottom > fBottom) fBottom = bottom; in add() 33 add(toAdd.fLeft, toAdd.fTop, toAdd.fRight, toAdd.fBottom); in add() 40 if (pt.fY > fBottom) fBottom = pt.fY; in add() 47 if (pt.fY > fBottom) fBottom = SkDoubleToScalar(pt.fY); in add() 54 && AlmostLessOrEqualUlps(pt.fY, fBottom); in almostContains() 59 fRight >= pt.fX && fBottom >= pt.fY; in contains()
|
/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() 81 if (srcRect->fBottom > srcSize.height()) { in GrClipSrcRectAndDstPoint() 82 srcRect->fBottom = srcSize.height(); in GrClipSrcRectAndDstPoint() 85 srcRect->fBottom = srcRect->fTop + dstSize.height() - dstPoint->fY; in GrClipSrcRectAndDstPoint()
|
D | GrTriangulator.cpp | 255 fTop->fID, fBottom->fID, other.fTop->fID, other.fBottom->fID); in intersect() 256 if (fTop == other.fTop || fBottom == other.fBottom || in intersect() 257 fTop == other.fBottom || fBottom == other.fTop) { in intersect() 265 fLine, fTop->fPoint, fBottom->fPoint, in intersect() 266 other.fLine, other.fTop->fPoint, other.fBottom->fPoint, in intersect() 285 *alpha = std::max((1.0 - s) * fTop->fAlpha + s * fBottom->fAlpha, in intersect() 286 (1.0 - t) * other.fTop->fAlpha + t * other.fBottom->fAlpha); in intersect() 297 TESS_LOG("removing edge %g -> %g\n", edge->fTop->fID, edge->fBottom->fID); in remove() 325 vertices.append(e->fBottom); in emitMonotonePoly() 328 vertices.prepend(e->fBottom); in emitMonotonePoly() [all …]
|
/external/skia/docs/examples/ |
D | Canvas_drawRRect.cpp | 12 rRect.setNinePatch(outer, radii.fLeft, radii.fTop, radii.fRight, radii.fBottom); in draw() 16 outer.fLeft + radii.fLeft, outer.fBottom, paint); in draw() 18 outer.fRight - radii.fRight, outer.fBottom, paint); in draw() 21 canvas->drawLine(outer.fLeft, outer.fBottom - radii.fBottom, 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() 12 negZero.fLeft, negZero.fTop, negZero.fRight, negZero.fBottom, in draw() 14 test.fRight == negZero.fRight && test.fBottom == negZero.fBottom) ? in draw()
|
D | RRect_Corner.cpp | 17 canvas->drawLine(r.fLeft, r.fBottom - rrect.radii(SkRRect::kLowerLeft_Corner).fY, in draw() 18 r.fRight, r.fBottom - rrect.radii(SkRRect::kLowerRight_Corner).fY, paint); in draw() 20 r.fLeft + rrect.radii(SkRRect::kLowerLeft_Corner).fX, r.fBottom, paint); in draw() 22 r.fRight - rrect.radii(SkRRect::kLowerRight_Corner).fX, r.fBottom, paint); in draw()
|
D | RRect_setNinePatch.cpp | 16 canvas->drawLine(r.fLeft, r.fBottom - rrect.radii(SkRRect::kLowerLeft_Corner).fY, in draw() 17 r.fRight, r.fBottom - rrect.radii(SkRRect::kLowerRight_Corner).fY, paint); in draw() 19 r.fLeft + rrect.radii(SkRRect::kLowerLeft_Corner).fX, r.fBottom, paint); in draw() 21 r.fRight - rrect.radii(SkRRect::kLowerRight_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()
|
D | Canvas_getDeviceClipBounds.cpp | 11 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/ |
D | M44Test.cpp | 249 SkV2 br = map2d(m, {src.fRight, src.fBottom}); in DEF_TEST() 250 SkV2 bl = map2d(m, {src.fLeft, src.fBottom}); in DEF_TEST() 254 assertEdges(tl.y, bl.y, dst.fTop, dst.fBottom); in DEF_TEST() 255 assertEdges(tr.y, br.y, dst.fTop, dst.fBottom); in DEF_TEST() 268 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(actual.fBottom, expected.fBottom, e.fBottom), in DEF_TEST() 269 "Expected %g == %g", actual.fBottom, expected.fBottom); in DEF_TEST() 283 {src.fRight, src.fBottom, 0.f, 1.f}, in DEF_TEST() 284 {src.fLeft, src.fBottom, 0.f, 1.f}}; in DEF_TEST() 301 REPORTER_ASSERT(reporter, actual.fTop <= y && y <= actual.fBottom, in DEF_TEST() 303 y, actual.fTop, actual.fBottom); in DEF_TEST() [all …]
|
/external/pdfium/core/fpdfdoc/ |
D | cpdf_iconfit.cpp | 49 float fBottom = kDefaultPosition; in GetIconBottomLeftPosition() local 51 return {fLeft, fBottom}; in GetIconBottomLeftPosition() 55 return {fLeft, fBottom}; in GetIconBottomLeftPosition() 61 fBottom = pA->GetFloatAt(1); in GetIconBottomLeftPosition() 62 return {fLeft, fBottom}; in GetIconBottomLeftPosition()
|
/external/skia/gm/ |
D | crop_imagefilter.cpp | 247 2.f * (kExampleBounds.fBottom + 1.f)}; 256 canvas->translate(tx * (kExampleBounds.fRight + 1.f), ty * (kExampleBounds.fBottom + 1.f)); in draw_example_tile() 279 {kPaddedTileBounds.centerX() - 0.5f, kPaddedTileBounds.fBottom - 0.5f}, in draw_example_tile() 288 5.f * kPaddedTileBounds.fBottom - 1.f}; 304 canvas->translate(0.f, kPaddedTileBounds.fBottom); in draw_example_column() 334 canvas->drawLine({0.5f, y * kPaddedTileBounds.fBottom - 0.5f}, in draw_example_grid() 335 {kGridWidth - 0.5f, y * kPaddedTileBounds.fBottom - 0.5f}, dashedLine); in draw_example_grid() 339 {x * kPaddedTileBounds.fRight - 0.5f, kPaddedColumnBounds.fBottom - 0.5f}, in draw_example_grid() 354 return {SkScalarRoundToInt(kGridWidth), SkScalarRoundToInt(kPaddedColumnBounds.fBottom)}; in onISize()
|
/external/skia/src/gpu/ganesh/ops/ |
D | StrokeRectOp.cpp | 71 verts[4].set(rect.fRight - rad, rect.fBottom - rad); in init_nonaa_stroke_rect_strip() 72 verts[5].set(rect.fRight + rad, rect.fBottom + rad); in init_nonaa_stroke_rect_strip() 73 verts[6].set(rect.fLeft + rad, rect.fBottom - rad); in init_nonaa_stroke_rect_strip() 74 verts[7].set(rect.fLeft - rad, rect.fBottom + rad); in init_nonaa_stroke_rect_strip() 153 SkScalarFloorToScalar(bounds.fBottom)); in NonAAStrokeRectOp() 232 vertex[2].set(fRect.fRight, fRect.fBottom); in onPrepareDraws() 233 vertex[3].set(fRect.fLeft, fRect.fBottom); in onPrepareDraws() 256 fRect.fBottom, fStrokeWidth, fHelper.dumpInfo().c_str()); in onDumpInfo() 354 devInside->fTop = devInside->fBottom = devRect.centerY(); in compute_aa_rects() 539 info.fDevOutside.fRight, info.fDevOutside.fBottom, info.fDevOutsideAssist.fLeft, in onDumpInfo() [all …]
|