/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 | 61 return fImage + ((x - fBounds.fLeft) >> 3) + (y - fBounds.fTop) * fRowBytes; in getAddr1() 72 return fImage + x - fBounds.fLeft + (y - fBounds.fTop) * fRowBytes; in getAddr8() 84 uint16_t* row = (uint16_t*)(fImage + (y - fBounds.fTop) * fRowBytes); in getAddrLCD16() 97 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 | 86 xr->fTop = SkIntToFixed(src.fTop); in XRect_set() 97 xr->fTop = SkScalarToFixed(src.fTop); in XRect_set() 106 dst->fTop = SkFixedRoundToInt(xr.fTop); in XRect_round() 116 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 = (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 | 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() 232 if (pts[0].fY < clip.fTop) { in chop_cubic_in_Y() 234 if (SkChopMonoCubicAtY(pts, clip.fTop, tmp)) { in chop_cubic_in_Y() [all …]
|
D | SkBlitter.cpp | 126 int cy = clip.fTop; in blitMask() 182 const uint8_t* aa = mask.getAddr8(clip.fLeft, clip.fTop); in blitMask() 188 int y = clip.fTop; in blitMask() 218 this->blitRect(cr.fLeft, cr.fTop, cr.width(), cr.height()); in blitRectRegion() 228 this->blitRect(cr.fLeft, cr.fTop, cr.width(), cr.height()); in blitRegion() 271 return (unsigned)(y - rect.fTop) < (unsigned)rect.height(); in y_in_rect() 345 if (y0 < fClipRect.fTop) { in blitV() 346 y0 = fClipRect.fTop; in blitV() 362 fBlitter->blitRect(r.fLeft, r.fTop, r.width(), r.height()); in blitRect() 382 fBlitter->blitRect(r.fLeft, r.fTop, r.width(), r.height()); in blitAntiRect() [all …]
|
D | SkScan_Path.cpp | 420 if (rect.fTop < start_y) { in sk_fill_path() 421 rect.fTop = start_y; in sk_fill_path() 428 rect.fTop << shiftEdgesUp, in sk_fill_path() 455 if (clipRect && start_y < clipRect->fTop) { in sk_fill_path() 456 start_y = clipRect->fTop; in sk_fill_path() 492 tmp.fTop = cr.fTop; in sk_blit_above() 493 tmp.fBottom = ir.fTop; in sk_blit_above() 505 tmp.fTop = ir.fBottom; in sk_blit_below() 602 sk_fill_path(path, clipper.getClipRect(), blitter, ir.fTop, ir.fBottom, in FillPath() 672 int start_y = ir.fTop; in sk_fill_triangle() [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() 32 SkASSERT(fTop <= fBottom); in intersects() 34 SkASSERT(r.fTop <= r.fBottom); in intersects() 35 return r.fLeft <= fRight && fLeft <= r.fRight && r.fTop <= fBottom && fTop <= r.fBottom; in intersects() 40 fTop = fBottom = pt.fY; in set() 48 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 | GrTessellatingPathRenderer.cpp | 236 , fTop(top) in Edge() 249 Vertex* fTop; // The top vertex in vertex-sort-order (sweep_lt). member 272 fDX = static_cast<double>(fBottom->fPoint.fX) - fTop->fPoint.fX; in recompute() 273 fDY = static_cast<double>(fBottom->fPoint.fY) - fTop->fPoint.fY; in recompute() 274 fC = static_cast<double>(fTop->fPoint.fY) * fBottom->fPoint.fX - in recompute() 275 static_cast<double>(fTop->fPoint.fX) * fBottom->fPoint.fY; in recompute() 279 fTop->fID, fBottom->fID, in intersect() 280 other.fTop->fID, other.fBottom->fID); in intersect() 281 if (fTop == other.fTop || fBottom == other.fBottom) { in intersect() 288 double dx = static_cast<double>(fTop->fPoint.fX) - other.fTop->fPoint.fX; in intersect() [all …]
|
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() 14 a.fTop < b.fBottom && b.fTop < a.fBottom; in intersect()
|
D | GrSoftwarePathRenderer.cpp | 94 if (devClipBounds.fTop < devPathBounds.fTop) { in draw_around_inv_path() 95 rect.iset(devClipBounds.fLeft, devClipBounds.fTop, in draw_around_inv_path() 96 devClipBounds.fRight, devPathBounds.fTop); in draw_around_inv_path() 100 rect.iset(devClipBounds.fLeft, devPathBounds.fTop, in draw_around_inv_path() 105 rect.iset(devPathBounds.fRight, devPathBounds.fTop, in draw_around_inv_path()
|
/external/skia/include/gpu/ |
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()
|
/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()
|
D | SKPBench.cpp | 58 for (int y = bounds.fTop; y < bounds.fBottom; y += tileH) { in onPerCanvasPreDraw() 67 clip.offset(-SkIntToScalar(tileRect.fLeft), -SkIntToScalar(tileRect.fTop)); in onPerCanvasPreDraw() 82 SkIntToScalar(fTileRects[i].fLeft), SkIntToScalar(fTileRects[i].fTop)); in onPerCanvasPostDraw() 116 -fTileRects[j].fTop/fScale); in drawMPDPicture() 130 -fTileRects[j].fTop / fScale); in drawPicture()
|
/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()
|
D | SkCullPoints.cpp | 23 (y0 < r.fTop && y1 < r.fTop) || in sect_test() 50 quad[0].set(r.fLeft, r.fTop); in toQuad() 51 quad[1].set(r.fRight, r.fTop); in toQuad() 196 iTarget.fTop = SkScalarFloorToInt(devTarget.fTop); in SkHitTestPath() 198 iTarget.fBottom = iTarget.fTop + 1; in SkHitTestPath()
|
/external/skia/src/effects/ |
D | SkPictureImageFilter.cpp | 126 offset->fY = bounds.fTop; in onFilterImage() 138 canvas.translate(-SkIntToScalar(deviceBounds.fLeft), -SkIntToScalar(deviceBounds.fTop)); in drawPictureAtDeviceResolution() 160 localCanvas.translate(-SkIntToScalar(localIBounds.fLeft), -SkIntToScalar(localIBounds.fTop)); in drawPictureAtLocalResolution() 168 canvas.translate(-SkIntToScalar(deviceBounds.fLeft), -SkIntToScalar(deviceBounds.fTop)); in drawPictureAtLocalResolution() 173 SkIntToScalar(localIBounds.fTop), &paint); in drawPictureAtLocalResolution() 181 fCropRect.fLeft, fCropRect.fTop, fCropRect.fRight, fCropRect.fBottom); in toString() 184 fPicture->cullRect().fLeft, fPicture->cullRect().fTop, in toString()
|
D | SkBitmapSource.cpp | 80 dstRect.offset(-SkIntToScalar(dstIRect.fLeft), -SkIntToScalar(dstIRect.fTop)); in onFilterImage() 91 offset->fY = dstIRect.fTop; in onFilterImage() 104 fSrcRect.fLeft, fSrcRect.fTop, fSrcRect.fRight, fSrcRect.fBottom, in toString() 105 fDstRect.fLeft, fDstRect.fTop, fDstRect.fRight, fDstRect.fBottom); in toString()
|
/external/skia/src/animator/ |
D | SkBoundable.cpp | 16 fBounds.fTop = 0; in SkBoundable() 32 rect->fTop = SkIntToScalar(fBounds.fTop); in getBounds()
|
D | SkDrawRectangle.cpp | 31 SK_MEMBER_ALIAS(top, fRect.fTop, Float), 58 SkScalarToFloat(fRect.fLeft), SkScalarToFloat(fRect.fTop), SkScalarToFloat(fRect.fRight), in dump() 100 fRect.fBottom = scalar + fRect.fTop; in setProperty() 139 … SkScalarToFloat(fRect.fLeft), SkScalarToFloat(fRect.fTop), SkScalarToFloat(fRect.fRight), in dump()
|
/external/skia/src/gpu/effects/ |
D | GrTextureDomain.cpp | 30 SkASSERT(domain.fTop <= domain.fBottom); in GrTextureDomain() 33 fDomain.fTop = SkScalarPin(domain.fTop, kFullRect.fTop, kFullRect.fBottom); in GrTextureDomain() 34 fDomain.fBottom = SkScalarPin(domain.fBottom, kFullRect.fTop, kFullRect.fBottom); in GrTextureDomain() 36 SkASSERT(fDomain.fTop <= fDomain.fBottom); in GrTextureDomain() 298 domain.fTop = random->nextUScalar1(); in TestCreate() 299 domain.fBottom = random->nextRangeScalar(domain.fTop, SK_Scalar1); in TestCreate()
|