Home
last modified time | relevance | path

Searched refs:SkStrokeRec (Results 1 – 25 of 450) sorted by relevance

12345678910>>...18

/aosp_15_r20/external/skia/src/core/
H A DSkStrokeRec.cpp18 SkStrokeRec::SkStrokeRec(InitStyle s) { in SkStrokeRec() function in SkStrokeRec
27 SkStrokeRec::SkStrokeRec(const SkPaint& paint, SkScalar resScale) { in SkStrokeRec() function in SkStrokeRec
31 SkStrokeRec::SkStrokeRec(const SkPaint& paint, SkPaint::Style styleOverride, SkScalar resScale) { in SkStrokeRec() function in SkStrokeRec
35 void SkStrokeRec::init(const SkPaint& paint, SkPaint::Style style, SkScalar resScale) { in init()
71 SkStrokeRec::Style SkStrokeRec::getStyle() const { in getStyle()
81 void SkStrokeRec::setFillStyle() { in setFillStyle()
86 void SkStrokeRec::setHairlineStyle() { in setHairlineStyle()
91 void SkStrokeRec::setStrokeStyle(SkScalar width, bool strokeAndFill) { in setStrokeStyle()
107 bool SkStrokeRec::applyToPath(SkPath* dst, const SkPath& src) const { in applyToPath()
127 void SkStrokeRec::applyToPaint(SkPaint* paint) const { in applyToPaint()
[all …]
H A DSkPathEffect.cpp21 class SkStrokeRec;
27 bool SkPathEffect::filterPath(SkPath* dst, const SkPath& src, SkStrokeRec* rec, in filterPath()
32 bool SkPathEffect::filterPath(SkPath* dst, const SkPath& src, SkStrokeRec* rec, in filterPath()
48 const SkStrokeRec& rec, const SkMatrix& mx, const SkRect* rect) const { in asPoints()
108 bool onFilterPath(SkPath* dst, const SkPath& src, SkStrokeRec* rec, in onFilterPath()
169 bool onFilterPath(SkPath* dst, const SkPath& src, SkStrokeRec* rec, in onFilterPath()
H A DSkPathEffectBase.h17 class SkStrokeRec; variable
69 const SkStrokeRec&, const SkMatrix&,
100 virtual bool onFilterPath(SkPath*, const SkPath&, SkStrokeRec*, const SkRect*,
106 virtual bool onAsPoints(PointData*, const SkPath&, const SkStrokeRec&, const SkMatrix&, in onAsPoints() argument
H A DSkDrawBase.cpp339 SkStrokeRec::InitStyle style = doFill ? SkStrokeRec::kFill_InitStyle in drawDevPath()
340 : SkStrokeRec::kHairline_InitStyle; in drawDevPath()
528 SkStrokeRec::InitStyle style) { in draw_into_mask()
547 case SkStrokeRec::kHairline_InitStyle: in draw_into_mask()
551 case SkStrokeRec::kFill_InitStyle: in draw_into_mask()
562 SkStrokeRec::InitStyle style) { in DrawToMask()
668 SkStrokeRec stroke(paint); in drawDevicePoints()
/aosp_15_r20/external/skia/src/gpu/ganesh/
H A DGrStyle.cpp75 static_assert(SkStrokeRec::kStyleCount <= (1 << kStyleBits)); in WriteKey()
117 SkStrokeRec::Style recStyle = fStrokeRec.getStyle(); in initPathEffect()
118 if (recStyle != SkStrokeRec::kFill_Style && recStyle != SkStrokeRec::kStrokeAndFill_Style) { in initPathEffect()
131 bool GrStyle::applyPathEffect(SkPath* dst, SkStrokeRec* strokeRec, const SkPath& src) const { in applyPathEffect()
165 bool GrStyle::applyPathEffectToPath(SkPath *dst, SkStrokeRec *remainingStroke, in applyPathEffectToPath()
168 SkStrokeRec strokeRec = fStrokeRec; in applyPathEffectToPath()
177 bool GrStyle::applyToPath(SkPath* dst, SkStrokeRec::InitStyle* style, const SkPath& src, in applyToPath()
181 SkStrokeRec strokeRec = fStrokeRec; in applyToPath()
194 *style = SkStrokeRec::kFill_InitStyle; in applyToPath()
199 SkASSERT(SkStrokeRec::kFill_Style == strokeRec.getStyle() || in applyToPath()
[all …]
H A DGrStyle.h43 static const GrStyle kFill(SkStrokeRec::kFill_InitStyle); in SimpleFill()
52 static const GrStyle kHairline(SkStrokeRec::kHairline_InitStyle); in SimpleHairline()
89 GrStyle() : GrStyle(SkStrokeRec::kFill_InitStyle) {} in GrStyle()
91 explicit GrStyle(SkStrokeRec::InitStyle initStyle) : fStrokeRec(initStyle) {} in GrStyle()
93 GrStyle(const SkStrokeRec& strokeRec, sk_sp<SkPathEffect> pe) : fStrokeRec(strokeRec) { in GrStyle()
115 void resetToInitStyle(SkStrokeRec::InitStyle fillOrHairline) { in resetToInitStyle()
118 if (SkStrokeRec::kFill_InitStyle == fillOrHairline) { in resetToInitStyle()
152 const SkStrokeRec& strokeRec() const { return fStrokeRec; } in strokeRec()
171 [[nodiscard]] bool applyPathEffectToPath(SkPath* dst, SkStrokeRec* remainingStoke,
181 [[nodiscard]] bool applyToPath(SkPath* dst, SkStrokeRec::InitStyle* fillOrHairline,
[all …]
H A DGrTestUtils.cpp260 static void randomize_stroke_rec(SkStrokeRec* rec, SkRandom* random) { in randomize_stroke_rec()
271 SkStrokeRec TestStrokeRec(SkRandom* random) { in TestStrokeRec()
272 SkStrokeRec::InitStyle style = in TestStrokeRec()
273 SkStrokeRec::InitStyle(random->nextULessThan(SkStrokeRec::kFill_InitStyle + 1)); in TestStrokeRec()
274 SkStrokeRec rec(style); in TestStrokeRec()
280 SkStrokeRec::InitStyle initStyle = in TestStyle()
281 SkStrokeRec::InitStyle(random->nextULessThan(SkStrokeRec::kFill_InitStyle + 1)); in TestStyle()
282 SkStrokeRec stroke(initStyle); in TestStyle()
308 bool TestDashPathEffect::onFilterPath(SkPath* dst, const SkPath& src, SkStrokeRec* rec, in onFilterPath()
/aosp_15_r20/external/skia/tests/
H A DStrokeTest.cpp98 SkStrokeRec s1(SkStrokeRec::kFill_InitStyle); in test_strokerec_equality()
99 SkStrokeRec s2(SkStrokeRec::kFill_InitStyle); in test_strokerec_equality()
125 SkStrokeRec s1(SkStrokeRec::kFill_InitStyle); in test_strokerec_equality()
126 SkStrokeRec s2(SkStrokeRec::kFill_InitStyle); in test_strokerec_equality()
142 SkStrokeRec s1(SkStrokeRec::kFill_InitStyle); in test_strokerec_equality()
143 SkStrokeRec s2(SkStrokeRec::kFill_InitStyle); in test_strokerec_equality()
H A DGrStyledShapeTest.cpp131 const SkStrokeRec::Style strokeRecStyle = shape.style().strokeRec().getStyle(); in can_interchange_winding_and_even_odd_fill()
132 return strokeRecStyle == SkStrokeRec::kStroke_Style || in can_interchange_winding_and_even_odd_fill()
133 strokeRecStyle == SkStrokeRec::kHairline_Style || in can_interchange_winding_and_even_odd_fill()
668 SkStrokeRec postPEStrokeRec(SkStrokeRec::kFill_InitStyle); in init()
681 SkStrokeRec::InitStyle fillOrHairline; in init()
698 if (fillOrHairline == SkStrokeRec::kFill_InitStyle) { in init()
1186 bool onFilterPath(SkPath* dst, const SkPath& src, SkStrokeRec*, in test_path_effect_makes_rrect() argument
1267 bool onFilterPath(SkPath* dst, const SkPath& src, SkStrokeRec*, in test_unknown_path_effect() argument
1315 bool onFilterPath(SkPath* dst, const SkPath& src, SkStrokeRec* strokeRec, in test_make_hairline_path_effect()
1399 bool onFilterPath(SkPath* dst, const SkPath& src, SkStrokeRec*, in test_path_effect_makes_empty_shape() argument
[all …]
/aosp_15_r20/external/skia/src/gpu/ganesh/ops/
H A DAALinearizingConvexPathRenderer.cpp130 SkStrokeRec::Style style, in Make()
145 SkStrokeRec::Style style, in AAFlatteningConvexPathOp()
363 SkStrokeRec::Style fStyle;
399 const SkStrokeRec& stroke = args.fShape->style().strokeRec(); in onCanDrawPath()
401 if (stroke.getStyle() == SkStrokeRec::kStroke_Style || in onCanDrawPath()
402 stroke.getStyle() == SkStrokeRec::kStrokeAndFill_Style) { in onCanDrawPath()
407 if (strokeWidth < 1.0f && stroke.getStyle() == SkStrokeRec::kStroke_Style) { in onCanDrawPath()
417 if (stroke.getStyle() != SkStrokeRec::kFill_Style) { in onCanDrawPath()
439 const SkStrokeRec& stroke = args.fShape->style().strokeRec(); in onDrawPath()
459 SkStrokeRec::Style styles[3] = { SkStrokeRec::kFill_Style, in GR_DRAW_OP_TEST_DEFINE()
[all …]
H A DGrOvalOpFactory.cpp1053 const SkStrokeRec& stroke = style.strokeRec(); in Make()
1054 SkStrokeRec::Style recStyle = stroke.getStyle(); in Make()
1058 case SkStrokeRec::kStrokeAndFill_Style: in Make()
1061 case SkStrokeRec::kFill_Style: in Make()
1064 case SkStrokeRec::kStroke_Style: in Make()
1071 case SkStrokeRec::kHairline_Style: in Make()
1089 const SkStrokeRec& stroke = style.strokeRec(); in CircleOp()
1090 SkStrokeRec::Style recStyle = stroke.getStyle(); in CircleOp()
1099 SkStrokeRec::kStroke_Style == recStyle || SkStrokeRec::kHairline_Style == recStyle; in CircleOp()
1100 bool hasStroke = isStrokeOnly || SkStrokeRec::kStrokeAndFill_Style == recStyle; in CircleOp()
[all …]
H A DStrokeRectOp.cpp76 inline bool allowed_stroke(const GrCaps* caps, const SkStrokeRec& stroke, GrAA aa, bool* isMiter) { in allowed_stroke()
77 SkASSERT(stroke.getStyle() == SkStrokeRec::kStroke_Style || in allowed_stroke()
78 stroke.getStyle() == SkStrokeRec::kHairline_Style); in allowed_stroke()
154 const SkStrokeRec& stroke, in Make()
164 if (stroke.getStyle() == SkStrokeRec::kHairline_Style && aaType != GrAAType::kMSAA) { in Make()
174 const SkStrokeRec& stroke, GrAAType aaType) in NonAAStrokeRectOp()
487 const SkStrokeRec& stroke) { in Make()
988 const SkStrokeRec& stroke) { in Make()
1043 SkStrokeRec strokeRec(strokePaint); in GR_DRAW_OP_TEST_DEFINE()
1062 SkStrokeRec rec(SkStrokeRec::kFill_InitStyle); in GR_DRAW_OP_TEST_DEFINE()
H A DTessellationPathRenderer.cpp95 const SkStrokeRec& stroke, in ChopPathIfNecessary()
112 inflationRadius = SkStrokeRec::GetInflationRadius(stroke.getJoin(), in ChopPathIfNecessary()
158 shape.style().strokeRec().getStyle() == SkStrokeRec::kStrokeAndFill_Style || in onCanDrawPath()
209 const SkStrokeRec& stroke = args.fShape->style().strokeRec(); in onDrawPath()
210 SkASSERT(stroke.getStyle() != SkStrokeRec::kStrokeAndFill_Style); in onDrawPath()
H A DGrOvalOpFactory.h22 class SkStrokeRec; variable
49 const SkStrokeRec&,
56 const SkStrokeRec&,
/aosp_15_r20/external/skia/src/gpu/graphite/
H A DComputePathAtlas.cpp133 const SkStrokeRec&,
163 const SkStrokeRec&,
216 const SkStrokeRec& style, in add_shape_to_scene()
248 SkStrokeRec::Style styleType = style.getStyle(); in add_shape_to_scene()
249 if (styleType == SkStrokeRec::kStroke_Style || in add_shape_to_scene()
250 styleType == SkStrokeRec::kHairline_Style || in add_shape_to_scene()
251 styleType == SkStrokeRec::kStrokeAndFill_Style) { in add_shape_to_scene()
267 SkStrokeRec adjustedStyle(style); in add_shape_to_scene()
274 if (styleType == SkStrokeRec::kFill_Style || styleType == SkStrokeRec::kStrokeAndFill_Style) { in add_shape_to_scene()
311 const SkStrokeRec& style, in onAddShape()
[all …]
H A DDevice.cpp98 const SkStrokeRec& DefaultFillStyle() { in DefaultFillStyle()
99 static const SkStrokeRec kFillStyle(SkStrokeRec::kFill_InitStyle); in DefaultFillStyle()
297 bool is_simple_shape(const Shape& shape, SkStrokeRec::Style type) { in is_simple_shape()
304 (!shape.inverted() && type != SkStrokeRec::kStrokeAndFill_Style && in is_simple_shape()
306 (shape.isLine() && type != SkStrokeRec::kFill_Style) || in is_simple_shape()
307 (shape.isRRect() && (type != SkStrokeRec::kStroke_Style || in is_simple_shape()
796 SkStrokeRec style(paint); in drawRect()
803 const bool strokeAndFill = style.getStyle() == SkStrokeRec::kStrokeAndFill_Style; in drawRect()
885 paint, SkStrokeRec(paint)); in drawOval()
907 paint, SkStrokeRec(paint)); in drawArc()
[all …]
H A DPathAtlas.h91 const SkStrokeRec& style);
117 const SkStrokeRec&,
127 const SkStrokeRec& strokeRec,
134 const SkStrokeRec& strokeRec,
152 const SkStrokeRec&,
H A DRasterPathUtils.cpp43 const SkStrokeRec& strokeRec, in drawShape()
71 const SkStrokeRec& strokeRec, in GeneratePathMaskKey()
113 static_assert(SkStrokeRec::kStyleCount <= (1 << 2)); in GeneratePathMaskKey()
/aosp_15_r20/external/skia/modules/sksg/src/
H A DSkSGGeometryEffect.cpp77 SkStrokeRec rec(SkStrokeRec::kHairline_InitStyle); in onRevalidateEffect()
135 SkStrokeRec rec(SkStrokeRec::kHairline_InitStyle); in onRevalidateEffect()
147 SkStrokeRec rec(SkStrokeRec::kHairline_InitStyle); in onRevalidateEffect()
/aosp_15_r20/external/skia/include/core/
H A DSkStrokeRec.h22 class SK_API SkStrokeRec {
28 SkStrokeRec(InitStyle style);
29 SkStrokeRec(const SkPaint&, SkPaint::Style, SkScalar resScale = 1);
30 explicit SkStrokeRec(const SkPaint&, SkScalar resScale = 1);
130 bool hasEqualEffect(const SkStrokeRec& other) const { in hasEqualEffect()
H A DSkPathEffect.h21 class SkStrokeRec; variable
71 bool filterPath(SkPath* dst, const SkPath& src, SkStrokeRec*, const SkRect* cullR) const;
74 bool filterPath(SkPath* dst, const SkPath& src, SkStrokeRec*, const SkRect* cullR,
/aosp_15_r20/external/skia/src/gpu/tessellate/
H A DTessellation.h146 inline float GetJoinType(const SkStrokeRec& stroke) { in GetJoinType()
159 StrokeParams(const SkStrokeRec& stroke) { in StrokeParams()
162 void set(const SkStrokeRec& stroke) { in set()
171 inline bool StrokesHaveEqualParams(const SkStrokeRec& a, const SkStrokeRec& b) { in StrokesHaveEqualParams()
/aosp_15_r20/external/skia/src/gpu/ganesh/geometry/
H A DGrStyledShape.cpp372 SkStrokeRec strokeRec = parent.fStyle.strokeRec(); in GrStyledShape()
396 SkStrokeRec::InitStyle fillOrHairline; in GrStyledShape()
402 fillOrHairline = SkStrokeRec::kFill_InitStyle; in GrStyledShape()
405 fillOrHairline = SkStrokeRec::kHairline_InitStyle; in GrStyledShape()
420 SkStrokeRec::InitStyle fillOrHairline; in GrStyledShape()
557 (fStyle.strokeRec().getStyle() == SkStrokeRec::kStroke_Style || in simplify()
558 fStyle.strokeRec().getStyle() == SkStrokeRec::kHairline_Style || in simplify()
582 fStyle.strokeRec().getStyle() == SkStrokeRec::kStrokeAndFill_Style) { in simplifyStroke()
646 } else if (fStyle.strokeRec().getStyle() == SkStrokeRec::kStrokeAndFill_Style) { in simplifyStroke()
648 SkStrokeRec rec = fStyle.strokeRec(); in simplifyStroke()
[all …]
/aosp_15_r20/external/skia/src/utils/
H A DSkDashPath.cpp93 static void outset_for_stroke(SkRect* rect, const SkStrokeRec& rec) { in outset_for_stroke()
173 static bool cull_path(const SkPath& srcPath, const SkStrokeRec& rec, in cull_path()
237 bool init(const SkPath& src, SkPath* dst, SkStrokeRec* rec, in init()
309 bool SkDashPath::InternalFilter(SkPath* dst, const SkPath& src, SkStrokeRec* rec, in InternalFilter()
318 SkStrokeRec::Style style = rec->getStyle(); in InternalFilter()
319 if (SkStrokeRec::kFill_Style == style || SkStrokeRec::kStrokeAndFill_Style == style) { in InternalFilter()
458 bool SkDashPath::FilterDashPath(SkPath* dst, const SkPath& src, SkStrokeRec* rec, in FilterDashPath()
/aosp_15_r20/external/skia/src/gpu/ganesh/tessellate/
H A DGrStrokeTessellationShader.h39 const SkStrokeRec&, SkPMColor4f);
45 const SkStrokeRec& stroke() const { return fStroke;} in stroke()
53 const SkStrokeRec fStroke;

12345678910>>...18