Home
last modified time | relevance | path

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

12

/external/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()
/external/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.cpp26 static constexpr float kStrokeWidth = 30; variable
117 strokePaint.setStrokeWidth(kStrokeWidth); in draw_test()
144 strokeBounds.outset(kStrokeWidth, kStrokeWidth); in draw_test()
150 matrix.setTranslate(cellRect.x() + kStrokeWidth + in draw_test()
152 cellRect.y() + kStrokeWidth + in draw_test()
158 strokePaint.setStrokeWidth(kStrokeWidth / matrix.getMaxScale()); in draw_test()
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()
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 },
Dstroke_rect_shader.cpp45 constexpr SkScalar kStrokeWidth = 10; variable
46 paint.setStrokeWidth(kStrokeWidth);
Dwidebuttcaps.cpp18 static constexpr float kStrokeWidth = 100; variable
26 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.cpp276 static constexpr SkScalar kStrokeWidth = 5.f; variable
325 static constexpr SkScalar kPad = 2*kStrokeWidth;
334 paint.setStrokeWidth(kStrokeWidth);
/external/skqp/gm/
Dconvex_all_line_paths.cpp274 offset->fX += kStrokeWidth / 2.0f; in drawPath()
275 offset->fY += kStrokeWidth / 2.0f; in drawPath()
281 offset->fX += kStrokeWidth; in drawPath()
300 paint.setStrokeWidth(SkIntToScalar(kStrokeWidth)); in drawPath()
316 offset.fX += kStrokeWidth / 2.0f; in onDraw()
317 offset.fY += kStrokeWidth / 2.0f; in onDraw()
332 p.setStrokeWidth(SkIntToScalar(kStrokeWidth)); in onDraw()
393 static constexpr int kStrokeWidth = 10; member in skiagm::ConvexLineOnlyPathsGM
Dcroppedrects.cpp42 constexpr SkScalar kStrokeWidth = 10; in onOnceBeforeDraw() local
45 stroke.setStrokeWidth(kStrokeWidth); in onOnceBeforeDraw()
47 srcCanvas->drawRect(kSrcImageClip.makeInset(kStrokeWidth / 2, kStrokeWidth / 2), stroke); in onOnceBeforeDraw()
Dtrickycubicstrokes.cpp15 static constexpr float kStrokeWidth = 40; variable
63 fStrokePaint.setStrokeWidth(kStrokeWidth); in onOnceBeforeDraw()
80 strokeBounds.outset(kStrokeWidth, kStrokeWidth); in drawStroke()
Dstrokedlines.cpp22 constexpr SkScalar kStrokeWidth = 5.0f; variable
81 tmp.setStrokeWidth(kStrokeWidth); in draw_row()
136 SkScalar intervals[] = { kStrokeWidth, kStrokeWidth }; in onOnceBeforeDraw()
140 p.setPathEffect(SkDashPathEffect::Make(intervals, intervalCount, kStrokeWidth)); in onOnceBeforeDraw()
Dnonclosedpaths.cpp74 constexpr int kStrokeWidth[] = {0, 10, 40, 50}; in onDraw() local
75 int numWidths = SK_ARRAY_COUNT(kStrokeWidth); in onDraw()
112 paint.setStrokeWidth(SkIntToScalar(kStrokeWidth[width])); in onDraw()
Dstroke_rect_shader.cpp33 constexpr SkScalar kStrokeWidth = 10; variable
34 paint.setStrokeWidth(kStrokeWidth);
Ddashcircle.cpp138 static constexpr SkScalar kStrokeWidth = 15.f; in onDraw() local
179 paint.setStrokeWidth(kStrokeWidth); in onDraw()
201 paint.setStrokeWidth(kStrokeWidth); in onDraw()
/external/skqp/bench/
DChartBench.cpp138 static const SkScalar kStrokeWidth = SkIntToScalar(2); in onDraw() local
143 plotPaint.setStrokeWidth(kStrokeWidth); in onDraw()
/external/skia/samplecode/
DSampleChart.cpp122 static const SkScalar kStrokeWidth = SkIntToScalar(2); in onDrawContent() local
127 plotPaint.setStrokeWidth(kStrokeWidth); in onDrawContent()
/external/skia/bench/
DChartBench.cpp138 static const SkScalar kStrokeWidth = SkIntToScalar(2); in onDraw() local
143 plotPaint.setStrokeWidth(kStrokeWidth); in onDraw()
/external/skqp/samplecode/
DSampleChart.cpp133 static const SkScalar kStrokeWidth = SkIntToScalar(2); in onDrawContent() local
138 plotPaint.setStrokeWidth(kStrokeWidth); in onDrawContent()
/external/skqp/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()
/external/skia/modules/svg/include/
DSkSVGAttribute.h52 kStrokeWidth, enumerator

12