Home
last modified time | relevance | path

Searched refs:fRight (Results 1 – 25 of 108) sorted by relevance

12345

/external/skia/include/core/
DSkRect.h21 int32_t fLeft, fTop, fRight, fBottom; member
55 int right() const { return fRight; } in right()
66 int width() const { return fRight - fLeft; } in width()
77 bool isEmpty() const { return fLeft >= fRight || fTop >= fBottom; } in isEmpty()
89 SkIsS16(fRight) && SkIsS16(fBottom); in is16Bit()
99 fRight = right; in set()
110 fRight = x + width; in setXYWH()
119 fRight = fBottom = SK_MaxS32; in setLargest()
128 fRight = fBottom = SK_MinS32; in setLargestInverted()
137 fRight += dx; in offset()
[all …]
DSkScan.h104 xr->fRight = SkIntToFixed(src.fRight); in XRect_set()
115 xr->fRight = SkScalarToFixed(src.fRight); in XRect_set()
124 dst->fRight = SkFixedRound(xr.fRight); in XRect_round()
134 dst->fRight = SkFixedCeil(xr.fRight); in XRect_roundOut()
/external/skia/src/core/
DSkRect.cpp19 if (fLeft >= fRight || fTop >= fBottom) { in join()
24 if (right > fRight) fRight = right; 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()
53 quad[1].set(fRight, fTop); in toQuad()
54 quad[2].set(fRight, fBottom); in toQuad()
117 fLeft < right && left < fRight && fTop < bottom && top < fBottom) in intersect()
121 if (fRight > right) fRight = right; in intersect()
[all …]
DSkLineClipper.cpp65 outer.fRight >= inner.fRight && outer.fBottom >= inner.fBottom; 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()
127 if (tmp[index1].fX > clip.fRight) { in IntersectLine()
128 tmp[index1].set(clip.fRight, sect_with_vertical(src, clip.fRight)); in IntersectLine()
209 } else if (tmp[index0].fX >= clip.fRight) { // wholly to the right in ClipLine()
210 tmp[0].fX = tmp[1].fX = clip.fRight; in ClipLine()
227 if (tmp[index1].fX > clip.fRight) { in ClipLine()
228 r->set(clip.fRight, sect_with_vertical(tmp, clip.fRight)); in ClipLine()
[all …]
DSkEdgeClipper.cpp146 if (pts[0].fX >= clip.fRight) { // wholly to the right in clipMonoQuad()
147 this->appendVLine(clip.fRight, pts[0].fY, pts[2].fY, reverse); in clipMonoQuad()
172 if (pts[2].fX > clip.fRight) { in clipMonoQuad()
173 if (chopMonoQuadAtX(pts, clip.fRight, &t)) { in clipMonoQuad()
175 clamp_le(tmp[1].fX, clip.fRight); in clipMonoQuad()
176 clamp_le(tmp[2].fX, clip.fRight); in clipMonoQuad()
178 this->appendVLine(clip.fRight, tmp[2].fY, tmp[4].fY, reverse); in clipMonoQuad()
182 this->appendVLine(clip.fRight, pts[0].fY, pts[2].fY, reverse); in clipMonoQuad()
343 if (pts[0].fX >= clip.fRight) { // wholly to the right in clipMonoCubic()
344 this->appendVLine(clip.fRight, pts[0].fY, pts[3].fY, reverse); in clipMonoCubic()
[all …]
DSkBlitBWMaskTemplate.h28 SkASSERT(clip.fRight <= srcMask.fBounds.fRight); in SK_BLITBWMASK_NAME()
44 if (cx == maskLeft && clip.fRight == srcMask.fBounds.fRight) in SK_BLITBWMASK_NAME()
61 int rite_edge = clip.fRight - maskLeft; in SK_BLITBWMASK_NAME()
DSkScan_Antihair.cpp266 if (istart >= clip->fRight || istop <= clip->fLeft) { in do_anti_hairline()
274 if (istop > clip->fRight) { in do_anti_hairline()
275 istop = clip->fRight; 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()
463 p1.set(rect.fRight, rect.fTop); in AntiHairRect()
465 p0.set(rect.fRight, rect.fBottom); in AntiHairRect()
553 SkFixedToFDot8(xr.fRight), SkFixedToFDot8(xr.fBottom), in antifillrect()
780 FDot8 R = SkScalarToFDot8(r.fRight + rx); in AntiFrameRect()
810 R = SkScalarToFDot8(r.fRight - rx); in AntiFrameRect()
[all …]
DSkScan_Hairline.cpp64 SkIntToFDot6(bounds.fRight), SkIntToFDot6(bounds.fBottom)); in HairLineRgn()
71 ptsR.fRight += SK_FDot6One; in HairLineRgn()
131 (SkScalarToFixed(rect.fRight) >> 16) + 1, in HairRect()
162 blitter->blitRect(r.fRight - 1, r.fTop + 1, 1, height - 2); // right in HairRect()
340 r.fRight + rx, r.fBottom + ry); in FrameRect()
347 tmp.set(outer.fLeft, outer.fTop, outer.fRight, outer.fTop + dy); in FrameRect()
355 tmp.fLeft = outer.fRight - dx; in FrameRect()
356 tmp.fRight = outer.fRight; in FrameRect()
DSkRegion.cpp69 bounds->fRight = rite; 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()
328 runs[3] = bounds.fRight; in BuildRectRuns()
495 fBounds.fRight + dx, fBounds.fBottom + dy); in translate()
1068 SkASSERT(rite <= bounds.fRight); in validate_line()
1082 … SkASSERT(fBounds.fLeft == 0 && fBounds.fTop == 0 && fBounds.fRight == 0 && fBounds.fBottom == 0); in validate()
1119 … SkDebugf(" rgn: [%d %d %d %d]", fBounds.fLeft, fBounds.fTop, fBounds.fRight, fBounds.fBottom); in dump()
1177 fRect.fRight = runs[1]; in next()
1192 fRect.fRight = runs[2]; in next()
[all …]
DSkAAClip.cpp426 fBounds.fRight -= riteZeros; in trimLeftRight()
761 int w = r.fRight - r.fLeft; in setRegion()
1158 fBuilder->addRun(fLeft, y - 1, 0, fRight - fLeft); in checkForYGap()
1169 fRight = builder->getBounds().fRight; in BuilderBlitter()
1244 if (right > fRight) { in blitAntiH()
1246 localCount -= right - fRight; in blitAntiH()
1263 int fRight; member in SkAAClip::BuilderBlitter
1387 fBoundsRight = bounds.fRight; in RowIter()
1389 fRight = bounds.fLeft + row[0]; in RowIter()
1390 SkASSERT(fRight <= fBoundsRight); in RowIter()
[all …]
DSkPath.cpp25 dst->fRight = SkMaxScalar(dst->fRight, src.fRight); in joinNoEmptyChecks()
568 this->addRect(rect.fLeft, rect.fTop, rect.fRight, rect.fBottom, dir); in addRect()
623 this->moveTo(rect.fRight - rx, rect.fTop); in addRoundRect()
638 this->lineTo(rect.fRight - rx, rect.fBottom); // bottom in addRoundRect()
640 this->cubicTo(rect.fRight - rx + sx, rect.fBottom, in addRoundRect()
641 rect.fRight, rect.fBottom - ry + sy, in addRoundRect()
642 rect.fRight, rect.fBottom - ry); // bot-right in addRoundRect()
644 this->lineTo(rect.fRight, rect.fTop + ry); in addRoundRect()
646 this->cubicTo(rect.fRight, rect.fTop + ry - sy, in addRoundRect()
647 rect.fRight - rx + sx, rect.fTop, in addRoundRect()
[all …]
DSkBlitter.cpp119 if (cx == maskLeft && clip.fRight == mask.fBounds.fRight) { in blitMask()
128 int rite_edge = clip.fRight - maskLeft; in blitMask()
274 if (right > fClipRect.fRight) { in blitH()
275 right = fClipRect.fRight; in blitH()
286 if (!y_in_rect(y, fClipRect) || left >= fClipRect.fRight) { in blitAntiH()
307 if (x1 > fClipRect.fRight) { in blitAntiH()
308 x1 = fClipRect.fRight; in blitAntiH()
361 if (r.fRight != left + width + 2) { in blitAntiRect()
362 SkASSERT(r.fRight < left + width + 2); in blitAntiRect()
418 SkASSERT(left >= bounds.fLeft && right <= bounds.fRight); in blitAntiH()
[all …]
/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()
31 fRight = SkToS16(r.fRight); in set()
/external/webkit/Source/WebCore/platform/graphics/android/rendering/
DGLExtras.cpp54 if (srcRect.fRight <= srcRect.fLeft || srcRect.fBottom <= srcRect.fTop) { in drawRing()
81 r.set(ir.fLeft, ir.fTop, ir.fRight, ir.fBottom); in drawRegion()
105 line.fRight = r.fRight + 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/skia/src/utils/
DSkNinePatch.cpp92 verts->set(bounds.fRight, vy); verts++; in fillRow()
258 0, margins.fLeft, bitmap.width() - margins.fRight, bitmap.width() in drawNineViaRects()
265 dst.fRight - SkIntToScalar(margins.fRight), dst.fRight in drawNineViaRects()
274 (SkIntToScalar(margins.fLeft) + SkIntToScalar(margins.fRight)); in drawNineViaRects()
293 s.fRight = srcX[x+1]; in drawNineViaRects()
295 d.fRight = dstX[x+1]; in drawNineViaRects()
315 xDivs[1] = bitmap.width() - margins.fRight; in DrawNine()
321 (margins.fLeft + margins.fRight); in DrawNine()
DSkCullPoints.cpp30 (x0 > r.fRight && x1 > r.fRight) || in sect_test()
59 quad[1].set(r.fRight, r.fTop); in toQuad()
60 quad[2].set(r.fRight, r.fBottom); in toQuad()
/external/skia/src/svg/
DSkSVGSVG.cpp49 box.fRight = SkScalarDiv(viewBox[2], width); in translate()
52 box.fRight == SK_Scalar1 && box.fBottom == SK_Scalar1) in translate()
65 if (box.fRight != SK_Scalar1) { in translate()
67 x.appendScalar(box.fRight); in translate()
/external/webkit/Source/WebCore/platform/graphics/android/layers/
DScrollableLayerAndroid.cpp43 out->fRight = m_scrollLimits.width(); in getScrollRect()
74 else if (transformedRect.fRight > m_scrollLimits.fRight) in scrollRectIntoView()
75 x = transformedRect.fRight - std::max(m_scrollLimits.width(), transformedRect.width()); in scrollRectIntoView()
/external/skia/src/animator/
DSkBoundable.cpp17 fBounds.fRight = 0; in SkBoundable()
33 rect->fRight = SkIntToScalar(fBounds.fRight); in getBounds()
DSkDrawRectangle.cpp30 SK_MEMBER_ALIAS(right, fRect.fRight, 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/chromium/chrome/common/extensions/
Dextension_action.cc152 rect.fRight = rect.fLeft + SkIntToScalar(badge_width); in PaintBadge()
154 rect.fRight = SkIntToScalar(bounds.right()); in PaintBadge()
155 rect.fLeft = rect.fRight - badge_width; in PaintBadge()
182 rect.fRight - SkIntToScalar(gradient_right->width()), rect.fTop); in PaintBadge()
187 rect.fRight -= kPadding; in PaintBadge()
/external/skia/src/views/
DSkBorderView.cpp16 fRight(SkIntToScalar(0)), in SkBorderView()
74 evt.findScalar("rightMargin", &fRight); in onEvent()
81 fMargin.set(fLeft, fTop, fRight, fBottom); in onEvent()
DSkProgressView.cpp92 r.fRight = r.fLeft + SkScalarMul(r.width(), SkFixedToScalar(percent)); in onDraw()
101 r.fLeft = r.fRight; in onDraw()
102 r.fRight = this->width() - SK_Scalar1; in onDraw()
/external/skia/src/pdf/
DSkPDFImage.cpp68 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()
158 for (int x = srcRect.fLeft; x < srcRect.fRight; x += 8) { in extractImageData()
165 if (x + 7 < srcRect.fRight && alphaDst[0] != 0xFF) { in extractImageData()
168 if (x + 7 < srcRect.fRight && alphaDst[0]) { in extractImageData()
196 for (int x = srcRect.fLeft; x < srcRect.fRight; x++) { in extractImageData()
/external/skia/include/views/
DSkBorderView.h23 SkScalar getRight() const { return fRight; } in getRight()
34 SkScalar fLeft, fRight, fTop, fBottom; //margin on each side variable

12345