Lines Matching refs:rect
49 SkRect rect;
52 rect = r;
53 rect.outset(STROKE_WIDTH/2, STROKE_WIDTH/2);
54 path.addRect(rect);
55 rect = r;
56 rect.inset(STROKE_WIDTH/2, STROKE_WIDTH/2);
58 path.addRect(rect);
65 SkRect rect;
68 rect = r;
69 rect.outset(STROKE_WIDTH/2, STROKE_WIDTH/2);
70 path.addRect(rect);
71 rect = r;
72 rect.inset(STROKE_WIDTH/2, STROKE_WIDTH/2);
74 rect.offset(7, -7);
76 path.addRect(rect);
310 #if 0 // Uncomment to hairline stroke around blurred rect in red on top of the blur result.
311 // The rect is defined at integer coords. We inset by 1/2 pixel so our stroke lies on top
350 // Do the x-pass. Above/below rect are rows of zero. All rows that intersect the rect
355 // Compute distance to rect left in subpixel units
371 // rect and constant valued from rect top to rect bottom. So we can get the
372 // integral of just the kernel from rect top to rect bottom and multiply by
426 auto rect = SkRect::MakeXYWH(pad, pad, w, h);
432 surf->getCanvas()->drawRect(rect, paint);