Home
last modified time | relevance | path

Searched refs:fLeft (Results 1 – 25 of 176) sorted by relevance

12345678

/external/skia/include/core/
DSkRect.h21 int32_t fLeft, fTop, fRight, fBottom; member
53 int left() const { return fLeft; } in left()
59 int x() const { return fLeft; } in x()
66 int width() const { return fRight - fLeft; } in width()
77 bool isEmpty() const { return fLeft >= fRight || fTop >= fBottom; } in isEmpty()
88 return SkIsS16(fLeft) && SkIsS16(fTop) && in is16Bit()
97 fLeft = left; in set()
108 fLeft = x; in setXYWH()
118 fLeft = fTop = SK_MinS32; in setLargest()
127 fLeft = fTop = SK_MaxS32; in setLargestInverted()
[all …]
DSkScan.h102 xr->fLeft = SkIntToFixed(src.fLeft); in XRect_set()
113 xr->fLeft = SkScalarToFixed(src.fLeft); in XRect_set()
122 dst->fLeft = SkFixedRound(xr.fLeft); in XRect_round()
132 dst->fLeft = SkFixedFloor(xr.fLeft); in XRect_roundOut()
DSkMask.h62 return fImage + ((x - fBounds.fLeft) >> 3) + (y - fBounds.fTop) * fRowBytes; in getAddr1()
73 return fImage + x - fBounds.fLeft + (y - fBounds.fTop) * fRowBytes; in getAddr8()
86 return row + (x - fBounds.fLeft); in getAddrLCD16()
99 return row + (x - fBounds.fLeft); in getAddrLCD32()
/external/skia/src/core/
DSkRect.cpp19 if (fLeft >= fRight || fTop >= fBottom) { in join()
22 if (left < fLeft) fLeft = left; in join()
30 if (fLeft > fRight) { in sort()
31 SkTSwap<int32_t>(fLeft, fRight); in sort()
41 if (fLeft > fRight) { in sort()
42 SkTSwap<SkScalar>(fLeft, fRight); in sort()
52 quad[0].set(fLeft, fTop); in toQuad()
55 quad[3].set(fLeft, fBottom); in toQuad()
117 fLeft < right && left < fRight && fTop < bottom && top < fBottom) in intersect()
119 if (fLeft < left) fLeft = left; in intersect()
[all …]
DSkLineClipper.cpp64 return outer.fLeft <= inner.fLeft && outer.fTop <= inner.fTop && in containsNoEmptyCheck()
81 if (nestedLT(bounds.fRight, clip.fLeft, bounds.width()) || in IntersectLine()
82 nestedLT(clip.fRight, bounds.fLeft, bounds.width()) || in IntersectLine()
118 if ((tmp[index1].fX <= clip.fLeft || tmp[index0].fX >= clip.fRight) && in IntersectLine()
124 if (tmp[index0].fX < clip.fLeft) { in IntersectLine()
125 tmp[index0].set(clip.fLeft, sect_with_vertical(src, clip.fLeft)); in IntersectLine()
205 if (tmp[index1].fX <= clip.fLeft) { // wholly to the left in ClipLine()
206 tmp[0].fX = tmp[1].fX = clip.fLeft; in ClipLine()
217 if (tmp[index0].fX < clip.fLeft) { in ClipLine()
218 r->set(clip.fLeft, tmp[index0].fY); in ClipLine()
[all …]
DSkBlitter.cpp111 int cx = clip.fLeft; in blitMask()
113 int maskLeft = mask.fBounds.fLeft; in blitMask()
168 const uint8_t* aa = mask.getAddr8(clip.fLeft, clip.fTop); in blitMask()
176 this->blitAntiH(clip.fLeft, y, aa, runs); 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()
259 return (unsigned)(x - rect.fLeft) < (unsigned)rect.width(); in x_in_rect()
271 if (left < fClipRect.fLeft) { in blitH()
272 left = fClipRect.fLeft; in blitH()
293 if (x1 <= fClipRect.fLeft) { in blitAntiH()
[all …]
DSkEdgeClipper.cpp142 if (pts[2].fX <= clip.fLeft) { // wholly to the left in clipMonoQuad()
143 this->appendVLine(clip.fLeft, pts[0].fY, pts[2].fY, reverse); in clipMonoQuad()
155 if (pts[0].fX < clip.fLeft) { in clipMonoQuad()
156 if (chopMonoQuadAtX(pts, clip.fLeft, &t)) { in clipMonoQuad()
158 this->appendVLine(clip.fLeft, tmp[0].fY, tmp[2].fY, reverse); in clipMonoQuad()
159 clamp_ge(tmp[2].fX, clip.fLeft); in clipMonoQuad()
160 clamp_ge(tmp[3].fX, clip.fLeft); in clipMonoQuad()
166 this->appendVLine(clip.fLeft, pts[0].fY, pts[2].fY, reverse); in clipMonoQuad()
339 if (pts[3].fX <= clip.fLeft) { // wholly to the left in clipMonoCubic()
340 this->appendVLine(clip.fLeft, pts[0].fY, pts[3].fY, reverse); in clipMonoCubic()
[all …]
DSkScan_Hairline.cpp63 clipR.set(SkIntToFDot6(bounds.fLeft), SkIntToFDot6(bounds.fTop), in HairLineRgn()
129 r.set(SkScalarToFixed(rect.fLeft) >> 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()
163 blitter->blitH(r.fLeft, r.fBottom - 1, width); // bottom 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()
353 tmp.set(outer.fLeft, outer.fTop + dy, outer.fLeft + dx, outer.fBottom - dy); in FrameRect()
355 tmp.fLeft = outer.fRight - dx; in FrameRect()
DSkRegion.cpp68 bounds->fLeft = left; 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()
327 runs[2] = bounds.fLeft; in BuildRectRuns()
494 dst->setRect(fBounds.fLeft + dx, fBounds.fTop + dy, in translate()
571 int fLeft, fRite, fInside; member
664 fLeft = left; in next()
684 int left = rec.fLeft; in operate_on_span()
1062 int prevRite = bounds.fLeft - 1; in validate_line()
1082 … SkASSERT(fBounds.fLeft == 0 && fBounds.fTop == 0 && fBounds.fRight == 0 && fBounds.fBottom == 0); in validate()
[all …]
DSkScan_Antihair.cpp266 if (istart >= clip->fRight || istop <= clip->fLeft) { in do_anti_hairline()
269 if (istart < clip->fLeft) { in do_anti_hairline()
270 fstart += slope * (clip->fLeft - istart); in do_anti_hairline()
271 istart = clip->fLeft; in do_anti_hairline()
364 if (left >= clip->fRight || right <= clip->fLeft) { in do_anti_hairline()
367 if (clip->fLeft <= left && clip->fRight >= right) { in do_anti_hairline()
462 p0.set(rect.fLeft, rect.fTop); in AntiHairRect()
467 p1.set(rect.fLeft, rect.fBottom); in AntiHairRect()
469 p0.set(rect.fLeft, rect.fTop); in AntiHairRect()
552 antifilldot8(SkFixedToFDot8(xr.fLeft), SkFixedToFDot8(xr.fTop), in antifillrect()
[all …]
DSkScan_AntiPath.cpp72 int fLeft; member in BaseSuperBlitter
91 const int left = clip.getBounds().fLeft; in BaseSuperBlitter()
94 fLeft = left; in BaseSuperBlitter()
152 fRealBlitter->blitAntiH(fLeft, fCurrIY, fRuns.fAlpha, fRuns.fRuns); in flush()
343 fRealBlitter->blitV(ileft + fLeft, start_y, count, in blitRect()
358 fRealBlitter->blitAntiRect(ileft + fLeft, start_y, n, count, in blitRect()
527 SkASSERT(ix >= fMask.fBounds.fLeft && ix < fMask.fBounds.fRight); in blitH()
531 x -= (fMask.fBounds.fLeft << SHIFT); in blitH()
580 return r.fLeft > min && r.fTop > min && in fitsInsideLimit()
601 return overflows_short_shift(rect.fLeft, SHIFT) | in rect_overflows_short_shift()
[all …]
/external/skia/src/gpu/gl/
DGrGLIRect.h21 GrGLint fLeft; member
27 GR_GL_CALL(gl, Viewport(fLeft, fBottom, fWidth, fHeight)); in pushToGLViewport()
31 GR_GL_CALL(gl, Scissor(fLeft, fBottom, fWidth, fHeight)); in pushToGLScissor()
47 fLeft = glRect.fLeft + leftOffset; in setRelativeTo()
52 GrAssert(fLeft >= 0); in setRelativeTo()
59 return fLeft <= glRect.fLeft && in contains()
61 fLeft + fWidth >= glRect.fLeft + glRect.fWidth && in contains()
65 void invalidate() {fLeft = fWidth = fBottom = fHeight = -1;} in invalidate()
/external/skia/include/gpu/
DGrRect.h21 int16_t fLeft, fTop, fRight, fBottom; member
23 int width() const { return fRight - fLeft; } in width()
26 bool isEmpty() const { return fLeft >= fRight || fTop >= fBottom; } in isEmpty()
29 fLeft = SkToS16(r.fLeft); in set()
/external/skia/src/animator/
DSkBoundable.cpp22 fBounds.fLeft = 0x7fff; in clearBounder()
27 if (fBounds.fLeft == (int16_t)0x8000U) { in getBounds()
31 rect->fLeft = SkIntToScalar(fBounds.fLeft); in getBounds()
38 fBounds.fLeft = 0; in enableBounder()
DSkDrawRectangle.cpp28 SK_MEMBER_ALIAS(left, fRect.fLeft, 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/webkit/Source/WebCore/platform/graphics/android/rendering/
DGLExtras.cpp55 if (srcRect.fRight <= srcRect.fLeft || srcRect.fBottom <= srcRect.fTop) { in drawRing()
59 ALOGV("drawQuad [%fx%f, %f, %f]", srcRect.fLeft, srcRect.fTop, in drawRing()
82 r.set(ir.fLeft, ir.fTop, ir.fRight, ir.fBottom); in drawRegion()
105 line.fLeft = r.fLeft - borderWidth; in drawRegion()
123 r.set(line.fLeft, line.fTop, line.fRight, line.fBottom); in drawRegion()
126 startRect.set(line.fLeft, line.fTop, line.fRight, line.fBottom); in drawRegion()
/external/webkit/Source/WebCore/platform/graphics/android/layers/
DScrollableLayerAndroid.cpp32 out->setX(m_scrollLimits.fLeft); in getScrollBounds()
40 out->fLeft = getScrollOffset().x(); in getScrollRect()
71 int x = m_scrollLimits.fLeft; in scrollRectIntoView()
72 if (transformedRect.fLeft < m_scrollLimits.fLeft) in scrollRectIntoView()
73 x = transformedRect.fLeft; in scrollRectIntoView()
/external/skia/src/utils/
DSkNinePatch.cpp78 SkScalar vx = bounds.fLeft; in fillRow()
258 0, margins.fLeft, bitmap.width() - margins.fRight, bitmap.width() in drawNineViaRects()
264 dst.fLeft, dst.fLeft + SkIntToScalar(margins.fLeft), in drawNineViaRects()
273 dstX[1] = dstX[0] + (dstX[3] - dstX[0]) * SkIntToScalar(margins.fLeft) / in drawNineViaRects()
274 (SkIntToScalar(margins.fLeft) + SkIntToScalar(margins.fRight)); in drawNineViaRects()
292 s.fLeft = srcX[x]; in drawNineViaRects()
294 d.fLeft = dstX[x]; in drawNineViaRects()
314 xDivs[0] = margins.fLeft; in DrawNine()
320 xDivs[0] = bitmap.width() * margins.fLeft / in DrawNine()
321 (margins.fLeft + margins.fRight); in DrawNine()
DSkCullPoints.cpp29 if ((x0 < r.fLeft && x1 < r.fLeft) || in sect_test()
58 quad[0].set(r.fLeft, r.fTop); in toQuad()
61 quad[3].set(r.fLeft, r.fBottom); in toQuad()
/external/chromium/chrome/common/extensions/
Dextension_action.cc148 rect.fLeft = SkIntToScalar( in PaintBadge()
152 rect.fRight = rect.fLeft + SkIntToScalar(badge_width); in PaintBadge()
155 rect.fLeft = rect.fRight - badge_width; in PaintBadge()
174 canvas->AsCanvasSkia()->drawBitmap(*gradient_left, rect.fLeft, rect.fTop); in PaintBadge()
176 SkScalarFloor(rect.fLeft) + gradient_left->width(), in PaintBadge()
186 rect.fLeft += kPadding; in PaintBadge()
190 rect.fLeft + (rect.width() - text_width) / 2, in PaintBadge()
/external/skia/src/svg/
DSkSVGSVG.cpp47 box.fLeft = SkScalarDiv(viewBox[0], width); in translate()
51 if (box.fLeft == 0 && box.fTop == 0 && in translate()
55 if (box.fLeft != 0) { in translate()
57 x.appendScalar(box.fLeft); in translate()
/external/skia/src/pdf/
DSkPDFImage.cpp39 memcpy(dst, bitmap.getAddr8(srcRect.fLeft, y), rowBytes); in extractImageData()
51 SkPackBits::Unpack8(dst, srcRect.fLeft, rowBytes, in extractImageData()
68 for (x = srcRect.fLeft; x + 1 < srcRect.fRight; x += 2) { in extractImageData()
109 for (int x = srcRect.fLeft; x < srcRect.fRight; x++) { in extractImageData()
127 for (int x = srcRect.fLeft; x < srcRect.fRight; x++) { in extractImageData()
152 int offset1 = srcRect.fLeft % 8; in extractImageData()
158 for (int x = srcRect.fLeft; x < srcRect.fRight; x += 8) { in extractImageData()
196 for (int x = srcRect.fLeft; x < srcRect.fRight; x++) { in extractImageData()
/external/skia/src/views/
DSkBorderView.cpp15 SkBorderView::SkBorderView() : fLeft(SkIntToScalar(0)), in SkBorderView()
73 evt.findScalar("leftMargin", &fLeft); in onEvent()
81 fMargin.set(fLeft, fTop, fRight, fBottom); in onEvent()
/external/skia/samplecode/
DSampleStrokeText.cpp42 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/tests/
DBlurTest.cpp65 const int xOff = itest.fLeft - iref.fLeft; in compare()
137 refCanvas.translate(SkIntToScalar(-iref.fLeft), in test_blur()
148 testCanvas.translate(SkIntToScalar(-itest.fLeft), in test_blur()

12345678