/third_party/skia/src/gpu/tessellate/ |
H A D | StrokeFixedCountTessellator.cpp | 31 // will just add enough additional segments to handle a worst-case 180 degree stroke.) 52 // Updates the dynamic stroke state that we will write out with each instance. 53 void updateDynamicStroke(const SkStrokeRec& stroke) { in updateDynamicStroke() argument 56 fDynamicStroke.set(stroke); in updateDynamicStroke() 116 // point. The stroke iterator tells us the new value to use for the previous control point. 122 // Draws a circle whose diameter is equal to the stroke width. We emit circles at cusp points 126 // The shader interprets an empty stroke + empty join as a special case that denotes a in writeCircle() 127 // circle, or 180-degree point stroke. in writeCircle() 135 // We deferred the first stroke because we didn't know the previous control point to use in finishContour() 173 // this stroke unti in writeStroke() 263 const SkStrokeRec& stroke = pathStrokeList->fStroke; prepare() local 277 const SkStrokeRec& stroke = pathStroke->fStroke; prepare() local [all...] |
H A D | StrokeTessellator.h | 21 // Prepares GPU data for, and then draws a stroke's tessellated geometry. 25 PathStrokeList(const SkPath& path, const SkStrokeRec& stroke, const SkPMColor4f& color) in PathStrokeList() 26 : fPath(path), fStroke(stroke), fColor(color) {} in PathStrokeList() 46 // Issues draw calls for the tessellated stroke. The caller is responsible for creating and 80 // Returns the equivalent stroke width in (pre-viewMatrix) local path space that the 81 // tessellator will use when rendering this stroke. This only differs from the actual stroke 86 if (localStrokeWidth == 0) { // Is the stroke a hairline? in GetLocalStrokeWidth() 89 // If the stroke is hairline then the tessellator will operate in post-transform in GetLocalStrokeWidth() 131 // stroke in fetchRadialSegmentsPerRadian() [all...] |
/third_party/skia/bench/ |
H A D | TessellateBench.cpp | 265 SkStrokeRec stroke(SkStrokeRec::kFill_InitStyle); in make_simple_cubic_path() 266 stroke.setStrokeStyle(8); in make_simple_cubic_path() 267 stroke.setStrokeParams(SkPaint::kButt_Cap, SkPaint::kMiter_Join, 4); in make_simple_cubic_path() 268 return {{path, stroke, SK_PMColor4fWHITE}}; in make_simple_cubic_path() 313 SkStrokeRec stroke(SkStrokeRec::kFill_InitStyle); in make_motionmark_paths() 314 // The number of paths with a given stroke width in the MotionMark bench gets cut in half in make_motionmark_paths() 315 // every time the stroke width increases by 1. in make_motionmark_paths() 317 stroke.setStrokeStyle(strokeWidth); in make_motionmark_paths() 318 stroke.setStrokeParams(SkPaint::kButt_Cap, SkPaint::kBevel_Join, 0); in make_motionmark_paths() 319 pathStrokes.emplace_back(path, stroke, SK_PMColor4fWHIT in make_motionmark_paths() [all...] |
/third_party/skia/src/core/ |
H A D | SkStroke.cpp | 48 stroke has more than the optimal number of quadratics and lines */ 118 struct SkQuadConstruct { // The state of the quad stroke under construction. 214 kSplit_ResultType, // the caller should split the quad stroke in two 216 kQuad_ResultType, // the caller should (continue to try to) add a quad stroke 272 ResultType strokeCloseEnough(const SkPoint stroke[3], const SkPoint ray[2], 725 /* If the stroke consists of a moveTo followed by a degenerate curve, treat it 763 /* If the stroke consists of a moveTo followed by a degenerate curve, treat it 904 // Find the intersection of the stroke tangents to construct a stroke quad. 905 // Return whether the stroke i [all...] |
/third_party/skia/src/xps/ |
H A D | SkXPSDevice.cpp | 1077 const bool stroke = (SkPaint::kFill_Style != paint.getStyle()); in rect_must_be_pathed() local 1081 (stroke && ( in rect_must_be_pathed() 1090 HRESULT SkXPSDevice::createXpsRect(const SkRect& rect, BOOL stroke, BOOL fill, in createXpsRect() argument 1098 return this->createXpsQuad(points, stroke, fill, xpsRect); in createXpsRect() 1101 BOOL stroke, BOOL fill, variable 1126 stroke, stroke, stroke, 1136 HRM((*xpsQuad)->SetIsClosed(stroke), "Could not set quad close."); 1155 //If trying to paint with a stroke, ignor in drawPaint() 1213 BOOL stroke = FALSE; internalDrawRect() local 1263 close_figure(const SkTDArray<XPS_SEGMENT_TYPE>& segmentTypes, const SkTDArray<FLOAT>& segmentData, const SkTDArray<BOOL>& segmentStrokes, BOOL stroke, BOOL fill, IXpsOMGeometryFigure* figure, IXpsOMGeometryFigureCollection* figures) close_figure() argument 1292 addXpsPathGeometry( IXpsOMGeometryFigureCollection* xpsFigures, BOOL stroke, BOOL fill, const SkPath& path) addXpsPathGeometry() argument 1449 shadePath(IXpsOMPath* shadedPath, const SkPaint& shaderPaint, const SkMatrix& matrix, BOOL* fill, BOOL* stroke) shadePath() argument 1560 BOOL stroke; drawPath() local [all...] |
H A D | SkXPSDevice.h | 199 BOOL stroke, BOOL fill, 204 BOOL stroke, BOOL fill, member in SkXPSDevice 226 BOOL stroke, BOOL fill, const SkPath& path); 258 BOOL* fill, BOOL* stroke);
|
/third_party/skia/src/gpu/tessellate/shaders/ |
H A D | GrStrokeTessellationShader_InstancedImpl.cpp | 19 SkPaint::Join joinType = shader.stroke().getJoin(); in onEmitCode() 107 if (shader.stroke().isHairlineStyle()) { in onEmitCode() 119 // Find how many parametric segments this stroke requires. in onEmitCode() 136 // The stroke is a point. This special case tells us to draw a stroke-width circle as a in onEmitCode() 137 // 180 degree point stroke instead. in onEmitCode() 152 if (shader.stroke().getJoin() == SkPaint::kRound_Join || shader.hasDynamicStroke()) { in onEmitCode() 162 // The stroke section needs at least two edges. Don't assign more to the join than in onEmitCode() 223 // actually come from the section of our strip that belongs to the stroke.) in onEmitCode() 234 // for seaming with the previous stroke in onEmitCode() [all...] |
/third_party/skia/docs/examples/ |
H A D | skpaint_xfer.cpp | 43 SkPaint stroke, src, dst; in REG_FIDDLE() local 44 stroke.setStyle(SkPaint::kStroke_Style); in REG_FIDDLE() 83 canvas->drawRect(rect, stroke); in REG_FIDDLE()
|
/third_party/skia/platform_tools/android/apps/AndroidKit/src/main/java/org/skia/androidkit/ |
H A D | Paint.java | 44 public Paint setStroke(boolean stroke) { in setStroke() argument 45 nSetStroke(mNativeInstance, stroke); in setStroke() 110 private static native void nSetStroke(long nativeInstance, boolean stroke); in nSetStroke() argument
|
/third_party/skia/samplecode/ |
H A D | SampleAARects.cpp | 65 for (int stroke = 0; stroke < 2; ++stroke) { 66 paints[p].setStyle(stroke ? SkPaint::kStroke_Style : SkPaint::kFill_Style);
|
/third_party/skia/experimental/skrive/src/ |
H A D | Shape.cpp | 49 SkDebugf("[Shape::onRevalidate] %zu geos %zu fill(s) %zu stroke(s)\n", in onRevalidate() 68 for (const auto* stroke : fStrokes) { in onRender() 69 draw_paint(canvas, stroke); in onRender()
|
/third_party/skia/src/gpu/ops/ |
H A D | GrOvalOpFactory.cpp | 50 * operates in a space normalized by the circle radius (outer radius in the case of a stroke) 69 static GrGeometryProcessor* Make(SkArenaAlloc* arena, bool stroke, bool clipPlane, in Make() argument 73 return new (ptr) CircleGeometryProcessor(stroke, clipPlane, isectPlane, unionPlane, in Make() 104 CircleGeometryProcessor(bool stroke, bool clipPlane, bool isectPlane, bool unionPlane, in CircleGeometryProcessor() argument 108 , fStroke(stroke) { in CircleGeometryProcessor() 123 SkASSERT(stroke); in CircleGeometryProcessor() 265 bool stroke = d->fRandom->nextBool(); 266 bool roundCaps = stroke ? d->fRandom->nextBool() : false; 272 return CircleGeometryProcessor::Make(d->allocator(), stroke, clipPlane, isectPlane, 448 // Compute coverage from outer/inner edges of the stroke [all...] |
/third_party/skia/gm/ |
H A D | pictureimagefilter.cpp | 118 SkPaint stroke; variable 119 stroke.setStyle(SkPaint::kStroke_Style); 121 canvas->drawRect(bounds, stroke);
|
H A D | gpu_blur_utils.cpp | 324 SkPaint stroke; in run() local 325 stroke.setStyle(SkPaint::kStroke_Style); in run() 326 stroke.setStrokeWidth(1.f); in run() 327 GrStyle style(stroke); in run() 337 SkPaint stroke; in run() local 338 stroke.setStyle(SkPaint::kStroke_Style); in run() 339 stroke.setStrokeWidth(1.f); in run() 340 GrStyle style(stroke); in run()
|
H A D | blurrect.cpp | 310 #if 0 // Uncomment to hairline stroke around blurred rect in red on top of the blur result. 311 // The rect is defined at integer coords. We inset by 1/2 pixel so our stroke lies on top 313 SkPaint stroke; 314 stroke.setColor(SK_ColorRED); 315 stroke.setStrokeWidth(0.f); 316 stroke.setStyle(SkPaint::kStroke_Style); 317 canvas->drawRect(SkRect::MakeWH(w, h).makeInset(0.5, 0.5), stroke);
|
/third_party/skia/tests/ |
H A D | GrStyledShapeTest.cpp | 462 // The fill is ignored (zero area) and the stroke is converted to a rrect. 607 // Applying the path effect and then the stroke should always be the same as applying in init() 615 // base -> apply path effect -> rrect_as_path -> stroke -> stroked_rrect_as_path in init() 618 // canonicalized before the stroke. in init() 894 SkPaint stroke; in test_scale() local 895 stroke.setStyle(SkPaint::kStroke_Style); in test_scale() 896 stroke.setStrokeWidth(2.f); in test_scale() 897 TestCase strokeCase1(geo, stroke, reporter, kS1); in test_scale() 898 TestCase strokeCase2(geo, stroke, reporter, kS2); in test_scale() 899 // Scale affects the stroke in test_scale() 1119 SkPaint stroke; test_null_dash() local 1215 SkPaint stroke = peStroke; test_path_effect_makes_rrect() local 1493 SkPaint stroke; test_path_effect_fails() local 1560 SkPaint stroke; DEF_TEST() local 1907 SkPaint stroke; DEF_TEST() local [all...] |
H A D | PaintTest.cpp | 51 SkPath path, stroke; in DEF_TEST() local 68 paint.getFillPath(path, &stroke); in DEF_TEST() 69 strokeR = stroke.getBounds(); in DEF_TEST() 78 // test that our stroke didn't explode in DEF_TEST()
|
/third_party/skia/src/gpu/v1/ |
H A D | SurfaceDrawContext.cpp | 750 const SkStrokeRec& stroke = style->strokeRec(); in drawRect() local 751 if (stroke.getStyle() == SkStrokeRec::kFill_Style) { in drawRect() 755 } else if ((stroke.getStyle() == SkStrokeRec::kStroke_Style || in drawRect() 756 stroke.getStyle() == SkStrokeRec::kHairline_Style) && in drawRect() 761 // GrStyledShape to handle stroke caps and dashing properly. in drawRect() 767 stroke.getJoin() == SkPaint::kMiter_Join && in drawRect() 768 stroke.getMiter() >= SK_ScalarSqrt2) ? GrAAType::kCoverage in drawRect() 771 rect, stroke); in drawRect() 772 // op may be null if the stroke is not supported or if using coverage aa and the view matrix in drawRect() 1040 const SkStrokeRec& stroke in drawRRect() local 1374 const SkStrokeRec& stroke = style.strokeRec(); drawOval() local 1674 drawStrokedLine(const GrClip* clip, GrPaint&& paint, GrAA aa, const SkMatrix& viewMatrix, const SkPoint points[2], const SkStrokeRec& stroke) drawStrokedLine() argument [all...] |
/third_party/typescript/tests/baselines/reference/ |
H A D | controlFlowCaching.js | 21 taStroke = "stroke" in o ? o.stroke : ta.stroke, 75 var o = this.opt, ta = this.chart.theme.axis, position = o.position, leftBottom = position !== "rightOrTop", rotation = o.rotation % 360, start, stop, titlePos, titleRotation = 0, titleOffset, axisVector, tickVector, anchorOffset, labelOffset, labelAlign, labelGap = this.chart.theme.axis.tick.labelGap, taFont = o.font || (ta.majorTick && ta.majorTick.font) || (ta.tick && ta.tick.font), taTitleFont = o.titleFont || (ta.title && ta.title.font), taFontColor = o.fontColor || (ta.majorTick && ta.majorTick.fontColor) || (ta.tick && ta.tick.fontColor) || "black", taTitleFontColor = o.titleFontColor || (ta.title && ta.title.fontColor) || "black", taTitleGap = (o.titleGap == 0) ? 0 : o.titleGap || (ta.title && ta.title.gap) || 15, taTitleOrientation = o.titleOrientation || (ta.title && ta.title.orientation) || "axis", taMajorTick = this.chart.theme.getTick("major", o), taMinorTick = this.chart.theme.getTick("minor", o), taMicroTick = this.chart.theme.getTick("micro", o), taStroke = "stroke" in o ? o.stroke : ta.stroke, size = taFont ? g.normalizedLength(g.splitFontString(taFont).size) : 0, cosr = Math.abs(Math.cos(rotation * Math.PI / 180)), sinr = Math.abs(Math.sin(rotation * Math.PI / 180)), tsize = taTitleFont ? g.normalizedLength(g.splitFontString(taTitleFont).size) : 0;
|
/third_party/skia/modules/androidkit/src/ |
H A D | Paint.cpp | 32 static void Paint_SetStroke(JNIEnv*, jobject, jlong native_paint, jboolean stroke) { in Paint_SetStroke() argument 34 paint->setStroke(stroke); in Paint_SetStroke()
|
/third_party/skia/experimental/graphite/src/ |
H A D | DrawContext.cpp | 72 const StrokeParams& stroke, in strokePath() 77 fPendingDraws->strokePath(localToDevice, shape, stroke, clip, order, paint); in strokePath() 70 strokePath(const Transform& localToDevice, const Shape& shape, const StrokeParams& stroke, const Clip& clip, DrawOrder order, const PaintParams* paint) strokePath() argument
|
/third_party/skia/tools/viewer/ |
H A D | SkottieSlide.cpp | 226 SkPaint fill, stroke; in draw() local 229 stroke.setAntiAlias(true); in draw() 230 stroke.setColor(0xffff0000); in draw() 231 stroke.setStyle(SkPaint::kStroke_Style); in draw() 237 canvas->drawRect(bounds, stroke); in draw()
|
/third_party/skia/modules/sksg/samples/ |
H A D | SampleSVGPong.cpp | 112 // TODO: stroke-dash support would come in handy right about now. 190 SkPaint fill, stroke; variable 193 stroke.setAntiAlias(true); 194 stroke.setColor(0xffff0000); 195 stroke.setStyle(SkPaint::kStroke_Style); 199 canvas->drawRect(r, stroke);
|
/foundation/arkui/ace_engine_lite/test/moduletest/common/test_app/ui_auto_test/src/main/js/default/pages/canvas/indexAPIScenario/ |
H A D | index.js | 27 ctx.stroke();
|
/third_party/skia/modules/svg/tests/ |
H A D | Filters.cpp | 26 <rect fill="none" stroke="none" filter="url(#f)" x="10" y="10" width="100" height="1,0"/>
|