Home
last modified time | relevance | path

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

12345678910>>...12

/external/skia/include/core/
DSkRect.h21 int32_t fLeft, fTop, fRight, fBottom; member
59 int left() const { return fLeft; } in left()
65 int x() const { return fLeft; } in x()
72 int width() const { return fRight - fLeft; } in width()
89 int centerX() const { return (fRight + fLeft) >> 1; } in centerX()
103 bool isEmpty() const { return fLeft >= fRight || fTop >= fBottom; } in isEmpty()
105 bool isLargest() const { return SK_MinS32 == fLeft && in isLargest()
119 return SkIsS16(fLeft) && SkIsS16(fTop) && in is16Bit()
128 fLeft = left; in set()
139 fLeft = x; in setXYWH()
[all …]
DSkMask.h63 return fImage + ((x - fBounds.fLeft) >> 3) + (y - fBounds.fTop) * fRowBytes; in getAddr1()
74 return fImage + x - fBounds.fLeft + (y - fBounds.fTop) * fRowBytes; in getAddr8()
87 return row + (x - fBounds.fLeft); in getAddrLCD16()
100 return row + (x - fBounds.fLeft); in getAddr32()
/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()
48 fLeft = glRect.fLeft + leftOffset; in setRelativeTo()
57 SkASSERT(fLeft >= 0); in setRelativeTo()
64 return fLeft <= glRect.fLeft && in contains()
66 fLeft + fWidth >= glRect.fLeft + glRect.fWidth && in contains()
70 void invalidate() {fLeft = fWidth = fBottom = fHeight = -1;} in invalidate()
/external/skia/src/core/
DSkRect.cpp18 if (fLeft >= fRight || fTop >= fBottom) { in join()
21 if (left < fLeft) fLeft = left; in join()
29 if (fLeft > fRight) { in sort()
30 SkTSwap<int32_t>(fLeft, fRight); in sort()
42 quad[0].set(fLeft, fTop); in toQuad()
45 quad[3].set(fLeft, fBottom); 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 …]
DSkLineClipper.cpp73 return outer.fLeft <= inner.fLeft && outer.fTop <= inner.fTop && in containsNoEmptyCheck()
90 if (nestedLT(bounds.fRight, clip.fLeft, bounds.width()) || in IntersectLine()
91 nestedLT(clip.fRight, bounds.fLeft, bounds.width()) || in IntersectLine()
127 if ((tmp[index1].fX <= clip.fLeft || tmp[index0].fX >= clip.fRight) && in IntersectLine()
133 if (tmp[index0].fX < clip.fLeft) { in IntersectLine()
134 tmp[index0].set(clip.fLeft, sect_with_vertical(src, clip.fLeft)); in IntersectLine()
240 if (tmp[index1].fX <= clip.fLeft) { // wholly to the left in ClipLine()
241 tmp[0].fX = tmp[1].fX = clip.fLeft; in ClipLine()
255 if (tmp[index0].fX < clip.fLeft) { in ClipLine()
256 r->set(clip.fLeft, tmp[index0].fY); in ClipLine()
[all …]
DSkScan.h89 xr->fLeft = SkIntToFixed(src.fLeft); in XRect_set()
100 xr->fLeft = SkScalarToFixed(src.fLeft); in XRect_set()
109 dst->fLeft = SkFixedRoundToInt(xr.fLeft); in XRect_round()
119 dst->fLeft = SkFixedFloorToInt(xr.fLeft); in XRect_roundOut()
DSkBlitter.cpp135 int cx = clip.fLeft; in blitMask()
137 int maskLeft = mask.fBounds.fLeft; in blitMask()
193 const uint8_t* aa = mask.getAddr8(clip.fLeft, clip.fTop); in blitMask()
201 this->blitAntiH(clip.fLeft, y, aa, runs); in blitMask()
229 this->blitRect(cr.fLeft, cr.fTop, cr.width(), cr.height()); in blitRectRegion()
239 this->blitRect(cr.fLeft, cr.fTop, cr.width(), cr.height()); in blitRegion()
286 return (unsigned)(x - rect.fLeft) < (unsigned)rect.width(); in x_in_rect()
298 if (left < fClipRect.fLeft) { in blitH()
299 left = fClipRect.fLeft; in blitH()
320 if (x1 <= fClipRect.fLeft) { in blitAntiH()
[all …]
DSkEdgeClipper.cpp146 if (pts[2].fX <= clip.fLeft) { // wholly to the left in clipMonoQuad()
147 this->appendVLine(clip.fLeft, pts[0].fY, pts[2].fY, reverse); in clipMonoQuad()
161 if (pts[0].fX < clip.fLeft) { in clipMonoQuad()
162 if (chopMonoQuadAtX(pts, clip.fLeft, &t)) { in clipMonoQuad()
164 this->appendVLine(clip.fLeft, tmp[0].fY, tmp[2].fY, reverse); in clipMonoQuad()
166 tmp[2].fX = clip.fLeft; in clipMonoQuad()
167 clamp_ge(tmp[3].fX, clip.fLeft); in clipMonoQuad()
174 this->appendVLine(clip.fLeft, pts[0].fY, pts[2].fY, reverse); in clipMonoQuad()
319 if (pts[3].fX <= clip.fLeft) { // wholly to the left in clipMonoCubic()
320 this->appendVLine(clip.fLeft, pts[0].fY, pts[3].fY, reverse); in clipMonoCubic()
[all …]
DSkNinePatchIter.cpp19 fSrcX[1] = SkIntToScalar(c.fLeft); in SkNinePatchIter()
28 fDstX[0] = dst.fLeft; in SkNinePatchIter()
29 fDstX[1] = dst.fLeft + SkIntToScalar(c.fLeft); in SkNinePatchIter()
39 fDstX[1] = fDstX[0] + (fDstX[3] - fDstX[0]) * c.fLeft / (w - c.width()); in SkNinePatchIter()
DSkScan_Hairline.cpp87 clipR.set(SkIntToFDot6(bounds.fLeft), SkIntToFDot6(bounds.fTop), in HairLineRgn()
152 r.set(SkScalarToFixed(rect.fLeft) >> 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()
186 blitter->blitH(r.fLeft, r.fBottom - 1, width); // bottom in HairRect()
333 return r.fLeft > r.fRight || r.fTop > r.fBottom; in is_inverted()
340 return a.fLeft < b.fRight && b.fLeft < a.fRight && in geometric_overlap()
348 return inner.fRight <= outer.fRight && inner.fLeft >= outer.fLeft && in geometric_contains()
628 outer.set(r.fLeft - rx, r.fTop - ry, in FrameRect()
[all …]
/external/skia/src/pathops/
DSkPathOpsRect.h13 double fLeft, fTop, fRight, fBottom; member
16 fLeft = SkTMin(fLeft, pt.fX); in add()
23 return approximately_between(fLeft, pt.fX, fRight) in contains()
30 SkASSERT(fLeft <= fRight); in intersects()
32 SkASSERT(r.fLeft <= r.fRight); in intersects()
34 return r.fLeft <= fRight && fLeft <= r.fRight && r.fTop <= fBottom && fTop <= r.fBottom; in intersects()
38 fLeft = fRight = pt.fX; in set()
43 return fRight - fLeft; in width()
DSkPathOpsBounds.h16 return AlmostLessOrEqualUlps(a.fLeft, b.fRight) in Intersects()
17 && AlmostLessOrEqualUlps(b.fLeft, a.fRight) in Intersects()
26 if (left < fLeft) fLeft = left; in add()
33 add(toAdd.fLeft, toAdd.fTop, toAdd.fRight, toAdd.fBottom); in add()
37 if (pt.fX < fLeft) fLeft = SkDoubleToScalar(pt.fX); in add()
44 return AlmostLessOrEqualUlps(fLeft, pt.fX) in almostContains()
/external/skia/src/gpu/
DGrTextureParamsAdjuster.cpp87 domain.fLeft = (subset->fLeft + 0.5f) * sx; in copy_on_gpu()
107 localRect.fLeft *= sx; in copy_on_gpu()
131 if (contentArea.fLeft > 0 || contentArea.fTop > 0 || in GrTextureAdjuster()
175 outOffset->set(contentArea->fLeft, contentArea->fRight); in refTextureSafeForParams()
272 domainRect->fLeft = constraintRect.fLeft + kDomainInset; in determine_domain_mode()
287 if (textureContentArea->fLeft > 0 && in determine_domain_mode()
288 textureContentArea->fLeft + filterHalfWidth > constraintRect.fLeft) { in determine_domain_mode()
289 domainRect->fLeft = textureContentArea->fLeft + kDomainInset; in determine_domain_mode()
313 if (textureContentArea->fLeft != 0) { in determine_domain_mode()
314 domainRect->fLeft = textureContentArea->fLeft + kDomainInset; in determine_domain_mode()
[all …]
DGrRect.h15 int16_t fLeft, fTop, fRight, fBottom; member
35 int width() const { return fRight - fLeft; } in width()
38 bool isEmpty() const { return fLeft >= fRight || fTop >= fBottom; } in isEmpty()
43 fLeft = left; in set()
50 fLeft = SkToS16(r.fLeft); in set()
DGrSoftwarePathRenderer.cpp93 rect.iset(devClipBounds.fLeft, devClipBounds.fTop, in draw_around_inv_path()
97 if (devClipBounds.fLeft < devPathBounds.fLeft) { in draw_around_inv_path()
98 rect.iset(devClipBounds.fLeft, devPathBounds.fTop, in draw_around_inv_path()
99 devPathBounds.fLeft, devPathBounds.fBottom); in draw_around_inv_path()
108 rect.iset(devClipBounds.fLeft, devPathBounds.fBottom, in draw_around_inv_path()
/external/pdfium/xfa/src/fwl/src/theme/
Dwidgettp.cpp298 FX_FLOAT fLeft = pRect->left; in Draw3DRect() local
307 pathLT.MoveTo(fLeft, fBottom - fHalfWidth); in Draw3DRect()
308 pathLT.LineTo(fLeft, fTop); in Draw3DRect()
311 pathLT.LineTo(fLeft + fHalfWidth, fTop + fHalfWidth); in Draw3DRect()
312 pathLT.LineTo(fLeft + fHalfWidth, fBottom - fHalfWidth); in Draw3DRect()
313 pathLT.LineTo(fLeft, fBottom - fHalfWidth); in Draw3DRect()
318 pathLT.MoveTo(fLeft + fHalfWidth, fBottom - fWidth); in Draw3DRect()
319 pathLT.LineTo(fLeft + fHalfWidth, fTop + fHalfWidth); in Draw3DRect()
322 pathLT.LineTo(fLeft + fWidth, fTop + fWidth); in Draw3DRect()
323 pathLT.LineTo(fLeft + fWidth, fBottom - fWidth); in Draw3DRect()
[all …]
/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()
/external/skia/bench/
DRTreeBench.cpp84 query.fLeft = rand.nextRangeF(0, GENERATE_EXTENTS); in onDraw()
86 query.fRight = query.fLeft + 1 + rand.nextRangeF(0, GENERATE_EXTENTS/2); in onDraw()
100 out.fLeft = SkIntToScalar(index % GRID_WIDTH); in make_XYordered_rects()
102 out.fRight = out.fLeft + 1 + rand.nextRangeF(0, GENERATE_EXTENTS/3); in make_XYordered_rects()
108 out.fLeft = SkIntToScalar(index / GRID_WIDTH); in make_YXordered_rects()
110 out.fRight = out.fLeft + 1 + rand.nextRangeF(0, GENERATE_EXTENTS/3); in make_YXordered_rects()
117 out.fLeft = rand.nextRangeF(0, GENERATE_EXTENTS); in make_random_rects()
119 out.fRight = out.fLeft + 1 + rand.nextRangeF(0, GENERATE_EXTENTS/5); in make_random_rects()
/external/skia/src/gpu/batches/
DGrCopySurfaceBatch.cpp22 if (clippedSrcRect->fLeft < 0) { in ClipSrcRectAndDstPoint()
23 clippedDstPoint->fX -= clippedSrcRect->fLeft; in ClipSrcRectAndDstPoint()
24 clippedSrcRect->fLeft = 0; in ClipSrcRectAndDstPoint()
27 clippedSrcRect->fLeft -= clippedDstPoint->fX; in ClipSrcRectAndDstPoint()
46 clippedSrcRect->fRight = clippedSrcRect->fLeft + dst->width() - clippedDstPoint->fX; in ClipSrcRectAndDstPoint()
DGrNonAAStrokeRectBatch.cpp28 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()
34 verts[6].set(rect.fLeft + rad, rect.fBottom - rad); in init_stroke_rect_strip()
35 verts[7].set(rect.fLeft - rad, rect.fBottom + rad); in init_stroke_rect_strip()
153 vertex[0].set(args.fRect.fLeft, args.fRect.fTop); in onPrepareDraws()
156 vertex[3].set(args.fRect.fLeft, args.fRect.fBottom); in onPrepareDraws()
157 vertex[4].set(args.fRect.fLeft, args.fRect.fTop); in onPrepareDraws()
/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()
/external/skia/src/effects/
DSkPictureImageFilter.cpp120 offset->fX = bounds.fLeft; 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()
161 canvas.drawBitmap(localDevice.get()->accessBitmap(false), SkIntToScalar(localIBounds.fLeft), in drawPictureAtLocalResolution()
169 fCropRect.fLeft, fCropRect.fTop, fCropRect.fRight, fCropRect.fBottom); in toString()
172 fPicture->cullRect().fLeft, fPicture->cullRect().fTop, in toString()
/external/pdfium/fpdfsdk/src/pdfwindow/
DPWL_Icon.cpp126 void CPWL_Icon::GetIconPosition(FX_FLOAT& fLeft, FX_FLOAT& fBottom) { in GetIconPosition() argument
128 fLeft = 0.0f; in GetIconPosition()
135 fLeft = pA->GetNumber(0); in GetIconPosition()
140 fLeft = 0.0f; in GetIconPosition()
200 FX_FLOAT fLeft, fBottom; in GetImageOffset() local
202 GetIconPosition(fLeft, fBottom); in GetImageOffset()
220 x = (fPlateWidth - fImageFactWidth) * fLeft; in GetImageOffset()
/external/skia/src/fonts/
DSkRandomScalerContext.cpp96 glyph->fLeft = ibounds.fLeft; in generateMetrics()
110 glyph->fLeft = 0; in generateMetrics()
116 glyph->fLeft = ir.fLeft; in generateMetrics()
125 glyph->fLeft -= 1; in generateMetrics()
165 canvas.translate(-SkIntToScalar(glyph.fLeft), in generateImage()
/external/skia/platform_tools/android/apps/canvasproof/src/main/jni/
Dorg_skia_canvasproof_GaneshPictureRenderer.cpp109 jfieldID fLeft, fTop, fRight, fBottom; member
111 : fLeft(nullptr), fTop(nullptr), fRight(nullptr), fBottom(nullptr) {} in AndroidRectHelper()
113 if (!fLeft) { in config()
116 fLeft = env->GetFieldID(rectClass, "left", "I"); in config()
142 env->SetIntField(androidGraphicsRect, help.fLeft, (jint)(iRect.left())); in Java_org_skia_canvasproof_GaneshPictureRenderer_GetCullRect()

12345678910>>...12