Home
last modified time | relevance | path

Searched refs:stroke (Results 1 - 25 of 90) sorted by relevance

1234

/foundation/arkui/ace_engine_lite/test/moduletest/common/test_app/ui_auto_test/src/main/js/default/pages/canvas/indexAPIBeginPath/
H A Dindex.js25 ctx.stroke();
34 ctx.stroke();
42 ctx.stroke();
50 ctx.stroke();
60 ctx.stroke();
69 ctx.stroke();
78 ctx.stroke();
86 ctx.stroke();
95 ctx.stroke();
103 ctx.stroke();
[all...]
/foundation/arkui/ace_engine_lite/test/moduletest/common/test_app/ui_auto_test/src/main/js/default/pages/canvas/indexAPIClosePath/
H A Dindex.js25 ctx.stroke();
34 ctx.stroke();
43 ctx.stroke();
52 ctx.stroke();
62 ctx.stroke();
71 ctx.stroke();
79 ctx.stroke();
87 ctx.stroke();
96 ctx.stroke();
104 ctx.stroke();
[all...]
/foundation/arkui/ace_engine_lite/test/moduletest/common/test_app/ui_auto_test/src/main/js/default/pages/canvas/indexAPIArc/
H A Dindex.js23 ctx.stroke();
29 ctx.stroke();
35 ctx.stroke();
41 ctx.stroke();
47 ctx.stroke();
53 ctx.stroke();
59 ctx.stroke();
65 ctx.stroke();
71 ctx.stroke();
78 ctx.stroke();
[all...]
/foundation/arkui/ace_engine_lite/test/moduletest/common/test_app/ui_auto_test/src/main/js/default/pages/canvas/indexAPIPerformance/
H A Dindex.js37 console.log("stroke 10 times contains 10 times moveTo+lineTo begin =========" + myTime);
42 ctx.stroke();
44 console.log("stroke 10 times contains 10 times moveTo+lineTo end =========" + myTime);
49 console.log("stroke 10 times contains 10 times rect begin =========" + myTime);
53 ctx.stroke();
55 console.log("stroke 10 time contains 10 times rect end =========" + myTime);
60 console.log("stroke 10 times contains 10 times arc begin =========" + myTime);
64 ctx.stroke();
66 console.log("stroke 10 times contains 10 times arc end =========" + myTime);
84 ctx.stroke();
[all...]
/foundation/arkui/ace_engine_lite/test/moduletest/common/test_app/ui_auto_test/src/main/js/default/pages/canvas/indexAPIStroke/
H A Dindex.js22 ctx.stroke();
30 ctx.stroke();
37 ctx.stroke();
45 ctx.stroke();
52 ctx.stroke();
59 ctx.stroke();
/third_party/skia/gm/
H A Dcrbug_996140.cpp27 * 10: ctx.stroke();
59 SkPaint stroke; in DEF_SIMPLE_GM_BG() local
60 stroke.setColor(SK_ColorBLUE); in DEF_SIMPLE_GM_BG()
61 stroke.setStrokeWidth(1.f); in DEF_SIMPLE_GM_BG()
62 stroke.setStyle(SkPaint::kStroke_Style); in DEF_SIMPLE_GM_BG()
63 stroke.setAntiAlias(true); in DEF_SIMPLE_GM_BG()
76 // 10: ctx.stroke(); (NOT NEEDED TO REPRODUCE FAILING RED CIRCLE) in DEF_SIMPLE_GM_BG()
77 canvas->drawPath(path, stroke); in DEF_SIMPLE_GM_BG()
H A Dcroppedrects.cpp51 SkPaint stroke; variable
52 stroke.setStyle(SkPaint::kStroke_Style);
53 stroke.setStrokeWidth(kStrokeWidth);
54 stroke.setColor(0xff008800);
55 srcCanvas->drawRect(kSrcImageClip.makeInset(kStrokeWidth / 2, kStrokeWidth / 2), stroke);
H A Dskbug_257.cpp133 SkPaint stroke; in DEF_SIMPLE_GM() local
134 stroke.setStyle(SkPaint::kStroke_Style); in DEF_SIMPLE_GM()
135 stroke.setStrokeWidth(5); in DEF_SIMPLE_GM()
136 stroke.setColor(SK_ColorCYAN); in DEF_SIMPLE_GM()
137 canvas->drawCircle(size / 2, size / 2, size / 2 - 10, stroke); in DEF_SIMPLE_GM()
138 canvas->drawCircle(3 * size / 2, size / 2, size / 2 - 10, stroke); in DEF_SIMPLE_GM()
139 canvas->drawCircle(size / 2, 384, size / 2 - 10, stroke); in DEF_SIMPLE_GM()
/foundation/arkui/ace_engine_lite/test/moduletest/common/test_app/ui_auto_test/src/main/js/default/pages/canvas/indexAPIRect/
H A Dindex.js23 ctx.stroke();
29 ctx.stroke();
36 ctx.stroke();
42 ctx.stroke();
48 ctx.stroke();
/third_party/skia/src/gpu/tessellate/shaders/
H A DGrStrokeTessellationShader.cpp19 const SkStrokeRec& stroke, in GrStrokeTessellationShader()
29 , fStroke(stroke) in GrStrokeTessellationShader()
41 // pts 0..3 define the stroke as a cubic bezier. If p3.y is infinity, then it's a conic in GrStrokeTessellationShader()
55 // pts 0..3 define the stroke as a cubic bezier. If p3.y is infinity, then it's a conic in GrStrokeTessellationShader()
58 // An empty stroke (p0==p1==p2==p3) is a special case that denotes a circle, or in GrStrokeTessellationShader()
59 // 180-degree point stroke. in GrStrokeTessellationShader()
173 // Compute the location and tangent direction of the stroke edge with the integral id in emitTessellationCode()
323 if (!shader.stroke().isHairlineStyle()) { in emitTessellationCode()
359 const auto& stroke = shader.stroke(); in setData() local
15 GrStrokeTessellationShader(const GrShaderCaps& shaderCaps, Mode mode, PatchAttribs attribs, const SkMatrix& viewMatrix, const SkStrokeRec& stroke, SkPMColor4f color, int8_t maxParametricSegments_log2) GrStrokeTessellationShader() argument
[all...]
/third_party/skia/src/gpu/tessellate/
H A DTessellation.h92 static float GetJoinType(const SkStrokeRec& stroke) { in GetJoinType() argument
93 switch (stroke.getJoin()) { in GetJoinType()
96 case SkPaint::kMiter_Join: SkASSERT(stroke.getMiter() >= 0); return stroke.getMiter(); in GetJoinType()
107 void set(const SkStrokeRec& stroke) { in set()
108 fRadius = stroke.getWidth() * .5f; in set()
109 fJoinType = GetJoinType(stroke); in set()
H A DStrokeHardwareTessellator.cpp82 // Will a stroke with the given number of parametric segments and a worst-case rotation of 180
87 // Will a worst-case 180-degree stroke with the given number of parametric segments, and a
92 // Will a stroke with the given number of parametric segments and a worst-case rotation of 360
97 // Will a worst-case 360-degree stroke with the given number of parametric segments, and a
107 // current stroke radius, in the event that there are also enough radial segments to rotate in updateTolerances()
141 void updateDynamicStroke(const SkStrokeRec& stroke) { in updateDynamicStroke() argument
143 fDynamicStroke.set(stroke); in updateDynamicStroke()
213 // Writes out the given stroke patch exactly as provided, without chopping or checking the
221 // The first stroke doesn't have a previous join (yet). If the current contour ends up in writePatchTo()
223 // first stroke unti in writePatchTo()
244 writeClose(SkPoint contourEndpoint, const SkMatrix& viewMatrix, const SkStrokeRec& stroke) writeClose() argument
266 writeCaps(SkPoint contourEndpoint, const SkMatrix& viewMatrix, const SkStrokeRec& stroke) writeCaps() argument
720 const SkStrokeRec& stroke = pathStrokeList->fStroke; prepare() local
733 const SkStrokeRec& stroke = pathStroke->fStroke; prepare() local
[all...]
/third_party/skia/experimental/c-api-example/
H A Dskia-c-example.c48 sk_paint_t* stroke = sk_paint_new(); in draw() local
49 sk_paint_set_color(stroke, sk_color_set_argb(0xFF, 0xFF, 0x00, 0x00)); in draw()
50 sk_paint_set_antialias(stroke, true); in draw()
51 sk_paint_set_stroke(stroke, true); in draw()
52 sk_paint_set_stroke_width(stroke, 5.0f); in draw()
61 sk_canvas_draw_path(canvas, path, stroke); in draw()
73 sk_paint_delete(stroke); in draw()
/third_party/skia/src/gpu/
H A DGrUtil.cpp71 const SkStrokeRec& stroke = style.strokeRec(); in GrIsStrokeHairlineOrEquivalent() local
72 if (stroke.isHairlineStyle()) { in GrIsStrokeHairlineOrEquivalent()
78 return stroke.getStyle() == SkStrokeRec::kStroke_Style && in GrIsStrokeHairlineOrEquivalent()
79 SkDrawTreatAAStrokeAsHairline(stroke.getWidth(), matrix, outCoverage); in GrIsStrokeHairlineOrEquivalent()
/third_party/skia/src/gpu/ops/
H A DTessellationPathRenderer.cpp80 // Don't bother with stroke stencilling or inverse fills yet. The Skia API doesn't support in onGetStencilSupport()
81 // clipping by a stroke, and the stencilling code already knows how to invert a fill. in onGetStencilSupport()
128 // Outset the viewport to pad for the stroke width. in onDrawPath()
129 const SkStrokeRec& stroke = args.fShape->style().strokeRec(); in onDrawPath() local
131 if (stroke.isHairlineStyle()) { in onDrawPath()
133 // find the inflation of an equivalent stroke in device space with a width of 1. in onDrawPath()
134 inflationRadius = SkStrokeRec::GetInflationRadius(stroke.getJoin(), in onDrawPath()
135 stroke.getMiter(), in onDrawPath()
136 stroke.getCap(), 1); in onDrawPath()
138 inflationRadius = stroke in onDrawPath()
149 const SkStrokeRec& stroke = args.fShape->style().strokeRec(); onDrawPath() local
[all...]
H A DAALinearizingConvexPathRenderer.cpp38 // The thicker the stroke, the harder it is to produce high-quality results using tessellation. For
39 // the time being, we simply drop back to software rendering above this stroke width.
362 const SkStrokeRec& stroke = args.fShape->style().strokeRec(); in onCanDrawPath() local
364 if (stroke.getStyle() == SkStrokeRec::kStroke_Style || in onCanDrawPath()
365 stroke.getStyle() == SkStrokeRec::kStrokeAndFill_Style) { in onCanDrawPath()
369 SkScalar strokeWidth = args.fViewMatrix->getMaxScale() * stroke.getWidth(); in onCanDrawPath()
370 if (strokeWidth < 1.0f && stroke.getStyle() == SkStrokeRec::kStroke_Style) { in onCanDrawPath()
375 stroke.getJoin() == SkPaint::Join::kRound_Join) { in onCanDrawPath()
380 if (stroke.getStyle() != SkStrokeRec::kFill_Style) { in onCanDrawPath()
402 const SkStrokeRec& stroke in onDrawPath() local
[all...]
H A DStrokeTessellateOp.cpp42 const SkPath& path, const SkStrokeRec& stroke, in StrokeTessellateOp()
47 , fPathStrokeList(path, stroke, paint.getColor4f()) in StrokeTessellateOp()
56 float r = stroke.getInflationRadius(); in StrokeTessellateOp()
62 float r = SkStrokeRec::GetInflationRadius(stroke.getJoin(), stroke.getMiter(), in StrokeTessellateOp()
63 stroke.getCap(), 1); in StrokeTessellateOp()
117 // The paths have different stroke properties. We will need to enable dynamic stroke if we in onCombineIfPossible()
41 StrokeTessellateOp(GrAAType aaType, const SkMatrix& viewMatrix, const SkPath& path, const SkStrokeRec& stroke, GrPaint&& paint) StrokeTessellateOp() argument
H A DStrokeRectOp.cpp33 // supported when using an AA stroke.
34 inline bool allowed_stroke(const SkStrokeRec& stroke, GrAA aa, bool* isMiter) { in allowed_stroke() argument
35 SkASSERT(stroke.getStyle() == SkStrokeRec::kStroke_Style || in allowed_stroke()
36 stroke.getStyle() == SkStrokeRec::kHairline_Style); in allowed_stroke()
38 if (!stroke.getWidth()) { in allowed_stroke()
42 if (stroke.getJoin() == SkPaint::kBevel_Join) { in allowed_stroke()
46 if (stroke.getJoin() == SkPaint::kMiter_Join) { in allowed_stroke()
47 *isMiter = stroke.getMiter() >= SK_ScalarSqrt2; in allowed_stroke()
109 const SkStrokeRec& stroke, in Make()
112 if (!allowed_stroke(stroke, GrA in Make()
105 Make(GrRecordingContext* context, GrPaint&& paint, const SkMatrix& viewMatrix, const SkRect& rect, const SkStrokeRec& stroke, GrAAType aaType) Make() argument
127 NonAAStrokeRectOp(GrProcessorSet* processorSet, const SkPMColor4f& color, Helper::InputFlags inputFlags, const SkMatrix& viewMatrix, const SkRect& rect, const SkStrokeRec& stroke, GrAAType aaType) NonAAStrokeRectOp() argument
438 Make(GrRecordingContext* context, GrPaint&& paint, const SkMatrix& viewMatrix, const SkRect& rect, const SkStrokeRec& stroke) Make() argument
938 Make(GrRecordingContext* context, GrPaint&& paint, GrAAType aaType, const SkMatrix& viewMatrix, const SkRect& rect, const SkStrokeRec& stroke) Make() argument
[all...]
/third_party/libabigail/src/
H A Dabg-viz-svg.cc142 std::string strip = R"_delimiter_(<path stroke="black" stroke-width="1" d="M __x __y1 L __x __y2"/>
194 std::string rect_strip = R"_delimiter_(<rect x="__x" y="__y" fill="__color" stroke="__color" stroke-width="1" width="__width" height="__height"/>
/third_party/skia/docs/examples/
H A DColor_Wheel.cpp6 const float stroke = scale * 3 / 64; in REG_FIDDLE() local
11 canvas->drawCircle({0, 0}, (scale - stroke) * 0.5f, SkPaint(SkColors::kWhite)); in REG_FIDDLE()
22 sweep.setStrokeWidth(stroke); in REG_FIDDLE()
24 canvas->drawCircle({0, 0}, (scale - stroke) * 0.5f, sweep); in REG_FIDDLE()
/foundation/arkui/ace_engine_lite/test/moduletest/common/test_app/ui_auto_test/src/main/js/default/pages/canvas/indexAPIMoveTo/
H A Dindex.js24 ctx.stroke();
31 ctx.stroke();
38 ctx.stroke();
/foundation/arkui/ace_engine_lite/test/moduletest/common/test_app/ui_auto_test/src/main/js/default/pages/canvas/indexAPILineTo/
H A Dindex.js24 ctx.stroke();
31 ctx.stroke();
38 ctx.stroke();
/third_party/skia/experimental/graphite/src/
H A DDrawList.h59 // NOTE: Only represents the stroke or hairline styles; stroke-and-fill must be handled higher up.
157 // NOTE: All path rendering functions, e.g. [fill|stroke|...]Path() that take a Shape
179 const StrokeParams& stroke,
184 // TODO: fill[R]Rect, stroke[R]Rect (will need to support per-edge aa and arbitrary quads)
209 const StrokeParams* stroke) in Draw()
216 , fStrokeParams(stroke ? skstd::optional<StrokeParams>(*stroke) : skstd::nullopt) {} in Draw()
/third_party/skia/modules/pathkit/tests/
H A Dpathops.spec.js35 <path stroke=black fill=white stroke-width=0.01 d="${expectedPath.toSVGString()}"></path>
39 <path stroke=black fill=white stroke-width=0.01 d="${actualPath.toSVGString()}"></path>
/third_party/skia/bench/
H A DRectBench.cpp18 static DEFINE_double(strokeWidth, -1.0, "If set, use this stroke width in RectBench.");
33 RectBench(int shift, int stroke = 0, bool aa = true, bool perspective = false) in RectBench()
35 , fStroke(stroke) in RectBench()
198 OvalBench(int shift, int stroke = 0) : RectBench(shift, stroke) {} in OvalBench()
208 RRectBench(int shift, int stroke = 0) : RectBench(shift, stroke) {} in RRectBench()

Completed in 10 milliseconds

1234