Lines Matching refs:scale
5 SkPath GetBorderPath(float scale,
10 // const float top = scale - 1;
11 const float right = size.fWidth * scale;
12 const float bottom = size.fHeight * scale;
13 const float scaled_endcap_radius = (endcap_width / 2) * scale;
22 // path.rCubicTo(0.75 * scale, 0, 1.625 * scale, -0.5 * scale, 2 * scale,
23 // -1.5 * scale);
25 // path.lineTo((endcap_width - 2) * scale, top + 1.5 * scale);
33 // const float dy = 2.5 * scale - 1;
36 // path.lineTo(right - (endcap_width - 2) * scale - dx, 0);
39 // path.rCubicTo(0.375 * scale, -scale, 1.25 * scale, -1.5 * scale, 2 * scale,
40 // -1.5 * scale);
41 // path.lineTo(right - endcap_width * scale, top);
42 // path.rCubicTo(0.75 * scale, 0, 1.625 * scale, 0.5 * scale, 2 * scale,
43 // 1.5 * scale);
46 // path.lineTo(right - 2 * scale, bottom - 1 - 1.5 * scale);
52 // path.arcTo(SkRect::MakeLTRB(right - 2 * scale, bottom - 1 - 1.5 * scale,
53 // right - 2 * scale + 4, bottom - 1 - 1.5 * scale + 4), 90, 90, true);
54 // path.rCubicTo(0.375 * scale, scale, 1.25 * scale, 1.5 * scale, 2 * scale,
55 // 1.5 * scale);
65 if (unscale_at_end && (scale != 1)) path.transform(SkMatrix::Scale(1.f / scale,
66 1.f / scale));
72 float scale, const SkISize& size, float endcap_width, float horizontal_inset = 0) {
73 const float right = size.fWidth * scale;
76 const float bottom = std::ceil(size.fHeight * scale);
78 // const float scaled_horizontal_inset = horizontal_inset * scale;
80 const float scaled_endcap_radius = (endcap_width / 2) * scale;
94 // right_path.rCubicTo(-0.75 * scale, 0, -1.625 * scale, -0.5 * scale,
95 // -2 * scale, -1.5 * scale);
99 // right - 1 - scaled_horizontal_inset - (endcap_width - 2) * scale,
100 // 2.5 * scale);
104 // right_path.rCubicTo(-0.375 * scale, -1 * scale, -1.25 * scale, -1.5 * scale,
105 // -2 * scale, -1.5 * scale);
112 // const float scaled_endcap_width = 1 + endcap_width * scale;
114 // left_path.moveTo(scaled_endcap_width + scaled_horizontal_inset, scale);
118 // left_path.rCubicTo(-0.75 * scale, 0, -1.625 * scale, 0.5 * scale, -2 * scale,
119 // 1.5 * scale);
122 // left_path.lineTo(1 + scaled_horizontal_inset + 2 * scale,
123 // bottom - 1.5 * scale);
127 // left_path.rCubicTo(-0.375 * scale, scale, -1.25 * scale, 1.5 * scale,
128 // -2 * scale, 1.5 * scale);