/third_party/skia/src/gpu/ |
D | GrScissorState.h | 26 , 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/ |
D | SkRRect.cpp | 28 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/ |
D | SkRRect.cpp | 26 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 …]
|
D | SkGlyph.h | 186 : 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/ |
D | GrScissorState.h | 16 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/ |
D | Cmds.h | 113 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
|
D | Cmds.cpp | 51 , 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/ |
D | SkRRect.h | 102 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/ |
D | Shape.cpp | 33 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()
|
D | Shape.h | 105 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/ |
D | SkFrameHolder.h | 34 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/ |
D | SkFrameHolder.h | 34 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/ |
D | SkRRect.h | 91 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/ |
D | SkSGRect.cpp | 16 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/ |
D | SkSGRect.cpp | 16 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/ |
D | TracingTest.cpp | 63 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/ |
D | TracingTest.cpp | 63 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/ |
D | simpleaaclip.cpp | 76 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/ |
D | simpleaaclip.cpp | 76 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/ |
D | SampleMixer.cpp | 75 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()
|
D | SampleXfer.cpp | 37 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()
|
D | SampleRegion.cpp | 159 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/ |
D | SkSGRect.h | 30 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/ |
D | SkSGRect.h | 30 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/ |
D | GrStrokeRectOp.cpp | 102 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
|