Home
last modified time | relevance | path

Searched refs:fBottom (Results 1 – 25 of 658) sorted by relevance

12345678910>>...27

/third_party/skia/include/core/
DSkRect.h32 int32_t fBottom; //!< larger y-axis bounds member
132 int32_t bottom() const { return fBottom; } in bottom()
163 int32_t height() const { return Sk32_can_overflow_sub(fBottom, fTop); } in height()
186 int64_t height64() const { return (int64_t)fBottom - (int64_t)fTop; } in height64()
194 bool isEmpty64() const { return fRight <= fLeft || fBottom <= fTop; } in isEmpty64()
253 fBottom = bottom; in setLTRB()
268 fBottom = Sk32_sat_add(y, height); in setXYWH()
275 fBottom = height; in setWH()
282 fBottom = size.height(); in setSize()
299 Sk32_sat_add(fRight, dx), Sk32_sat_add(fBottom, dy), in makeOffset()
[all …]
/third_party/flutter/skia/include/core/
DSkRect.h31 int32_t fBottom; //!< larger y-axis bounds member
119 int32_t bottom() const { return fBottom; } in bottom()
150 int32_t height() const { return Sk32_can_overflow_sub(fBottom, fTop); } in height()
173 int64_t height64() const { return (int64_t)fBottom - (int64_t)fTop; } in height64()
181 bool isEmpty64() const { return fRight <= fLeft || fBottom <= fTop; } in isEmpty64()
240 fBottom = bottom; in set()
268 fBottom = Sk32_sat_add(y, height); in setXYWH()
285 Sk32_sat_add(fRight, dx), Sk32_sat_add(fBottom, dy), in makeOffset()
303 Sk32_sat_sub(fRight, dx), Sk32_sat_sub(fBottom, dy), in makeInset()
321 Sk32_sat_add(fRight, dx), Sk32_sat_add(fBottom, dy), in makeOutset()
[all …]
/third_party/skia/src/core/
DSkRect.cpp18 std::min(a.fBottom, b.fBottom) in intersect()
29 if (r.fLeft >= r.fRight || r.fTop >= r.fBottom) { in join()
34 if (fLeft >= fRight || fTop >= fBottom) { in join()
40 if (r.fBottom > fBottom) fBottom = r.fBottom; in join()
51 quad[2].set(fRight, fBottom); in toQuad()
52 quad[3].set(fLeft, fBottom); in toQuad()
112 CHECK_INTERSECT(r.fLeft, r.fTop, r.fRight, r.fBottom, fLeft, fTop, fRight, fBottom); in intersect()
118 CHECK_INTERSECT(a.fLeft, a.fTop, a.fRight, a.fBottom, b.fLeft, b.fTop, b.fRight, b.fBottom); in intersect()
134 fBottom = std::max(fBottom, r.fBottom); in join()
158 line.appendf(" %s /* %f */);", set_scalar(&tmp, fBottom, asType), fBottom); in dump()
[all …]
DSkScan.h108 xr->fBottom = SkIntToFixed(src.fBottom); in XRect_set()
119 xr->fBottom = SkScalarToFixed(src.fBottom); in XRect_set()
128 dst->fBottom = SkFixedRoundToInt(xr.fBottom); in XRect_round()
138 dst->fBottom = SkFixedCeilToInt(xr.fBottom); in XRect_roundOut()
DSkLineClipper.cpp87 outer.fRight >= inner.fRight && outer.fBottom >= inner.fBottom; in containsNoEmptyCheck()
105 nestedLT(bounds.fBottom, clip.fTop, bounds.height()) || in IntersectLine()
106 nestedLT(clip.fBottom, bounds.fTop, bounds.height())) { in IntersectLine()
127 if (tmp[index1].fY > clip.fBottom) { in IntersectLine()
128 tmp[index1].set(sect_with_horizontal(src, clip.fBottom), clip.fBottom); in IntersectLine()
192 if (pts[index0].fY >= clip.fBottom) { // we're below the clip in ClipLine()
206 if (tmp[index1].fY > clip.fBottom) { in ClipLine()
207 tmp[index1].set(sect_with_horizontal(pts, clip.fBottom), clip.fBottom); in ClipLine()
DSkRectPriv.h47 r->fBottom = std::max(pt.fY, r->fBottom); in GrowToInclude()
54 SkFitsInFixed(r.fRight) && SkFitsInFixed(r.fBottom); in FitsInFixed()
59 SkTFitsIn<int16_t>(r.fRight) && SkTFitsIn<int16_t>(r.fBottom); in Is16Bit()
68 return SkScalarHalf(r.fBottom) - SkScalarHalf(r.fTop); in HalfHeight()
/third_party/skia/src/gpu/geometry/
DGrRect.h17 int16_t fLeft, fTop, fRight, fBottom; member
44 int height() const { return fBottom - fTop; } in height()
46 bool isEmpty() const { return fLeft >= fRight || fTop >= fBottom; } in isEmpty()
54 fBottom = bottom; in set()
61 fBottom = SkToS16(r.fBottom); in set()
68 fBottom += dy; in offset()
76 SkASSERT(!a.isFinite() || (a.fLeft <= a.fRight && a.fTop <= a.fBottom)); in GrRectsOverlap()
77 SkASSERT(!b.isFinite() || (b.fLeft <= b.fRight && b.fTop <= b.fBottom)); in GrRectsOverlap()
78 return a.fRight > b.fLeft && a.fBottom > b.fTop && b.fRight > a.fLeft && b.fBottom > a.fTop; in GrRectsOverlap()
85 SkASSERT(!a.isFinite() || (a.fLeft <= a.fRight && a.fTop <= a.fBottom)); in GrRectsTouchOrOverlap()
[all …]
DGrTriangulator.cpp252 fTop->fID, fBottom->fID, other.fTop->fID, other.fBottom->fID); in intersect()
253 if (fTop == other.fTop || fBottom == other.fBottom || in intersect()
254 fTop == other.fBottom || fBottom == other.fTop) { in intersect()
262 fLine, fTop->fPoint, fBottom->fPoint, in intersect()
263 other.fLine, other.fTop->fPoint, other.fBottom->fPoint, in intersect()
282 *alpha = std::max((1.0 - s) * fTop->fAlpha + s * fBottom->fAlpha, in intersect()
283 (1.0 - t) * other.fTop->fAlpha + t * other.fBottom->fAlpha); in intersect()
294 TESS_LOG("removing edge %g -> %g\n", edge->fTop->fID, edge->fBottom->fID); in remove()
321 vertices.append(e->fBottom); in emitMonotonePoly()
324 vertices.prepend(e->fBottom); in emitMonotonePoly()
[all …]
/third_party/flutter/skia/src/gpu/geometry/
DGrRect.h17 int16_t fLeft, fTop, fRight, fBottom; member
44 int height() const { return fBottom - fTop; } in height()
46 bool isEmpty() const { return fLeft >= fRight || fTop >= fBottom; } in isEmpty()
54 fBottom = bottom; in set()
61 fBottom = SkToS16(r.fBottom); in set()
69 SkASSERT(!a.isFinite() || (a.fLeft <= a.fRight && a.fTop <= a.fBottom)); in GrRectsOverlap()
70 SkASSERT(!b.isFinite() || (b.fLeft <= b.fRight && b.fTop <= b.fBottom)); in GrRectsOverlap()
71 return a.fRight > b.fLeft && a.fBottom > b.fTop && b.fRight > a.fLeft && b.fBottom > a.fTop; in GrRectsOverlap()
78 SkASSERT(!a.isFinite() || (a.fLeft <= a.fRight && a.fTop <= a.fBottom)); in GrRectsTouchOrOverlap()
79 SkASSERT(!b.isFinite() || (b.fLeft <= b.fRight && b.fTop <= b.fBottom)); in GrRectsTouchOrOverlap()
[all …]
/third_party/flutter/skia/src/pathops/
DSkPathOpsRect.h15 double fLeft, fTop, fRight, fBottom; member
21 fBottom = SkTMax(fBottom, pt.fY); in add()
26 && approximately_between(fTop, pt.fY, fBottom); in contains()
33 SkASSERT(fTop <= fBottom); in intersects()
35 SkASSERT(r.fTop <= r.fBottom); in intersects()
36 return r.fLeft <= fRight && fLeft <= r.fRight && r.fTop <= fBottom && fTop <= r.fBottom; in intersects()
41 fTop = fBottom = pt.fY; in set()
49 return fBottom - fTop; in height()
73 return fLeft <= fRight && fTop <= fBottom; in valid()
DSkPathOpsBounds.h18 && AlmostLessOrEqualUlps(a.fTop, b.fBottom) in Intersects()
19 && AlmostLessOrEqualUlps(b.fTop, a.fBottom); in Intersects()
29 if (bottom > fBottom) fBottom = bottom; in add()
33 add(toAdd.fLeft, toAdd.fTop, toAdd.fRight, toAdd.fBottom); in add()
40 if (pt.fY > fBottom) fBottom = pt.fY; in add()
47 if (pt.fY > fBottom) fBottom = SkDoubleToScalar(pt.fY); in add()
54 && AlmostLessOrEqualUlps(pt.fY, fBottom); in almostContains()
59 fRight >= pt.fX && fBottom >= pt.fY; in contains()
/third_party/skia/src/pathops/
DSkPathOpsRect.h15 double fLeft, fTop, fRight, fBottom; member
21 fBottom = std::max(fBottom, pt.fY); in add()
26 && approximately_between(fTop, pt.fY, fBottom); in contains()
33 SkASSERT(fTop <= fBottom); in intersects()
35 SkASSERT(r.fTop <= r.fBottom); in intersects()
36 return r.fLeft <= fRight && fLeft <= r.fRight && r.fTop <= fBottom && fTop <= r.fBottom; in intersects()
41 fTop = fBottom = pt.fY; in set()
49 return fBottom - fTop; in height()
73 return fLeft <= fRight && fTop <= fBottom; in valid()
DSkPathOpsBounds.h18 && AlmostLessOrEqualUlps(a.fTop, b.fBottom) in Intersects()
19 && AlmostLessOrEqualUlps(b.fTop, a.fBottom); in Intersects()
29 if (bottom > fBottom) fBottom = bottom; in add()
33 add(toAdd.fLeft, toAdd.fTop, toAdd.fRight, toAdd.fBottom); in add()
40 if (pt.fY > fBottom) fBottom = pt.fY; in add()
47 if (pt.fY > fBottom) fBottom = SkDoubleToScalar(pt.fY); in add()
54 && AlmostLessOrEqualUlps(pt.fY, fBottom); in almostContains()
59 fRight >= pt.fX && fBottom >= pt.fY; in contains()
/third_party/flutter/skia/src/gpu/gl/
DGrGLIRect.h22 GrGLint fBottom; member
33 GR_STATIC_ASSERT(4 == offsetof(GrGLIRect, fBottom)); in asInts()
41 GR_GL_CALL(gl, Viewport(fLeft, fBottom, fWidth, fHeight)); in pushToGLViewport()
45 GR_GL_CALL(gl, Scissor(fLeft, fBottom, fWidth, fHeight)); in pushToGLScissor()
73 fBottom = fullHeight - topOffset - height; in setRelativeTo()
75 fBottom = topOffset; in setRelativeTo()
85 fBottom <= 0 && in contains()
87 fBottom + fHeight >= height; in contains()
90 void invalidate() {fLeft = fWidth = fBottom = fHeight = -1;} in invalidate()
91 bool isInvalid() const { return fLeft == -1 && fWidth == -1 && fBottom == -1 in isInvalid()
/third_party/flutter/skia/src/core/
DSkRect.cpp19 if (fLeft >= fRight || fTop >= fBottom) { in join()
25 if (bottom > fBottom) fBottom = bottom; in join()
36 quad[2].set(fRight, fBottom); in toQuad()
37 quad[3].set(fLeft, fBottom); in toQuad()
97 CHECK_INTERSECT(left, top, right, bottom, fLeft, fTop, fRight, fBottom); in intersect()
103 return this->intersect(r.fLeft, r.fTop, r.fRight, r.fBottom); in intersect()
107 CHECK_INTERSECT(a.fLeft, a.fTop, a.fRight, a.fBottom, b.fLeft, b.fTop, b.fRight, b.fBottom); in intersect()
119 if (fLeft >= fRight || fTop >= fBottom) { in join()
125 fBottom = SkMaxScalar(fBottom, bottom); in join()
149 line.appendf(" %s /* %f */);", set_scalar(&tmp, fBottom, asType), fBottom); in dump()
[all …]
DSkScan.h103 xr->fBottom = SkIntToFixed(src.fBottom); in XRect_set()
114 xr->fBottom = SkScalarToFixed(src.fBottom); in XRect_set()
123 dst->fBottom = SkFixedRoundToInt(xr.fBottom); in XRect_round()
133 dst->fBottom = SkFixedCeilToInt(xr.fBottom); in XRect_roundOut()
DSkLineClipper.cpp87 outer.fRight >= inner.fRight && outer.fBottom >= inner.fBottom; in containsNoEmptyCheck()
105 nestedLT(bounds.fBottom, clip.fTop, bounds.height()) || in IntersectLine()
106 nestedLT(clip.fBottom, bounds.fTop, bounds.height())) { in IntersectLine()
127 if (tmp[index1].fY > clip.fBottom) { in IntersectLine()
128 tmp[index1].set(sect_with_horizontal(src, clip.fBottom), clip.fBottom); in IntersectLine()
192 if (pts[index0].fY >= clip.fBottom) { // we're below the clip in ClipLine()
206 if (tmp[index1].fY > clip.fBottom) { in ClipLine()
207 tmp[index1].set(sect_with_horizontal(pts, clip.fBottom), clip.fBottom); in ClipLine()
DSkEdgeClipper.cpp16 return bounds.fTop >= clip.fBottom || bounds.fBottom <= clip.fTop; in quick_reject()
122 if (pts[2].fY > clip.fBottom) { in chop_quad_in_Y()
123 if (chopMonoQuadAtY(pts, clip.fBottom, &t)) { in chop_quad_in_Y()
126 clamp_le(tmp[1].fY, clip.fBottom); in chop_quad_in_Y()
127 tmp[2].fY = clip.fBottom; in chop_quad_in_Y()
135 if (pts[i].fY > clip.fBottom) { in chop_quad_in_Y()
136 pts[i].fY = clip.fBottom; in chop_quad_in_Y()
149 if (pts[2].fY <= clip.fTop || pts[0].fY >= clip.fBottom) { in clipMonoQuad()
315 if (pts[3].fY > clip.fBottom) { in chop_cubic_in_Y()
317 chop_mono_cubic_at_y(pts, clip.fBottom, tmp); in chop_cubic_in_Y()
[all …]
/third_party/flutter/skia/docs/examples/
DCanvas_drawRRect.cpp12 rRect.setNinePatch(outer, radii.fLeft, radii.fTop, radii.fRight, radii.fBottom); in draw()
16 outer.fLeft + radii.fLeft, outer.fBottom, paint); in draw()
18 outer.fRight - radii.fRight, outer.fBottom, paint); in draw()
21 canvas->drawLine(outer.fLeft, outer.fBottom - radii.fBottom, in draw()
22 outer.fRight, outer.fBottom - radii.fBottom, paint); in draw()
DRect_equal_operator.cpp10 test.fLeft, test.fTop, test.fRight, test.fBottom, in draw()
11 negZero.fLeft, negZero.fTop, negZero.fRight, negZero.fBottom, in draw()
14 test.fRight == negZero.fRight && test.fBottom == negZero.fBottom ? in draw()
/third_party/skia/docs/examples/
DCanvas_drawRRect.cpp12 rRect.setNinePatch(outer, radii.fLeft, radii.fTop, radii.fRight, radii.fBottom); in draw()
16 outer.fLeft + radii.fLeft, outer.fBottom, paint); in draw()
18 outer.fRight - radii.fRight, outer.fBottom, paint); in draw()
21 canvas->drawLine(outer.fLeft, outer.fBottom - radii.fBottom, in draw()
22 outer.fRight, outer.fBottom - radii.fBottom, paint); in draw()
DRect_equal_operator.cpp10 test.fLeft, test.fTop, test.fRight, test.fBottom, in draw()
12 negZero.fLeft, negZero.fTop, negZero.fRight, negZero.fBottom, in draw()
14 test.fRight == negZero.fRight && test.fBottom == negZero.fBottom) ? in draw()
/third_party/flutter/skia/src/gpu/
DGrClip.h76 innerClipBounds.fBottom > innerClipBounds.fTop + kBoundsTolerance && in IsInsideClip()
80 innerClipBounds.fBottom > queryBounds.fBottom - kBoundsTolerance; in IsInsideClip()
94 outerClipBounds.fBottom - outerClipBounds.fTop <= kBoundsTolerance || in IsOutsideClip()
98 outerClipBounds.fTop >= queryBounds.fBottom - kBoundsTolerance || in IsOutsideClip()
100 outerClipBounds.fBottom <= queryBounds.fTop + kBoundsTolerance; in IsOutsideClip()
110 SkScalarCeilToInt(bounds.fBottom - kBoundsTolerance)); in GetPixelIBounds()
120 SkScalarCeilToScalar(bounds.fBottom - kBoundsTolerance)); in GetPixelBounds()
130 SkScalarAbs(SkScalarRoundToScalar(rect.fBottom) - rect.fBottom) <= kBoundsTolerance; in IsPixelAligned()
DGrTessellator.cpp346 , fBottom(bottom) in Edge()
366 Vertex* fBottom; // The bottom vertex in vertex-sort-order. member
393 fLine = Line(fTop, fBottom); in recompute()
397 fTop->fID, fBottom->fID, in intersect()
398 other.fTop->fID, other.fBottom->fID); in intersect()
399 if (fTop == other.fTop || fBottom == other.fBottom) { in intersect()
422 *alpha = (1.0 - s) * fTop->fAlpha + s * fBottom->fAlpha; in intersect()
425 *alpha = (1.0 - t) * other.fTop->fAlpha + t * other.fBottom->fAlpha; in intersect()
528 prev->fID, next->fID, e->fEdge->fTop->fID, e->fEdge->fBottom->fID, p.fX, p.fY, alpha); in create_event()
540 Vertex* bottom = edge->fEdge->fBottom; in create_event()
[all …]
/third_party/skia/tests/
DM44Test.cpp244 SkV2 br = map2d(m, {src.fRight, src.fBottom}); in DEF_TEST()
245 SkV2 bl = map2d(m, {src.fLeft, src.fBottom}); in DEF_TEST()
249 assertEdges(tl.y, bl.y, dst.fTop, dst.fBottom); in DEF_TEST()
250 assertEdges(tr.y, br.y, dst.fTop, dst.fBottom); in DEF_TEST()
263 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(actual.fBottom, expected.fBottom, e.fBottom), in DEF_TEST()
264 "Expected %g == %g", actual.fBottom, expected.fBottom); in DEF_TEST()
278 {src.fRight, src.fBottom, 0.f, 1.f}, in DEF_TEST()
279 {src.fLeft, src.fBottom, 0.f, 1.f}}; in DEF_TEST()
296 REPORTER_ASSERT(reporter, actual.fTop <= y && y <= actual.fBottom, in DEF_TEST()
298 y, actual.fTop, actual.fBottom); in DEF_TEST()
[all …]

12345678910>>...27