Lines Matching defs:rect
59 /* create a triangle strip that strokes the specified rect. There are 8
64 void init_nonaa_stroke_rect_strip(SkPoint verts[10], const SkRect& rect, SkScalar width) {
67 verts[0].set(rect.fLeft + rad, rect.fTop + rad);
68 verts[1].set(rect.fLeft - rad, rect.fTop - rad);
69 verts[2].set(rect.fRight - rad, rect.fTop + rad);
70 verts[3].set(rect.fRight + rad, rect.fTop - rad);
71 verts[4].set(rect.fRight - rad, rect.fBottom - rad);
72 verts[5].set(rect.fRight + rad, rect.fBottom + rad);
73 verts[6].set(rect.fLeft + rad, rect.fBottom - rad);
74 verts[7].set(rect.fLeft - rad, rect.fBottom + rad);
79 // non-AA rect
80 if (2*rad >= rect.width()) {
81 verts[0].fX = verts[2].fX = verts[4].fX = verts[6].fX = verts[8].fX = rect.centerX();
83 if (2*rad >= rect.height()) {
84 verts[0].fY = verts[2].fY = verts[4].fY = verts[6].fY = verts[8].fY = rect.centerY();
108 const SkRect& rect,
123 viewMatrix, rect,
128 Helper::InputFlags inputFlags, const SkMatrix& viewMatrix, const SkRect& rect,
134 fRect = rect;
135 // Sort the rect for hairlines
140 SkRect bounds = rect;
302 const SkRect& rect,
324 viewMatrix.mapRect(&devRect, rect);
326 // Clip our draw rect 1 full stroke width plus bloat outside the viewport. This avoids
341 // If we have a degenerate stroking rect(ie the stroke is larger than inner rect) then we
342 // make a degenerate inside rect to avoid double hitting. We will also jam all of the points
441 const SkRect& rect,
458 rect,
710 * Following comes a bevel-stroke rect and its indices:
783 // We apply the viewmatrix to the rect points on the cpu. However, if the pipeline uses
865 // Exterior outset rect (away from stroke).
877 // Exterior inset rect (toward stroke).
890 // Interior inset rect (toward stroke).
895 // Interior outset rect (away from stroke, toward center of rect).
922 // When the interior rect has become degenerate we smoosh to a single point
942 const SkRect& rect,
946 return AAStrokeRectOp::Make(context, std::move(paint), viewMatrix, rect, stroke);
948 return NonAAStrokeRectOp::Make(context, std::move(paint), viewMatrix, rect, stroke, aaType);
994 SkRect rect = GrTest::TestRect(random);
1006 rect, strokeRec, aaType);
1012 // Create either a empty rect or a non-empty rect.
1013 SkRect rect =
1015 SkScalar minDim = std::min(rect.width(), rect.height());
1023 return skgpu::v1::StrokeRectOp::AAStrokeRectOp::Make(context, std::move(paint), matrix, rect,