Home
last modified time | relevance | path

Searched refs:fRect (Results 1 – 25 of 96) sorted by relevance

1234

/third_party/skia/src/gpu/
DGrScissorState.h26 , fRect(SkIRect::MakeSize(rtDims)) {} in GrScissorState()
28 void setDisabled() { fRect = SkIRect::MakeSize(fRTSize); } in setDisabled()
35 if (!fRect.intersect(rect)) { in intersect()
36 fRect.setEmpty(); in intersect()
49 if (fRect.fLeft == 0 && fRect.fTop == 0 && fRect.fRight >= logicalDimensions.fWidth && in relaxTest()
50 fRect.fBottom >= logicalDimensions.fHeight) { in relaxTest()
59 return fRTSize == other.fRTSize && fRect == other.fRect;
64 SkASSERT(fRect.isEmpty() || SkIRect::MakeSize(fRTSize).contains(fRect)); in enabled()
67 return fRect.fLeft > 0 || fRect.fTop > 0 || in enabled()
68 fRect.fRight < fRTSize.fWidth || fRect.fBottom < fRTSize.fHeight; in enabled()
[all …]
/third_party/flutter/skia/src/core/
DSkRRect.cpp28 if (fRect.width() < xRad+xRad || fRect.height() < yRad+yRad) { in setRectXY()
30 SkScalar scale = SkMinScalar(sk_ieee_float_divide(fRect. width(), xRad + xRad), in setRectXY()
31 sk_ieee_float_divide(fRect.height(), yRad + yRad)); in setRectXY()
47 if (xRad >= SkScalarHalf(fRect.width()) && yRad >= SkScalarHalf(fRect.height())) { in setRectXY()
73 if (leftRad + rightRad > fRect.width()) { in setNinePatch()
74 scale = fRect.width() / (leftRad + rightRad); in setNinePatch()
76 if (topRad + bottomRad > fRect.height()) { in setNinePatch()
77 scale = SkMinScalar(scale, fRect.height() / (topRad + bottomRad)); in setNinePatch()
88 if (leftRad >= SkScalarHalf(fRect.width()) && topRad >= SkScalarHalf(fRect.height())) { in setNinePatch()
169 fRect = rect.makeSorted(); in initializeRect()
[all …]
/third_party/skia/src/core/
DSkRRect.cpp26 SkScalar xRad = SkRectPriv::HalfWidth(fRect); in setOval()
27 SkScalar yRad = SkRectPriv::HalfHeight(fRect); in setOval()
52 if (fRect.width() < xRad+xRad || fRect.height() < yRad+yRad) { in setRectXY()
54 SkScalar scale = std::min(sk_ieee_float_divide(fRect. width(), xRad + xRad), in setRectXY()
55 sk_ieee_float_divide(fRect.height(), yRad + yRad)); in setRectXY()
71 if (xRad >= SkScalarHalf(fRect.width()) && yRad >= SkScalarHalf(fRect.height())) { in setRectXY()
97 if (leftRad + rightRad > fRect.width()) { in setNinePatch()
98 scale = fRect.width() / (leftRad + rightRad); in setNinePatch()
100 if (topRad + bottomRad > fRect.height()) { in setNinePatch()
101 scale = std::min(scale, fRect.height() / (topRad + bottomRad)); in setNinePatch()
[all …]
DSkGlyph.h186 : fRect{left, top, (int16_t)-right, (int16_t)-bottom} { in SkGlyphRect()
191 return fRect[0] >= -fRect[2] || fRect[1] >= -fRect[3]; in empty()
194 return SkRect::MakeLTRB(fRect[0], fRect[1], -fRect[2], -fRect[3]); in rect()
197 return SkIRect::MakeLTRB(fRect[0], fRect[1], -fRect[2], -fRect[3]); in iRect()
200 return SkGlyphRect{fRect + Storage{x, y, SkTo<int16_t>(-x), SkTo<int16_t>(-y)}}; in offset()
202 skvx::Vec<2, int16_t> topLeft() const { return {fRect[0], fRect[1]}; } in topLeft()
208 SkGlyphRect(Storage rect) : fRect{rect} { } in SkGlyphRect()
209 Storage fRect; variable
222 return skvx::min(a.fRect, b.fRect); in rect_union()
225 return skvx::max(a.fRect, b.fRect); in rect_intersection()
/third_party/flutter/skia/src/gpu/
DGrScissorState.h16 GrScissorState(const SkIRect& rect) : fEnabled(true), fRect(rect) {} in GrScissorState()
18 void set(const SkIRect& rect) { fRect = rect; fEnabled = true; } in set()
24 return fRect.intersect(rect); in intersect()
28 (false == fEnabled || fRect == other.fRect);
33 const SkIRect& rect() const { return fRect; } in rect()
37 SkIRect fRect; variable
/third_party/skia/experimental/sorttoy/
DCmds.h113 fRect.fLeft, fRect.fTop, fRect.fRight, fRect.fBottom, in dump()
122 SkIRect fRect; variable
151 fRect.fLeft, fRect.fTop, fRect.fRight, fRect.fBottom); in dump()
157 fRect.offset(trans.fX, trans.fY); in mutate()
162 SkIRect rect() const { return fRect; } in rect()
169 SkIRect fRect; variable
DCmds.cpp51 , fRect(r) in DrawCmd()
64 , fRect(r) in DrawCmd()
86 return shared_contains(x, y, fShape, fRect); in contains()
103 c->drawShape(fID, fShape, fRect, fPaint); in execute()
134 c->drawRect(SkRect::Make(fRect), p); in execute()
136 c->drawOval(SkRect::Make(fRect), p); in execute()
149 for (int y = fRect.fTop; y < fRect.fBottom; ++y) { in rasterize()
150 for (int x = fRect.fLeft; x < fRect.fRight; ++x) { in rasterize()
186 , fRect(r) { in ClipCmd()
192 , fRect(r) in ClipCmd()
[all …]
/third_party/flutter/skia/include/core/
DSkRRect.h102 SkScalar width() const { return fRect.width(); } in width()
109 SkScalar height() const { return fRect.height(); } in height()
204 SkScalar xRad = SkScalarHalf(fRect.width()); in setOval()
205 SkScalar yRad = SkScalarHalf(fRect.height()); in setOval()
281 const SkRect& rect() const { return fRect; } in rect()
298 const SkRect& getBounds() const { return fRect; } in getBounds()
310 return a.fRect == b.fRect && SkScalarsEqual(&a.fRadii[0].fX, &b.fRadii[0].fX, 8);
323 return a.fRect != b.fRect || !SkScalarsEqual(&a.fRadii[0].fX, &b.fRadii[0].fX, 8);
405 fRect.offset(dx, dy); in offset()
415 return SkRRect(fRect.makeOffset(dx, dy), fRadii, fType); in makeOffset()
[all …]
/third_party/skia/experimental/graphite/src/geom/
DShape.cpp33 case Type::kRect: return fRect.contains(rect); in conservativeContains()
44 case Type::kRect: return fRect.contains(Rect::Point(point)); in conservativeContains()
75 case Type::kLine: return fRect.makeSorted(); // sorting corners computes bbox of segment in bounds()
76 case Type::kRect: return fRect; // assuming it's sorted in bounds()
91 case Type::kLine: builder.moveTo(fRect.left(), fRect.top()) in asPath()
92 .lineTo(fRect.right(), fRect.bot()); break; in asPath()
93 case Type::kRect: builder.addRect(fRect.asSkRect()); break; in asPath()
DShape.h105 float2 p0() const { SkASSERT(this->isLine()); return fRect.topLeft(); } in p0()
106 float2 p1() const { SkASSERT(this->isLine()); return fRect.botRight(); } in p1()
107 const Rect& rect() const { SkASSERT(this->isRect()); return fRect; } in rect()
124 fRect = Rect(p0, p1); in setLine()
130 fRect = rect; in setRect()
164 Rect fRect; // p0 = top-left, p1 = bot-right if type is kLine (may be unsorted) member
/third_party/flutter/skia/src/codec/
DSkFrameHolder.h34 fRect.setEmpty(); in SkFrame()
102 fRect.setXYWH(x, y, width, height); in setXYWH()
108 SkIRect frameRect() const { return fRect; } in frameRect()
110 int xOffset() const { return fRect.x(); } in xOffset()
111 int yOffset() const { return fRect.y(); } in yOffset()
112 int width() const { return fRect.width(); } in width()
113 int height() const { return fRect.height(); } in height()
154 SkIRect fRect; variable
/third_party/skia/src/codec/
DSkFrameHolder.h34 fRect.setEmpty(); in SkFrame()
102 fRect.setXYWH(x, y, width, height); in setXYWH()
108 SkIRect frameRect() const { return fRect; } in frameRect()
110 int xOffset() const { return fRect.x(); } in xOffset()
111 int yOffset() const { return fRect.y(); } in yOffset()
112 int width() const { return fRect.width(); } in width()
113 int height() const { return fRect.height(); } in height()
159 SkIRect fRect; variable
/third_party/skia/include/core/
DSkRRect.h91 SkScalar width() const { return fRect.width(); } in width()
98 SkScalar height() const { return fRect.height(); } in height()
260 const SkRect& rect() const { return fRect; } in rect()
275 const SkRect& getBounds() const { return fRect; } in getBounds()
287 return a.fRect == b.fRect && SkScalarsEqual(&a.fRadii[0].fX, &b.fRadii[0].fX, 8);
300 return a.fRect != b.fRect || !SkScalarsEqual(&a.fRadii[0].fX, &b.fRadii[0].fX, 8);
384 fRect.offset(dx, dy); in offset()
394 return SkRRect(fRect.makeOffset(dx, dy), fRadii, fType); in makeOffset()
485 : fRect(rect) in SkRRect()
500 SkRect fRect = SkRect::MakeEmpty();
/third_party/skia/modules/sksg/src/
DSkSGRect.cpp16 Rect::Rect(const SkRect& rect) : fRect(rect) {} in Rect()
19 canvas->clipRect(fRect, SkClipOp::kIntersect, antiAlias); in onClip()
23 canvas->drawRect(fRect, paint); in onDraw()
27 return fRect.contains(p.x(), p.y()); in onContains()
33 return fRect; in onRevalidate()
37 return SkPath::Rect(fRect, this->getDirection(), this->getInitialPointIndex()); in onAsPath()
/third_party/flutter/skia/modules/sksg/src/
DSkSGRect.cpp16 Rect::Rect(const SkRect& rect) : fRect(rect) {} in Rect()
19 canvas->clipRect(fRect, SkClipOp::kIntersect, antiAlias); in onClip()
23 canvas->drawRect(fRect, paint); in onDraw()
27 return fRect.contains(p.x(), p.y()); in onContains()
33 return fRect; in onRevalidate()
38 path.addRect(fRect, this->getDirection(), this->getInitialPointIndex()); in onAsPath()
/third_party/flutter/skia/tests/
DTracingTest.cpp63 TracingRect(SkRect rect) : fRect(rect) {} in TracingRect()
67 fRect.fLeft, fRect.fTop, fRect.fRight, fRect.fBottom); in toString()
70 SkRect fRect; member
/third_party/skia/tests/
DTracingTest.cpp63 TracingRect(SkRect rect) : fRect(rect) {} in TracingRect()
67 fRect.fLeft, fRect.fTop, fRect.fRight, fRect.fBottom); in toString()
70 SkRect fRect; member
/third_party/flutter/skia/gm/
Dsimpleaaclip.cpp76 fRect = fBase; in onOnceBeforeDraw()
77 fRect.inset(5, 5); in onOnceBeforeDraw()
78 fRect.offset(25, 25); in onOnceBeforeDraw()
81 fRectPath.addRoundRect(fRect, SkIntToScalar(5), SkIntToScalar(5)); in onOnceBeforeDraw()
100 canvas->drawRect(fRect, paint); in drawOrig()
129 canvas->clipRect(fRect, op, true); in drawPathsOped()
199 SkRect fRect; member in skiagm::SimpleClipGM
/third_party/skia/gm/
Dsimpleaaclip.cpp76 fRect = fBase; in onOnceBeforeDraw()
77 fRect.inset(5, 5); in onOnceBeforeDraw()
78 fRect.offset(25, 25); in onOnceBeforeDraw()
81 fRectPath.addRoundRect(fRect, SkIntToScalar(5), SkIntToScalar(5)); in onOnceBeforeDraw()
100 canvas->drawRect(fRect, paint); in drawOrig()
129 canvas->clipRect(fRect, op, true); in drawPathsOped()
195 SkRect fRect; member in skiagm::SimpleClipGM
/third_party/flutter/skia/samplecode/
DSampleMixer.cpp75 return fRect.contains(SkScalarRoundToInt(x), in onFindClickHandler()
80 fRect.offset(click->fCurr.fX - click->fPrev.fX, in onClick()
86 SkIRect fRect; member in MixerView
117 const SkRect fRect = SkRect::MakeXYWH(10, 10 + SIZE + 10, SIZE, SIZE); member in ShaderMixerView
159 return fRect.contains(SkScalarRoundToInt(x), in onFindClickHandler()
169 SkScalar x = click->fCurr.fX - fRect.fLeft; in onClick()
170 SkScalar y = click->fCurr.fY - fRect.fTop; in onClick()
DSampleXfer.cpp37 SkRect fRect; member
42 fRect = rect; in init()
50 canvas->drawRoundRect(fRect, 8, 8, paint); in draw()
56 …SkTextUtils::DrawString(canvas, fLabel.c_str(), fRect.centerX(), fRect.fTop + 0.68f * fRect.height… in draw()
61 return fRect.intersects(x - 1, y - 1, x + 1, y + 1); in hitTest()
DSampleRegion.cpp159 fRect = fBase; in RegionView()
160 fRect.inset(5, 5); in RegionView()
161 fRect.offset(25, 25); in RegionView()
174 rgn->op(fRect, op); in build_rgn()
194 drawstr(canvas, "Intersects", pts[0], rgn.intersects(fRect)); in drawPredicates()
195 drawstr(canvas, "Contains", pts[1], rgn.contains(fRect)); in drawPredicates()
210 r.set(fRect); in drawOrig()
330 return fRect.contains(SkScalarRoundToInt(x), in onFindClickHandler()
335 fRect.offset(click->fCurr.fX - click->fPrev.fX, in onClick()
341 SkIRect fBase, fRect; member in RegionView
/third_party/skia/modules/sksg/include/
DSkSGRect.h30 SG_ATTRIBUTE(L, SkScalar, fRect.fLeft )
31 SG_ATTRIBUTE(T, SkScalar, fRect.fTop )
32 SG_ATTRIBUTE(R, SkScalar, fRect.fRight )
33 SG_ATTRIBUTE(B, SkScalar, fRect.fBottom)
49 SkRect fRect; variable
/third_party/flutter/skia/modules/sksg/include/
DSkSGRect.h30 SG_ATTRIBUTE(L, SkScalar, fRect.fLeft )
31 SG_ATTRIBUTE(T, SkScalar, fRect.fTop )
32 SG_ATTRIBUTE(R, SkScalar, fRect.fRight )
33 SG_ATTRIBUTE(B, SkScalar, fRect.fBottom)
49 SkRect fRect; variable
/third_party/flutter/skia/src/gpu/ops/
DGrStrokeRectOp.cpp102 fColor.toBytes_RGBA(), fRect.fLeft, fRect.fTop, fRect.fRight, fRect.fBottom, in dumpInfo()
138 fRect = rect; in NonAAStrokeRectOp()
140 fRect.sort(); in NonAAStrokeRectOp()
210 init_nonaa_stroke_rect_strip(vertex, fRect, fStrokeWidth); in onPrepareDraws()
214 vertex[0].set(fRect.fLeft, fRect.fTop); in onPrepareDraws()
215 vertex[1].set(fRect.fRight, fRect.fTop); in onPrepareDraws()
216 vertex[2].set(fRect.fRight, fRect.fBottom); in onPrepareDraws()
217 vertex[3].set(fRect.fLeft, fRect.fBottom); in onPrepareDraws()
218 vertex[4].set(fRect.fLeft, fRect.fTop); in onPrepareDraws()
236 SkRect fRect; member in __anon36efb0950111::NonAAStrokeRectOp

1234