/external/skia/include/core/ |
D | SkRect.h | 21 int32_t fLeft, fTop, fRight, fBottom; member 54 int top() const { return fTop; } in top() 61 int y() const { return fTop; } in y() 72 int height() const { return fBottom - fTop; } in height() 77 bool isEmpty() const { return fLeft >= fRight || fTop >= fBottom; } in isEmpty() 88 return SkIsS16(fLeft) && SkIsS16(fTop) && in is16Bit() 98 fTop = top; in set() 109 fTop = y; in setXYWH() 118 fLeft = fTop = SK_MinS32; in setLargest() 127 fLeft = fTop = SK_MaxS32; in setLargestInverted() [all …]
|
D | SkScan.h | 103 xr->fTop = SkIntToFixed(src.fTop); in XRect_set() 114 xr->fTop = SkScalarToFixed(src.fTop); in XRect_set() 123 dst->fTop = SkFixedRound(xr.fTop); in XRect_round() 133 dst->fTop = SkFixedFloor(xr.fTop); in XRect_roundOut()
|
D | SkMask.h | 62 return fImage + ((x - fBounds.fLeft) >> 3) + (y - fBounds.fTop) * fRowBytes; in getAddr1() 73 return fImage + x - fBounds.fLeft + (y - fBounds.fTop) * fRowBytes; in getAddr8() 85 uint16_t* row = (uint16_t*)(fImage + (y - fBounds.fTop) * fRowBytes); in getAddrLCD16() 98 uint32_t* row = (uint32_t*)(fImage + (y - fBounds.fTop) * fRowBytes); in getAddrLCD32()
|
/external/skia/src/core/ |
D | SkRect.cpp | 19 if (fLeft >= fRight || fTop >= fBottom) { in join() 23 if (top < fTop) fTop = top; in join() 33 if (fTop > fBottom) { in sort() 34 SkTSwap<int32_t>(fTop, fBottom); in sort() 44 if (fTop > fBottom) { in sort() 45 SkTSwap<SkScalar>(fTop, fBottom); in sort() 52 quad[0].set(fLeft, fTop); in toQuad() 53 quad[1].set(fRight, fTop); in toQuad() 117 fLeft < right && left < fRight && fTop < bottom && top < fBottom) in intersect() 120 if (fTop < top) fTop = top; in intersect() [all …]
|
D | SkRegion_rects.cpp | 20 SkRegion::RunType fTop; 48 edges[0].fTop = r.fTop; 53 edges[1].fTop = r.fTop; 77 SkRegion::RunType fTop; 85 fTop = top; 103 if (edge->fTop > currY) { 104 nextY = SkMin32(nextY, edge->fTop); 112 if (edge->fTop > currY) { 113 nextY = SkMin32(nextY, edge->fTop); 158 *dst++ = fTop; [all …]
|
D | SkLineClipper.cpp | 64 return outer.fLeft <= inner.fLeft && outer.fTop <= inner.fTop && in containsNoEmptyCheck() 83 nestedLT(bounds.fBottom, clip.fTop, bounds.height()) || in IntersectLine() 84 nestedLT(clip.fBottom, bounds.fTop, bounds.height())) { in IntersectLine() 102 if (tmp[index0].fY < clip.fTop) { in IntersectLine() 103 tmp[index0].set(sect_with_horizontal(src, clip.fTop), clip.fTop); in IntersectLine() 165 if (pts[index1].fY <= clip.fTop) { // we're above the clip in ClipLine() 178 if (pts[index0].fY < clip.fTop) { in ClipLine() 179 tmp[index0].set(sect_with_horizontal(pts, clip.fTop), clip.fTop); in ClipLine()
|
D | SkScan_AntiPath.cpp | 80 int fTop; member in BaseSuperBlitter 101 fTop = ir.fTop; in BaseSuperBlitter() 102 fCurrIY = ir.fTop - 1; in BaseSuperBlitter() 103 fCurrY = (ir.fTop << SHIFT) - 1; in BaseSuperBlitter() 149 if (fCurrIY >= fTop) { in flush() 156 fCurrIY = fTop - 1; in flush() 514 SkASSERT(iy >= fMask.fBounds.fTop && iy < fMask.fBounds.fBottom); in blitH() 515 iy -= fMask.fBounds.fTop; // make it relative to 0 in blitH() 580 return r.fLeft > min && r.fTop > min && in fitsInsideLimit() 603 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() 85 clamp_ge(tmp[2].fY, clip.fTop); in chop_quad_in_Y() 86 clamp_ge(tmp[3].fY, clip.fTop); in chop_quad_in_Y() 93 if (pts[i].fY < clip.fTop) { in chop_quad_in_Y() 94 pts[i].fY = clip.fTop; in chop_quad_in_Y() 126 if (pts[2].fY <= clip.fTop || pts[0].fY >= clip.fBottom) { in clipMonoQuad() 271 if (pts[0].fY < clip.fTop) { in chop_cubic_in_Y() 273 if (chopMonoCubicAtY(pts, clip.fTop, &t)) { in chop_cubic_in_Y() [all …]
|
D | SkScan_Hairline.cpp | 63 clipR.set(SkIntToFDot6(bounds.fLeft), SkIntToFDot6(bounds.fTop), in HairLineRgn() 130 SkScalarToFixed(rect.fTop) >> 16, in HairRect() 156 blitter->blitRect(r.fLeft, r.fTop, width, height); in HairRect() 160 blitter->blitH(r.fLeft, r.fTop, width); // top in HairRect() 161 blitter->blitRect(r.fLeft, r.fTop + 1, 1, height - 2); // left in HairRect() 162 blitter->blitRect(r.fRight - 1, r.fTop + 1, 1, height - 2); // right in HairRect() 339 outer.set(r.fLeft - rx, r.fTop - ry, in FrameRect() 347 tmp.set(outer.fLeft, outer.fTop, outer.fRight, outer.fTop + dy); in FrameRect() 349 tmp.fTop = outer.fBottom - dy; in FrameRect() 353 tmp.set(outer.fLeft, outer.fTop + dy, outer.fLeft + dx, outer.fBottom - dy); in FrameRect()
|
D | SkScan_Antihair.cpp | 295 if (top >= clip->fBottom || bottom <= clip->fTop) { in do_anti_hairline() 298 if (clip->fTop <= top && clip->fBottom >= bottom) { in do_anti_hairline() 335 if (istart >= clip->fBottom || istop <= clip->fTop) { in do_anti_hairline() 338 if (istart < clip->fTop) { in do_anti_hairline() 339 fstart += slope * (clip->fTop - istart); in do_anti_hairline() 340 istart = clip->fTop; in do_anti_hairline() 462 p0.set(rect.fLeft, rect.fTop); in AntiHairRect() 463 p1.set(rect.fRight, rect.fTop); in AntiHairRect() 469 p0.set(rect.fLeft, rect.fTop); in AntiHairRect() 552 antifilldot8(SkFixedToFDot8(xr.fLeft), SkFixedToFDot8(xr.fTop), in antifillrect() [all …]
|
D | SkBlitter.cpp | 112 int cy = clip.fTop; in blitMask() 168 const uint8_t* aa = mask.getAddr8(clip.fLeft, clip.fTop); in blitMask() 174 int y = clip.fTop; in blitMask() 204 this->blitRect(cr.fLeft, cr.fTop, cr.width(), cr.height()); in blitRectRegion() 214 this->blitRect(cr.fLeft, cr.fTop, cr.width(), cr.height()); in blitRegion() 255 return (unsigned)(y - rect.fTop) < (unsigned)rect.height(); in y_in_rect() 329 if (y0 < fClipRect.fTop) { in blitV() 330 y0 = fClipRect.fTop; in blitV() 346 fBlitter->blitRect(r.fLeft, r.fTop, r.width(), r.height()); in blitRect() 366 fBlitter->blitRect(r.fLeft, r.fTop, r.width(), r.height()); in blitAntiRect() [all …]
|
D | SkRegion.cpp | 54 bounds->fTop = *runs++; in ComputeRunBounds() 140 return this->setRect(r.fLeft, r.fTop, r.fRight, r.fBottom); in setRect() 189 count += sprintf(result+count, "(%d,%d,%d,%d)", r.fLeft, r.fTop, r.fRight, r.fBottom); in toString() 228 *itop = fBounds.fTop; in count_runtype_values() 325 runs[0] = bounds.fTop; in BuildRectRuns() 494 dst->setRect(fBounds.fLeft + dx, fBounds.fTop + dy, in translate() 734 fTop = (SkRegion::RunType)(top); // just a first guess, we might update this in RgnOper() 751 fTop = (SkRegion::RunType)(bottom); // just update our bottom in addSpan() 762 fStartDst[0] = fTop; in flush() 773 SkRegion::RunType fTop; member in RgnOper [all …]
|
/external/skia/include/gpu/ |
D | GrRect.h | 21 int16_t fLeft, fTop, fRight, fBottom; member 24 int height() const { return fBottom - fTop; } in height() 26 bool isEmpty() const { return fLeft >= fRight || fTop >= fBottom; } in isEmpty() 30 fTop = SkToS16(r.fTop); in set()
|
/external/webkit/Source/WebCore/platform/graphics/android/rendering/ |
D | GLExtras.cpp | 54 if (srcRect.fRight <= srcRect.fLeft || srcRect.fBottom <= srcRect.fTop) { in drawRing() 58 ALOGV("drawQuad [%fx%f, %f, %f]", srcRect.fLeft, srcRect.fTop, in drawRing() 81 r.set(ir.fLeft, ir.fTop, ir.fRight, ir.fBottom); in drawRegion() 106 line.fTop = r.fTop - borderWidth; in drawRegion() 122 r.set(line.fLeft, line.fTop, line.fRight, line.fBottom); in drawRegion() 125 startRect.set(line.fLeft, line.fTop, line.fRight, line.fBottom); in drawRegion()
|
/external/webkit/Source/WebCore/platform/graphics/android/layers/ |
D | ScrollableLayerAndroid.cpp | 33 out->setY(m_scrollLimits.fTop); in getScrollBounds() 41 out->fTop = getScrollOffset().y(); in getScrollRect() 79 int y = m_scrollLimits.fTop; in scrollRectIntoView() 80 if (transformedRect.fTop < m_scrollLimits.fTop) in scrollRectIntoView() 81 y = transformedRect.fTop; in scrollRectIntoView()
|
/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 | 31 (y0 < r.fTop && y1 < r.fTop) || in sect_test() 58 quad[0].set(r.fLeft, r.fTop); in toQuad() 59 quad[1].set(r.fRight, r.fTop); in toQuad()
|
/external/skia/src/svg/ |
D | SkSVGSVG.cpp | 48 box.fTop = SkScalarDiv(viewBox[1], height); in translate() 51 if (box.fLeft == 0 && box.fTop == 0 && in translate() 60 if (box.fTop != 0) { in translate() 62 y.appendScalar(box.fTop); in translate()
|
/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/chromium/chrome/common/extensions/ |
D | extension_action.cc | 146 rect.fTop = rect.fBottom - SkIntToScalar(kBadgeHeight); in PaintBadge() 174 canvas->AsCanvasSkia()->drawBitmap(*gradient_left, rect.fLeft, rect.fTop); in PaintBadge() 177 SkScalarFloor(rect.fTop), in PaintBadge() 182 rect.fRight - SkIntToScalar(gradient_right->width()), rect.fTop); in PaintBadge() 191 rect.fTop + kTextSize + kTopTextPadding, in PaintBadge()
|
/external/skia/src/views/ |
D | SkBorderView.cpp | 17 fTop(SkIntToScalar(0)), in SkBorderView() 75 evt.findScalar("topMargin", &fTop); in onEvent() 81 fMargin.set(fLeft, fTop, fRight, fBottom); in onEvent()
|
/external/skia/tests/ |
D | BlurTest.cpp | 66 const int yOff = itest.fTop - iref.fTop; in compare() 138 SkIntToScalar(-iref.fTop)); in test_blur() 149 SkIntToScalar(-itest.fTop)); in test_blur()
|
/external/skia/samplecode/ |
D | SampleStrokeText.cpp | 42 path.offset(-bounds.fLeft, -bounds.fTop); in lettersToBitmap() 43 bounds.offset(-bounds.fLeft, -bounds.fTop); in lettersToBitmap() 88 path.offset(-bounds.fLeft, -bounds.fTop); in lettersToBitmap2() 89 bounds.offset(-bounds.fLeft, -bounds.fTop); in lettersToBitmap2()
|
/external/skia/src/pdf/ |
D | SkPDFImage.cpp | 38 for (int y = srcRect.fTop; y < srcRect.fBottom; y++) { in extractImageData() 50 for (int y = srcRect.fTop; y < srcRect.fBottom; y++) { in extractImageData() 65 for (int y = srcRect.fTop; y < srcRect.fBottom; y++) { in extractImageData() 107 for (int y = srcRect.fTop; y < srcRect.fBottom; y++) { in extractImageData() 125 for (int y = srcRect.fTop; y < srcRect.fBottom; y++) { in extractImageData() 154 for (int y = srcRect.fTop; y < srcRect.fBottom; y++) { in extractImageData() 194 for (int y = srcRect.fTop; y < srcRect.fBottom; y++) { in extractImageData()
|