Home
last modified time | relevance | path

Searched refs:kStrokeWidth (Results 1 – 25 of 27) sorted by relevance

12

/third_party/skia/docs/examples/
Dstrokerect_gm.cpp6 constexpr SkScalar kStrokeWidth = 20; in draw() local
15 {0, 0, kStrokeWidth, H}, in draw()
16 {0, 0, W, kStrokeWidth}, in draw()
17 {0, 0, kStrokeWidth / 2, kStrokeWidth / 2}, in draw()
25 canvas->translate(kStrokeWidth * 3 / 2, kStrokeWidth * 3 / 2); in draw()
33 j * (W + 2 * kStrokeWidth), in draw()
34 (i + doFill * SK_ARRAY_COUNT(gJoins)) * (H + 2 * kStrokeWidth)); in draw()
41 paint.setStrokeWidth(kStrokeWidth); in draw()
/third_party/skia/gm/
Dconvex_all_line_paths.cpp281 offset->fX += kStrokeWidth / 2.0f; in drawPath()
282 offset->fY += kStrokeWidth / 2.0f; in drawPath()
288 offset->fX += kStrokeWidth; in drawPath()
307 paint.setStrokeWidth(SkIntToScalar(kStrokeWidth)); in drawPath()
323 offset.fX += kStrokeWidth / 2.0f; in onDraw()
324 offset.fY += kStrokeWidth / 2.0f; in onDraw()
339 p.setStrokeWidth(SkIntToScalar(kStrokeWidth)); in onDraw()
400 inline static constexpr int kStrokeWidth = 10; member in skiagm::ConvexLineOnlyPathsGM
Dtrickycubicstrokes.cpp28 static constexpr float kStrokeWidth = 30; variable
119 strokePaint.setStrokeWidth(kStrokeWidth); in draw_test()
146 strokeBounds.outset(kStrokeWidth, kStrokeWidth); in draw_test()
152 matrix.setTranslate(cellRect.x() + kStrokeWidth + in draw_test()
154 cellRect.y() + kStrokeWidth + in draw_test()
160 strokePaint.setStrokeWidth(kStrokeWidth / matrix.getMaxScale()); in draw_test()
Dcroppedrects.cpp50 constexpr SkScalar kStrokeWidth = 10; in onOnceBeforeDraw() local
53 stroke.setStrokeWidth(kStrokeWidth); in onOnceBeforeDraw()
55 srcCanvas->drawRect(kSrcImageClip.makeInset(kStrokeWidth / 2, kStrokeWidth / 2), stroke); in onOnceBeforeDraw()
Dstrokedlines.cpp38 constexpr SkScalar kStrokeWidth = 5.0f; variable
100 tmp.setStrokeWidth(kStrokeWidth); in draw_row()
152 SkScalar intervals[] = { kStrokeWidth, kStrokeWidth }; in onOnceBeforeDraw()
156 p.setPathEffect(SkDashPathEffect::Make(intervals, intervalCount, kStrokeWidth)); in onOnceBeforeDraw()
Dnonclosedpaths.cpp81 constexpr int kStrokeWidth[] = {0, 10, 40, 50}; in onDraw() local
82 int numWidths = SK_ARRAY_COUNT(kStrokeWidth); in onDraw()
118 paint.setStrokeWidth(SkIntToScalar(kStrokeWidth[width])); in onDraw()
Dstroke_rect_shader.cpp45 constexpr SkScalar kStrokeWidth = 10; variable
46 paint.setStrokeWidth(kStrokeWidth);
Dpatheffects.cpp244 const float kStrokeWidth = 20; variable
267 { SkPaint::kStrokeAndFill_Style, kStrokeWidth, false, true },
268 { SkPaint::kStroke_Style, kStrokeWidth, true, true },
269 { SkPaint::kStrokeAndFill_Style, kStrokeWidth, true, true },
Dwidebuttcaps.cpp21 static constexpr float kStrokeWidth = 100; variable
29 strokePaint.setStrokeWidth(kStrokeWidth); in draw_strokes()
Ddashcircle.cpp148 static constexpr SkScalar kStrokeWidth = 15.f; in onDraw() local
189 paint.setStrokeWidth(kStrokeWidth); in onDraw()
211 paint.setStrokeWidth(kStrokeWidth); in onDraw()
Dcirculararcs.cpp275 static constexpr SkScalar kStrokeWidth = 5.f; variable
324 static constexpr SkScalar kPad = 2*kStrokeWidth;
333 paint.setStrokeWidth(kStrokeWidth);
/third_party/flutter/skia/gm/
Dconvex_all_line_paths.cpp281 offset->fX += kStrokeWidth / 2.0f; in drawPath()
282 offset->fY += kStrokeWidth / 2.0f; in drawPath()
288 offset->fX += kStrokeWidth; in drawPath()
307 paint.setStrokeWidth(SkIntToScalar(kStrokeWidth)); in drawPath()
323 offset.fX += kStrokeWidth / 2.0f; in onDraw()
324 offset.fY += kStrokeWidth / 2.0f; in onDraw()
339 p.setStrokeWidth(SkIntToScalar(kStrokeWidth)); in onDraw()
400 static constexpr int kStrokeWidth = 10; member in skiagm::ConvexLineOnlyPathsGM
Dcroppedrects.cpp51 constexpr SkScalar kStrokeWidth = 10; in onOnceBeforeDraw() local
54 stroke.setStrokeWidth(kStrokeWidth); in onOnceBeforeDraw()
56 srcCanvas->drawRect(kSrcImageClip.makeInset(kStrokeWidth / 2, kStrokeWidth / 2), stroke); in onOnceBeforeDraw()
Dtrickycubicstrokes.cpp21 static constexpr float kStrokeWidth = 40; variable
69 fStrokePaint.setStrokeWidth(kStrokeWidth); in onOnceBeforeDraw()
86 strokeBounds.outset(kStrokeWidth, kStrokeWidth); in drawStroke()
Dstrokedlines.cpp38 constexpr SkScalar kStrokeWidth = 5.0f; variable
100 tmp.setStrokeWidth(kStrokeWidth); in draw_row()
152 SkScalar intervals[] = { kStrokeWidth, kStrokeWidth }; in onOnceBeforeDraw()
156 p.setPathEffect(SkDashPathEffect::Make(intervals, intervalCount, kStrokeWidth)); in onOnceBeforeDraw()
Dnonclosedpaths.cpp79 constexpr int kStrokeWidth[] = {0, 10, 40, 50}; in onDraw() local
80 int numWidths = SK_ARRAY_COUNT(kStrokeWidth); in onDraw()
117 paint.setStrokeWidth(SkIntToScalar(kStrokeWidth[width])); in onDraw()
Dstroke_rect_shader.cpp45 constexpr SkScalar kStrokeWidth = 10; variable
46 paint.setStrokeWidth(kStrokeWidth);
Ddashcircle.cpp149 static constexpr SkScalar kStrokeWidth = 15.f; in onDraw() local
190 paint.setStrokeWidth(kStrokeWidth); in onDraw()
212 paint.setStrokeWidth(kStrokeWidth); in onDraw()
/third_party/flutter/skia/bench/
DChartBench.cpp138 static const SkScalar kStrokeWidth = SkIntToScalar(2); in onDraw() local
143 plotPaint.setStrokeWidth(kStrokeWidth); in onDraw()
/third_party/skia/samplecode/
DSampleChart.cpp122 static const SkScalar kStrokeWidth = SkIntToScalar(2); in onDrawContent() local
127 plotPaint.setStrokeWidth(kStrokeWidth); in onDrawContent()
/third_party/flutter/skia/samplecode/
DSampleChart.cpp127 static const SkScalar kStrokeWidth = SkIntToScalar(2); in onDrawContent() local
132 plotPaint.setStrokeWidth(kStrokeWidth); in onDrawContent()
/third_party/skia/bench/
DChartBench.cpp138 static const SkScalar kStrokeWidth = SkIntToScalar(2); in onDraw() local
143 plotPaint.setStrokeWidth(kStrokeWidth); in onDraw()
/third_party/flutter/skia/experimental/svg/model/
DSkSVGAttribute.h47 kStrokeWidth, enumerator
DSkSVGRenderContext.cpp233 void commitToPaint<SkSVGAttribute::kStrokeWidth>(const SkSVGPresentationAttributes& attrs, in commitToPaint()
286 commitToPaint<SkSVGAttribute::kStrokeWidth>(fInherited, dummy, this); in SkSVGPresentationContext()
/third_party/skia/modules/svg/include/
DSkSVGAttribute.h52 kStrokeWidth, enumerator

12