Home
last modified time | relevance | path

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

12345

/external/skia/include/core/
DSkRect.h28 int32_t fLeft, fTop, fRight, fBottom; member
32 bool isEmpty() const { return fLeft >= fRight || fTop >= fBottom; } in isEmpty()
37 int width() const { return fRight - fLeft; } in width()
53 return SkIsS16(fLeft) && SkIsS16(fTop) && in is16Bit()
62 fLeft = left; in set()
72 fLeft += dx; in offset()
87 fLeft += dx; in inset()
99 return (unsigned)(x - fLeft) < (unsigned)(fRight - fLeft) && in contains()
108 fLeft <= left && fTop <= top && in contains()
116 fLeft <= r.fLeft && fTop <= r.fTop && in contains()
[all …]
DSkScan.h87 xr->fLeft = SkIntToFixed(src.fLeft); in XRect_set()
98 xr->fLeft = SkScalarToFixed(src.fLeft); in XRect_set()
107 dst->fLeft = SkFixedRound(xr.fLeft); in XRect_round()
117 dst->fLeft = SkFixedFloor(xr.fLeft); in XRect_roundOut()
DSkMask.h84 return fImage + ((x - fBounds.fLeft) >> 3) + (y - fBounds.fTop) * fRowBytes; in getAddr1()
95 return fImage + x - fBounds.fLeft + (y - fBounds.fTop) * fRowBytes; in getAddr()
106 x - fBounds.fLeft + (y - fBounds.fTop) * rowWordsLCD(); in getAddrLCD()
/external/skia/src/core/
DSkRect.cpp26 if (fLeft >= fRight || fTop >= fBottom) in join()
30 if (left < fLeft) fLeft = left; in join()
39 if (fLeft > fRight) in sort()
40 SkTSwap<int32_t>(fLeft, fRight); in sort()
49 if (fLeft > fRight) in sort()
50 SkTSwap<SkScalar>(fLeft, fRight); in sort()
59 quad[0].set(fLeft, fTop); in toQuad()
62 quad[3].set(fLeft, fBottom); in toQuad()
110 fLeft < right && left < fRight && fTop < bottom && top < fBottom) in intersect()
112 if (fLeft < left) fLeft = left; in intersect()
[all …]
DSkLineClipper.cpp35 return outer.fLeft <= inner.fLeft && outer.fTop <= inner.fTop && in containsNoEmptyCheck()
52 if (nestedLT(bounds.fRight, clip.fLeft, bounds.width()) || in IntersectLine()
53 nestedLT(clip.fRight, bounds.fLeft, bounds.width()) || in IntersectLine()
89 if ((tmp[index1].fX <= clip.fLeft || tmp[index0].fX >= clip.fRight) && in IntersectLine()
95 if (tmp[index0].fX < clip.fLeft) { in IntersectLine()
96 tmp[index0].set(clip.fLeft, sect_with_vertical(src, clip.fLeft)); in IntersectLine()
161 if (tmp[index1].fX <= clip.fLeft) { // wholly to the left in ClipLine()
162 tmp[0].fX = tmp[1].fX = clip.fLeft; in ClipLine()
173 if (tmp[index0].fX < clip.fLeft) { in ClipLine()
174 r->set(clip.fLeft, tmp[index0].fY); in ClipLine()
[all …]
DSkEdgeClipper.cpp149 if (pts[2].fX <= clip.fLeft) { // wholly to the left in clipMonoQuad()
150 this->appendVLine(clip.fLeft, pts[0].fY, pts[2].fY, reverse); in clipMonoQuad()
162 if (pts[0].fX < clip.fLeft) { in clipMonoQuad()
163 if (chopMonoQuadAtX(pts, clip.fLeft, &t)) { in clipMonoQuad()
165 this->appendVLine(clip.fLeft, tmp[0].fY, tmp[2].fY, reverse); in clipMonoQuad()
166 clamp_ge(tmp[2].fX, clip.fLeft); in clipMonoQuad()
167 clamp_ge(tmp[3].fX, clip.fLeft); in clipMonoQuad()
173 this->appendVLine(clip.fLeft, pts[0].fY, pts[2].fY, reverse); in clipMonoQuad()
343 if (pts[3].fX <= clip.fLeft) { // wholly to the left in clipMonoCubic()
344 this->appendVLine(clip.fLeft, pts[0].fY, pts[3].fY, reverse); in clipMonoCubic()
[all …]
DSkScan_Hairline.cpp71 clipR.set(SkIntToFDot6(bounds.fLeft), SkIntToFDot6(bounds.fTop), in HairLine()
139 r.set(SkScalarToFixed(rect.fLeft) >> 16, in HairRect()
159 blitter->blitRect(r.fLeft, r.fTop, width, height); in HairRect()
163 blitter->blitH(r.fLeft, r.fTop, width); // top in HairRect()
164 blitter->blitRect(r.fLeft, r.fTop + 1, 1, height - 2); // left in HairRect()
166 blitter->blitH(r.fLeft, r.fBottom - 1, width); // bottom in HairRect()
332 outer.set( r.fLeft - radius, r.fTop - radius, in FrameRect()
341 tmp.set(outer.fLeft, outer.fTop, outer.fRight, outer.fTop + diameter); in FrameRect()
347 tmp.set(outer.fLeft, outer.fTop + diameter, outer.fLeft + diameter, outer.fBottom - diameter); in FrameRect()
349 tmp.fLeft = outer.fRight - diameter; in FrameRect()
DSkScan_AntiPath.cpp50 int fWidth, fLeft, fSuperLeft; member in BaseSuperBlitter
62 const int left = SkMin32(ir.fLeft, clip.getBounds().fLeft); in BaseSuperBlitter()
65 fLeft = left; in BaseSuperBlitter()
108 fRealBlitter->blitAntiH(fLeft, fCurrIY, fRuns.fAlpha, fRuns.fRuns); in flush()
299 SkASSERT(ix >= fMask.fBounds.fLeft && ix < fMask.fBounds.fRight); in blitH()
303 x -= (fMask.fBounds.fLeft << SHIFT); in blitH()
372 if (overflows_short_shift(ir.fLeft, SHIFT) | in AntiFillPath()
402 superRect.set( clipRect->fLeft << SHIFT, clipRect->fTop << SHIFT, in AntiFillPath()
DSkRegion.cpp97 bounds->fLeft = left; in ComputeRunBounds()
181 return this->setRect(r.fLeft, r.fTop, r.fRight, r.fBottom); in setRect()
342 runs[2] = bounds.fLeft; in BuildRectRuns()
509 dst->setRect(fBounds.fLeft + dx, fBounds.fTop + dy, in translate()
576 int fLeft, fRite, fInside; member
669 fLeft = left; in next()
689 int left = rec.fLeft; in operate_on_span()
1071 int prevRite = bounds.fLeft - 1; in validate_line()
1091 … SkASSERT(fBounds.fLeft == 0 && fBounds.fTop == 0 && fBounds.fRight == 0 && fBounds.fBottom == 0); in validate()
1128 … SkDebugf(" rgn: [%d %d %d %d]", fBounds.fLeft, fBounds.fTop, fBounds.fRight, fBounds.fBottom); in dump()
[all …]
DSkScalerContext.cpp43 mask->fBounds.set(fLeft, fTop, fLeft + fWidth, fTop + fHeight); in toMask()
69 fLeft = 0; in zeroMetrics()
308 glyph->fLeft = 0; in getMetrics()
325 glyph->fLeft = mask.fBounds.fLeft; in getMetrics()
340 glyph->fLeft = ir.fLeft; in getMetrics()
359 glyph->fLeft = dst.fBounds.fLeft; in getMetrics()
370 glyph->fLeft = 0; in getMetrics()
439 matrix.setTranslate(-SkIntToScalar(glyph->fLeft), in getImage()
DSkBlitter.cpp114 int cx = clip.fLeft; in blitMask()
116 int maskLeft = mask.fBounds.fLeft; in blitMask()
182 const uint8_t* aa = mask.getAddr(clip.fLeft, clip.fTop); in blitMask()
191 this->blitAntiH(clip.fLeft, y, aa, runs); in blitMask()
219 this->blitRect(cr.fLeft, cr.fTop, cr.width(), cr.height()); in blitRectRegion()
229 this->blitRect(cr.fLeft, cr.fTop, cr.width(), cr.height()); in blitRegion()
291 return (unsigned)(x - rect.fLeft) < (unsigned)rect.width(); in x_in_rect()
303 if (left < fClipRect.fLeft) in blitH()
304 left = fClipRect.fLeft; in blitH()
321 if (x1 <= fClipRect.fLeft) in blitAntiH()
[all …]
DSkPath.cpp348 this->addRect(rect.fLeft, rect.fTop, rect.fRight, rect.fBottom, dir); in addRect()
405 this->lineTo(rect.fLeft + rx, rect.fTop); // top in addRoundRect()
407 this->cubicTo(rect.fLeft + rx - sx, rect.fTop, in addRoundRect()
408 rect.fLeft, rect.fTop + ry - sy, in addRoundRect()
409 rect.fLeft, rect.fTop + ry); // top-left in addRoundRect()
411 this->lineTo(rect.fLeft, rect.fBottom - ry); // left in addRoundRect()
413 this->cubicTo(rect.fLeft, rect.fBottom - ry + sy, in addRoundRect()
414 rect.fLeft + rx - sx, rect.fBottom, in addRoundRect()
415 rect.fLeft + rx, rect.fBottom); // bot-left in addRoundRect()
439 this->lineTo(rect.fLeft + rx, rect.fBottom); // bottom in addRoundRect()
[all …]
DSkScan_Antihair.cpp281 if (istart >= clip->fRight || istop <= clip->fLeft) in do_anti_hairline()
283 if (istart < clip->fLeft) in do_anti_hairline()
285 fstart += slope * (clip->fLeft - istart); in do_anti_hairline()
286 istart = clip->fLeft; in do_anti_hairline()
390 if (left >= clip->fRight || right <= clip->fLeft) in do_anti_hairline()
392 if (clip->fLeft <= left && clip->fRight >= right) in do_anti_hairline()
487 p0.set(rect.fLeft, rect.fTop); in AntiHairRect()
492 p1.set(rect.fLeft, rect.fBottom); in AntiHairRect()
494 p0.set(rect.fLeft, rect.fTop); in AntiHairRect()
535 FDot8 L = SkFixedToFDot8(xr.fLeft); in antifillrect()
DSkSpriteBlitter_ARGB32.cpp48 const SK_RESTRICT uint32_t* src = fSource->getAddr32(x - fLeft, in blitRect()
136 const SK_RESTRICT uint32_t* src = fSource->getAddr32(x - fLeft, in blitRect()
183 const SK_RESTRICT SkPMColor16* src = fSource->getAddr16(x - fLeft, in blitRect()
230 const SK_RESTRICT SkPMColor16* src = fSource->getAddr16(x - fLeft, in blitRect()
259 const SK_RESTRICT SkPMColor16* src = fSource->getAddr16(x - fLeft, in blitRect()
/external/webkit/WebKit/android/nav/
DSelectText.cpp170 translate(SkIntToScalar(-area.fLeft), SkIntToScalar(-area.fTop)); in SpaceCanvas()
400 , mFocusX(x - area.fLeft) in FirstCheck()
410 mBestBounds.offset(area.fLeft, area.fTop); in adjustedBounds()
412 mBestBounds.fLeft, mBestBounds.fTop, mBestBounds.fRight, in adjustedBounds()
424 int dx = rect.fLeft + rect.fRight - (mFocusX << 1); in onIRectGlyph()
433 mBestBounds.set(rect.fLeft, top(), rect.fRight, bottom()); in onIRectGlyph()
436 mBestBounds.fLeft, mBestBounds.fTop, in onIRectGlyph()
494 int dx = mLeft ? mFocusX - rect.fRight : rect.fLeft - mFocusX; in onIRectGlyph()
496 if (mLeft ? mFocusX <= rect.fLeft : mFocusX >= rect.fRight) { in onIRectGlyph()
499 rect.fLeft, rect.fRight, mFocusX, dx, dy); in onIRectGlyph()
[all …]
DCachedRoot.cpp154 " mType=%s", rect.fLeft, rect.fTop, rect.fRight, rect.fBottom, in onIRect()
163 (mBounds.fLeft == rect.fLeft && mBounds.fRight == rect.fRight && in onIRect()
166 mBounds.fLeft >= rect.fLeft && mBounds.fRight <= rect.fRight))) { in onIRect()
171 rect.fLeft, rect.fTop, rect.fRight, rect.fBottom, in onIRect()
172 mAllDrawnIn.fLeft, mAllDrawnIn.fTop, mAllDrawnIn.fRight, in onIRect()
200 rect.fLeft, rect.fTop, rect.fRight, rect.fBottom, in onIRect()
201 drawnOver.fLeft, drawnOver.fTop, drawnOver.fRight, drawnOver.fBottom, in onIRect()
365 mMostLeft = rect.fLeft; in onIRect()
376 && mPartial.fRight + SLOP >= rect.fLeft in onIRect()
381 mPartial.fLeft, mPartial.fTop, mPartial.fRight, mPartial.fBottom, in onIRect()
[all …]
DFindCanvas.cpp153 rect.fLeft = pos[0] + before; in addMatchNormal()
155 rect.fRight = paint.measureText(glyphs, countInBytes, 0) + rect.fLeft; in addMatchNormal()
186 bounds.fLeft = points[j].fX; in addMatchPos()
187 bounds.fRight = bounds.fLeft + in addMatchPos()
213 r.fLeft = xPos[0]; in addMatchPosH()
379 SkIntToScalar(iRect.fLeft - workingBounds.fRight) > in findHelper()
542 m_currentMatchLocation.set(bounds.fLeft, bounds.fTop); in storeCurrentMatchLocation()
661 if (rect.fLeft == m_currentMatchLocation.fX in setMatches()
/external/skia/src/animator/
DSkBoundable.cpp30 fBounds.fLeft = 0x7fff; in clearBounder()
35 if (fBounds.fLeft == (int16_t)0x8000U) { in getBounds()
39 rect->fLeft = SkIntToScalar(fBounds.fLeft); in getBounds()
46 fBounds.fLeft = 0; in enableBounder()
DSkDrawRectangle.cpp36 SK_MEMBER_ALIAS(left, fRect.fLeft, Float),
66 SkScalarToFloat(fRect.fLeft), SkScalarToFloat(fRect.fTop), SkScalarToFloat(fRect.fRight), in dump()
114 fRect.fRight = scalar + fRect.fLeft; in setProperty()
147 … SkScalarToFloat(fRect.fLeft), SkScalarToFloat(fRect.fTop), SkScalarToFloat(fRect.fRight), in dump()
/external/webkit/WebKit/android/jni/
DPictureSet.cpp80 area.getBounds().fLeft, area.getBounds().fTop, in add()
123 a.fLeft, a.fTop, a.fRight, a.fBottom, in build()
124 d.fLeft, d.fTop, d.fRight, d.fBottom, in build()
125 i.fLeft, i.fTop, i.fRight, i.fBottom, in build()
126 v.fLeft, v.fTop, v.fRight, v.fBottom); in build()
237 " irect={%d,%d,%d,%d}", b.fLeft, b.fTop, b.fRight, b.fBottom, in draw()
238 irect.fLeft, irect.fTop, irect.fRight, irect.fBottom); in draw()
254 b.fLeft, b.fTop, b.fRight, b.fBottom, in draw()
255 irect.fLeft, irect.fTop, irect.fRight, irect.fBottom); in draw()
271 canvas->translate(pathBounds.fLeft, pathBounds.fTop); in draw()
[all …]
/external/skia/src/utils/
DSkNinePatch.cpp60 SkScalar vx = bounds.fLeft; in fillRow()
233 0, margins.fLeft, bitmap.width() - margins.fRight, bitmap.width() in drawNineViaRects()
239 dst.fLeft, dst.fLeft + SkIntToScalar(margins.fLeft), in drawNineViaRects()
255 s.fLeft = srcX[x]; in drawNineViaRects()
257 d.fLeft = dstX[x]; in drawNineViaRects()
277 xDivs[0] = margins.fLeft; in DrawNine()
DSkCullPoints.cpp39 if (x0 < r.fLeft && x1 < r.fLeft || in sect_test()
68 quad[0].set(r.fLeft, r.fTop); in toQuad()
71 quad[3].set(r.fLeft, r.fBottom); in toQuad()
/external/skia/src/svg/
DSkSVGSVG.cpp53 box.fLeft = SkScalarDiv(viewBox[0], width); in translate()
57 if (box.fLeft == 0 && box.fTop == 0 && in translate()
61 if (box.fLeft != 0) { in translate()
63 x.appendScalar(box.fLeft); in translate()
/external/skia/src/views/
DSkBorderView.cpp8 SkBorderView::SkBorderView() : fTop(SkIntToScalar(0)), fLeft(SkIntToScalar(0)), in SkBorderView()
64 evt.findScalar("leftMargin", &fLeft); in onEvent()
72 fMargin.set(fLeft, fTop, fRight, fBottom); in onEvent()
DSkStackViewLayout.cpp107 startM = fMargin.fLeft; in onLayoutChildren()
126 crossStartM = fMargin.fLeft; in onLayoutChildren()
127 crossLimit = -fMargin.fLeft - fMargin.fRight; in onLayoutChildren()
251 child->setLoc(fMargin.fLeft, fMargin.fTop); in onLayoutChildren()
252 child->setSize( parent->width() - fMargin.fRight - fMargin.fLeft, in onLayoutChildren()

12345