Home
last modified time | relevance | path

Searched refs:kStrokeWidth (Results 1 – 25 of 28) 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
Dtrickycubicstrokes.cpp21 static constexpr float kStrokeWidth = 40; variable
69 fStrokePaint.setStrokeWidth(kStrokeWidth); in onOnceBeforeDraw()
86 strokeBounds.outset(kStrokeWidth, kStrokeWidth); in drawStroke()
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()
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()
Dcirculararcs.cpp269 static constexpr SkScalar kStrokeWidth = 5.f; variable
318 static constexpr SkScalar kPad = 2*kStrokeWidth;
327 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
Dtrickycubicstrokes.cpp15 static constexpr float kStrokeWidth = 40; variable
63 fStrokePaint.setStrokeWidth(kStrokeWidth); in onOnceBeforeDraw()
80 strokeBounds.outset(kStrokeWidth, kStrokeWidth); in drawStroke()
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()
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/skia/samplecode/
DSampleChart.cpp127 static const SkScalar kStrokeWidth = SkIntToScalar(2); in onDrawContent() local
132 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/bench/
DChartBench.cpp138 static const SkScalar kStrokeWidth = SkIntToScalar(2); in onDraw() local
143 plotPaint.setStrokeWidth(kStrokeWidth); in onDraw()
/external/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()
DSkSVGNode.cpp181 case SkSVGAttribute::kStrokeWidth: in onSetAttribute()
/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()

12