/external/skia/include/core/ |
D | SkRect.h | 21 int32_t fLeft, fTop, fRight, fBottom; member 60 int top() const { return fTop; } in top() 67 int y() const { return fTop; } in y() 78 int height() const { return fBottom - fTop; } in height() 98 int centerY() const { return (fBottom + fTop) >> 1; } in centerY() 103 bool isEmpty() const { return fLeft >= fRight || fTop >= fBottom; } in isEmpty() 106 SK_MinS32 == fTop && in isLargest() 119 return SkIsS16(fLeft) && SkIsS16(fTop) && in is16Bit() 129 fTop = top; in set() 140 fTop = y; in setXYWH() [all …]
|
D | SkMask.h | 63 return fImage + ((x - fBounds.fLeft) >> 3) + (y - fBounds.fTop) * fRowBytes; in getAddr1() 74 return fImage + x - fBounds.fLeft + (y - fBounds.fTop) * fRowBytes; in getAddr8() 86 uint16_t* row = (uint16_t*)(fImage + (y - fBounds.fTop) * fRowBytes); in getAddrLCD16() 99 uint32_t* row = (uint32_t*)(fImage + (y - fBounds.fTop) * fRowBytes); in getAddr32()
|
/external/skia/src/core/ |
D | SkRect.cpp | 18 if (fLeft >= fRight || fTop >= fBottom) { in join() 22 if (top < fTop) fTop = top; in join() 32 if (fTop > fBottom) { in sort() 33 SkTSwap<int32_t>(fTop, fBottom); in sort() 42 quad[0].set(fLeft, fTop); in toQuad() 43 quad[1].set(fRight, fTop); 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 | SkScan.h | 90 xr->fTop = SkIntToFixed(src.fTop); in XRect_set() 101 xr->fTop = SkScalarToFixed(src.fTop); in XRect_set() 110 dst->fTop = SkFixedRoundToInt(xr.fTop); in XRect_round() 120 dst->fTop = SkFixedFloorToInt(xr.fTop); in XRect_roundOut()
|
D | SkLineClipper.cpp | 73 return outer.fLeft <= inner.fLeft && outer.fTop <= inner.fTop && in containsNoEmptyCheck() 92 nestedLT(bounds.fBottom, clip.fTop, bounds.height()) || in IntersectLine() 93 nestedLT(clip.fBottom, bounds.fTop, bounds.height())) { in IntersectLine() 111 if (tmp[index0].fY < clip.fTop) { in IntersectLine() 112 tmp[index0].set(sect_with_horizontal(src, clip.fTop), clip.fTop); in IntersectLine() 200 if (pts[index1].fY <= clip.fTop) { // we're above the clip in ClipLine() 213 if (pts[index0].fY < clip.fTop) { in ClipLine() 214 tmp[index0].set(sect_with_horizontal(pts, clip.fTop), clip.fTop); in ClipLine()
|
D | SkScan_AntiPath.cpp | 70 int fTop; member in BaseSuperBlitter 96 fTop = sectBounds.top(); in BaseSuperBlitter() 97 fCurrIY = fTop - 1; in BaseSuperBlitter() 98 fCurrY = SkLeftShift(fTop, SHIFT) - 1; in BaseSuperBlitter() 165 if (fCurrIY >= fTop) { in flush() 175 fCurrIY = fTop - 1; in flush() 531 SkASSERT(iy >= fMask.fBounds.fTop && iy < fMask.fBounds.fBottom); in blitH() 532 iy -= fMask.fBounds.fTop; // make it relative to 0 in blitH() 589 return r.fLeft > min && r.fTop > min && in fitsInsideLimit() 612 overflows_short_shift(rect.fTop, SHIFT) | in rect_overflows_short_shift() [all …]
|
D | SkNinePatchIter.cpp | 24 fSrcY[1] = SkIntToScalar(c.fTop); in SkNinePatchIter() 33 fDstY[0] = dst.fTop; in SkNinePatchIter() 34 fDstY[1] = dst.fTop + SkIntToScalar(c.fTop); in SkNinePatchIter() 44 fDstY[1] = fDstY[0] + (fDstY[3] - fDstY[0]) * c.fTop / (h - c.height()); in SkNinePatchIter()
|
D | SkEdgeClipper.cpp | 14 return bounds.fTop >= clip.fBottom || bounds.fBottom <= clip.fTop; in quick_reject() 81 if (pts[0].fY < clip.fTop) { in chop_quad_in_Y() 82 if (chopMonoQuadAtY(pts, clip.fTop, &t)) { in chop_quad_in_Y() 86 tmp[2].fY = clip.fTop; in chop_quad_in_Y() 87 clamp_ge(tmp[3].fY, clip.fTop); in chop_quad_in_Y() 95 if (pts[i].fY < clip.fTop) { in chop_quad_in_Y() 96 pts[i].fY = clip.fTop; in chop_quad_in_Y() 130 if (pts[2].fY <= clip.fTop || pts[0].fY >= clip.fBottom) { in clipMonoQuad() 264 if (pts[0].fY < clip.fTop) { in chop_cubic_in_Y() 266 chop_mono_cubic_at_y(pts, clip.fTop, tmp); in chop_cubic_in_Y() [all …]
|
D | SkScan_Hairline.cpp | 87 clipR.set(SkIntToFDot6(bounds.fLeft), SkIntToFDot6(bounds.fTop), in HairLineRgn() 153 SkScalarToFixed(rect.fTop) >> 16, in HairRect() 179 blitter->blitRect(r.fLeft, r.fTop, width, height); in HairRect() 183 blitter->blitH(r.fLeft, r.fTop, width); // top in HairRect() 184 blitter->blitRect(r.fLeft, r.fTop + 1, 1, height - 2); // left in HairRect() 185 blitter->blitRect(r.fRight - 1, r.fTop + 1, 1, height - 2); // right in HairRect() 333 return r.fLeft > r.fRight || r.fTop > r.fBottom; in is_inverted() 341 a.fTop < b.fBottom && b.fTop < a.fBottom; in geometric_overlap() 349 inner.fBottom <= outer.fBottom && inner.fTop >= outer.fTop; in geometric_contains() 628 outer.set(r.fLeft - rx, r.fTop - ry, in FrameRect() [all …]
|
D | SkScan_Path.cpp | 452 if (rect.fTop < start_y) { in sk_fill_path() 453 rect.fTop = start_y; in sk_fill_path() 460 rect.fTop << shiftEdgesUp, in sk_fill_path() 487 if (clipRect && start_y < clipRect->fTop) { in sk_fill_path() 488 start_y = clipRect->fTop; in sk_fill_path() 524 tmp.fTop = cr.fTop; in sk_blit_above() 525 tmp.fBottom = ir.fTop; in sk_blit_above() 537 tmp.fTop = ir.fBottom; in sk_blit_below() 626 dst->set(round_down_to_int(src.fLeft), round_down_to_int(src.fTop), in round_asymmetric_to_int() 670 sk_fill_path(path, clipper.getClipRect(), blitter, ir.fTop, ir.fBottom, in FillPath() [all …]
|
/external/skia/src/pathops/ |
D | SkPathOpsRect.h | 13 double fLeft, fTop, fRight, fBottom; member 17 fTop = SkTMin(fTop, pt.fY); in add() 24 && approximately_between(fTop, pt.fY, fBottom); in contains() 31 SkASSERT(fTop <= fBottom); in intersects() 33 SkASSERT(r.fTop <= r.fBottom); in intersects() 34 return r.fLeft <= fRight && fLeft <= r.fRight && r.fTop <= fBottom && fTop <= r.fBottom; in intersects() 39 fTop = fBottom = pt.fY; in set() 47 return fBottom - fTop; in height()
|
D | SkPathOpsBounds.h | 18 && AlmostLessOrEqualUlps(a.fTop, b.fBottom) in Intersects() 19 && AlmostLessOrEqualUlps(b.fTop, a.fBottom); in Intersects() 27 if (top < fTop) fTop = top; in add() 33 add(toAdd.fLeft, toAdd.fTop, toAdd.fRight, toAdd.fBottom); in add() 38 if (pt.fY < fTop) fTop = SkDoubleToScalar(pt.fY); in add() 46 && AlmostLessOrEqualUlps(fTop, pt.fY) in almostContains()
|
D | SkPathOpsCurve.cpp | 17 bounds->set(SkDoubleToScalar(dRect.fLeft), SkDoubleToScalar(dRect.fTop), in setConicBounds() 27 bounds->set(SkDoubleToScalar(dRect.fLeft), SkDoubleToScalar(dRect.fTop), in setCubicBounds() 37 bounds->set(SkDoubleToScalar(dRect.fLeft), SkDoubleToScalar(dRect.fTop), in setQuadBounds()
|
/external/skia/src/gpu/ |
D | GrTessellator.cpp | 234 , fTop(top) in Edge() 247 Vertex* fTop; // The top vertex in vertex-sort-order (sweep_lt). member 270 fDX = static_cast<double>(fBottom->fPoint.fX) - fTop->fPoint.fX; in recompute() 271 fDY = static_cast<double>(fBottom->fPoint.fY) - fTop->fPoint.fY; in recompute() 272 fC = static_cast<double>(fTop->fPoint.fY) * fBottom->fPoint.fX - in recompute() 273 static_cast<double>(fTop->fPoint.fX) * fBottom->fPoint.fY; in recompute() 277 fTop->fID, fBottom->fID, in intersect() 278 other.fTop->fID, other.fBottom->fID); in intersect() 279 if (fTop == other.fTop || fBottom == other.fBottom) { in intersect() 286 double dx = static_cast<double>(fTop->fPoint.fX) - other.fTop->fPoint.fX; in intersect() [all …]
|
D | GrRect.h | 15 int16_t fLeft, fTop, fRight, fBottom; member 36 int height() const { return fBottom - fTop; } in height() 38 bool isEmpty() const { return fLeft >= fRight || fTop >= fBottom; } in isEmpty() 44 fTop = top; in set() 51 fTop = SkToS16(r.fTop); in set()
|
D | GrTextureParamsAdjuster.cpp | 88 domain.fTop = (subset->fTop + 0.5f)* sy; in copy_on_gpu() 108 localRect.fTop *= sy; in copy_on_gpu() 131 if (contentArea.fLeft > 0 || contentArea.fTop > 0 || in GrTextureAdjuster() 273 domainRect->fTop = constraintRect.fTop + kDomainInset; in determine_domain_mode() 292 if (textureContentArea->fTop > 0 && in determine_domain_mode() 293 textureContentArea->fTop + filterHalfWidth > constraintRect.fTop) { in determine_domain_mode() 294 domainRect->fTop = textureContentArea->fTop + kDomainInset; in determine_domain_mode() 316 if (textureContentArea->fTop != 0) { in determine_domain_mode() 317 domainRect->fTop = textureContentArea->fTop + kDomainInset; in determine_domain_mode() 333 if (domainRect->fTop > domainRect->fBottom) { in determine_domain_mode() [all …]
|
D | GrSoftwarePathRenderer.cpp | 92 if (devClipBounds.fTop < devPathBounds.fTop) { in draw_around_inv_path() 93 rect.iset(devClipBounds.fLeft, devClipBounds.fTop, in draw_around_inv_path() 94 devClipBounds.fRight, devPathBounds.fTop); in draw_around_inv_path() 98 rect.iset(devClipBounds.fLeft, devPathBounds.fTop, in draw_around_inv_path() 103 rect.iset(devPathBounds.fRight, devPathBounds.fTop, in draw_around_inv_path()
|
/external/pdfium/xfa/src/fwl/src/theme/ |
D | widgettp.cpp | 300 FX_FLOAT fTop = pRect->top; in Draw3DRect() local 308 pathLT.LineTo(fLeft, fTop); in Draw3DRect() 309 pathLT.LineTo(fRight - fHalfWidth, fTop); in Draw3DRect() 310 pathLT.LineTo(fRight - fHalfWidth, fTop + fHalfWidth); in Draw3DRect() 311 pathLT.LineTo(fLeft + fHalfWidth, fTop + fHalfWidth); in Draw3DRect() 319 pathLT.LineTo(fLeft + fHalfWidth, fTop + fHalfWidth); in Draw3DRect() 320 pathLT.LineTo(fRight - fWidth, fTop + fHalfWidth); in Draw3DRect() 321 pathLT.LineTo(fRight - fWidth, fTop + fWidth); in Draw3DRect() 322 pathLT.LineTo(fLeft + fWidth, fTop + fWidth); in Draw3DRect() 330 pathRB.MoveTo(fRight - fHalfWidth, fTop + fHalfWidth); in Draw3DRect() [all …]
|
/external/skia/bench/ |
D | RTreeBench.cpp | 85 query.fTop = rand.nextRangeF(0, GENERATE_EXTENTS); in onDraw() 87 query.fBottom = query.fTop + 1 + rand.nextRangeF(0, GENERATE_EXTENTS/2); in onDraw() 101 out.fTop = SkIntToScalar(index / GRID_WIDTH); in make_XYordered_rects() 103 out.fBottom = out.fTop + 1 + rand.nextRangeF(0, GENERATE_EXTENTS/3); in make_XYordered_rects() 109 out.fTop = SkIntToScalar(index % GRID_WIDTH); in make_YXordered_rects() 111 out.fBottom = out.fTop + 1 + rand.nextRangeF(0, GENERATE_EXTENTS/3); in make_YXordered_rects() 118 out.fTop = rand.nextRangeF(0, GENERATE_EXTENTS); in make_random_rects() 120 out.fBottom = out.fTop + 1 + rand.nextRangeF(0, GENERATE_EXTENTS/5); in make_random_rects()
|
/external/skia/src/gpu/batches/ |
D | GrCopySurfaceBatch.cpp | 32 if (clippedSrcRect->fTop < 0) { in ClipSrcRectAndDstPoint() 33 clippedDstPoint->fY -= clippedSrcRect->fTop; in ClipSrcRectAndDstPoint() 34 clippedSrcRect->fTop = 0; in ClipSrcRectAndDstPoint() 37 clippedSrcRect->fTop -= clippedDstPoint->fY; in ClipSrcRectAndDstPoint() 54 clippedSrcRect->fBottom = clippedSrcRect->fTop + dst->height() - clippedDstPoint->fY; in ClipSrcRectAndDstPoint()
|
D | GrNonAAStrokeRectBatch.cpp | 28 verts[0].set(rect.fLeft + rad, rect.fTop + rad); in init_stroke_rect_strip() 29 verts[1].set(rect.fLeft - rad, rect.fTop - rad); in init_stroke_rect_strip() 30 verts[2].set(rect.fRight - rad, rect.fTop + rad); in init_stroke_rect_strip() 31 verts[3].set(rect.fRight + rad, rect.fTop - rad); in init_stroke_rect_strip() 153 vertex[0].set(args.fRect.fLeft, args.fRect.fTop); in onPrepareDraws() 154 vertex[1].set(args.fRect.fRight, args.fRect.fTop); in onPrepareDraws() 157 vertex[4].set(args.fRect.fLeft, args.fRect.fTop); in onPrepareDraws()
|
/external/skia/src/utils/ |
D | SkNinePatch.cpp | 211 SkScalar vy = bounds.fTop; in DrawMesh() 261 0, margins.fTop, bitmap.height() - margins.fBottom, bitmap.height() in drawNineViaRects() 268 dst.fTop, dst.fTop + SkIntToScalar(margins.fTop), in drawNineViaRects() 279 dstY[1] = dstY[0] + (dstY[3] - dstY[0]) * SkIntToScalar(margins.fTop) / in drawNineViaRects() 280 (SkIntToScalar(margins.fTop) + SkIntToScalar(margins.fBottom)); in drawNineViaRects() 287 s.fTop = srcY[y]; in drawNineViaRects() 289 d.fTop = dstY[y]; in drawNineViaRects() 316 yDivs[0] = margins.fTop; in DrawNine() 325 yDivs[0] = bitmap.height() * margins.fTop / in DrawNine() 326 (margins.fTop + margins.fBottom); in DrawNine()
|
/external/skia/src/effects/ |
D | SkPictureImageFilter.cpp | 121 offset->fY = bounds.fTop; in onFilterImageDeprecated() 130 canvas.translate(-SkIntToScalar(deviceBounds.fLeft), -SkIntToScalar(deviceBounds.fTop)); in drawPictureAtDeviceResolution() 152 localCanvas.translate(-SkIntToScalar(localIBounds.fLeft), -SkIntToScalar(localIBounds.fTop)); in drawPictureAtLocalResolution() 157 canvas.translate(-SkIntToScalar(deviceBounds.fLeft), -SkIntToScalar(deviceBounds.fTop)); in drawPictureAtLocalResolution() 162 SkIntToScalar(localIBounds.fTop), &paint); in drawPictureAtLocalResolution() 169 fCropRect.fLeft, fCropRect.fTop, fCropRect.fRight, fCropRect.fBottom); in toString() 172 fPicture->cullRect().fLeft, fPicture->cullRect().fTop, in toString()
|
/external/skia/src/animator/ |
D | SkBoundable.cpp | 16 fBounds.fTop = 0; in SkBoundable() 32 rect->fTop = SkIntToScalar(fBounds.fTop); in getBounds()
|
/external/skia/src/gpu/effects/ |
D | GrTextureDomain.cpp | 34 SkASSERT(domain.fTop <= domain.fBottom); in GrTextureDomain() 37 fDomain.fTop = SkScalarPin(domain.fTop, kFullRect.fTop, kFullRect.fBottom); in GrTextureDomain() 38 fDomain.fBottom = SkScalarPin(domain.fBottom, kFullRect.fTop, kFullRect.fBottom); in GrTextureDomain() 40 SkASSERT(fDomain.fTop <= fDomain.fBottom); in GrTextureDomain() 289 domain.fTop = d->fRandom->nextUScalar1(); in TestCreate() 290 domain.fBottom = d->fRandom->nextRangeScalar(domain.fTop, SK_Scalar1); in TestCreate()
|