Home
last modified time | relevance | path

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

1234

/external/skia/src/core/
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 …]
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
DSkPathEffect.cpp16 bool SkPathEffect::filterPath(SkPath* dst, const SkPath& src, SkStrokeRec* rec, in filterPath()
21 bool SkPathEffect::filterPath(SkPath* dst, const SkPath& src, SkStrokeRec* rec, in filterPath()
37 const SkStrokeRec& rec, const SkMatrix& mx, const SkRect* rect) const { in asPoints()
101 bool onFilterPath(SkPath* dst, const SkPath& src, SkStrokeRec* rec, in onFilterPath()
162 bool onFilterPath(SkPath* dst, const SkPath& src, SkStrokeRec* rec, in onFilterPath()
/external/skia/src/gpu/ganesh/
DGrStyle.cpp73 static_assert(SkStrokeRec::kStyleCount <= (1 << kStyleBits)); in WriteKey()
115 SkStrokeRec::Style recStyle = fStrokeRec.getStyle(); in initPathEffect()
116 if (recStyle != SkStrokeRec::kFill_Style && recStyle != SkStrokeRec::kStrokeAndFill_Style) { in initPathEffect()
129 bool GrStyle::applyPathEffect(SkPath* dst, SkStrokeRec* strokeRec, const SkPath& src) const { in applyPathEffect()
163 bool GrStyle::applyPathEffectToPath(SkPath *dst, SkStrokeRec *remainingStroke, in applyPathEffectToPath()
166 SkStrokeRec strokeRec = fStrokeRec; in applyPathEffectToPath()
175 bool GrStyle::applyToPath(SkPath* dst, SkStrokeRec::InitStyle* style, const SkPath& src, in applyToPath()
179 SkStrokeRec strokeRec = fStrokeRec; in applyToPath()
192 *style = SkStrokeRec::kFill_InitStyle; in applyToPath()
197 SkASSERT(SkStrokeRec::kFill_Style == strokeRec.getStyle() || in applyToPath()
[all …]
DGrStyle.h31 static const GrStyle kFill(SkStrokeRec::kFill_InitStyle); in SimpleFill()
40 static const GrStyle kHairline(SkStrokeRec::kHairline_InitStyle); in SimpleHairline()
77 GrStyle() : GrStyle(SkStrokeRec::kFill_InitStyle) {} in GrStyle()
79 explicit GrStyle(SkStrokeRec::InitStyle initStyle) : fStrokeRec(initStyle) {} in GrStyle()
81 GrStyle(const SkStrokeRec& strokeRec, sk_sp<SkPathEffect> pe) : fStrokeRec(strokeRec) { in GrStyle()
103 void resetToInitStyle(SkStrokeRec::InitStyle fillOrHairline) { in resetToInitStyle()
106 if (SkStrokeRec::kFill_InitStyle == fillOrHairline) { in resetToInitStyle()
140 const SkStrokeRec& strokeRec() const { return fStrokeRec; } in strokeRec()
159 bool SK_WARN_UNUSED_RESULT applyPathEffectToPath(SkPath* dst, SkStrokeRec* remainingStoke,
169 bool SK_WARN_UNUSED_RESULT applyToPath(SkPath* dst, SkStrokeRec::InitStyle* fillOrHairline,
[all …]
DGrTestUtils.cpp248 static void randomize_stroke_rec(SkStrokeRec* rec, SkRandom* random) { in randomize_stroke_rec()
259 SkStrokeRec TestStrokeRec(SkRandom* random) { in TestStrokeRec()
260 SkStrokeRec::InitStyle style = in TestStrokeRec()
261 SkStrokeRec::InitStyle(random->nextULessThan(SkStrokeRec::kFill_InitStyle + 1)); in TestStrokeRec()
262 SkStrokeRec rec(style); in TestStrokeRec()
268 SkStrokeRec::InitStyle initStyle = in TestStyle()
269 SkStrokeRec::InitStyle(random->nextULessThan(SkStrokeRec::kFill_InitStyle + 1)); in TestStyle()
270 SkStrokeRec stroke(initStyle); in TestStyle()
296 bool TestDashPathEffect::onFilterPath(SkPath* dst, const SkPath& src, SkStrokeRec* rec, in onFilterPath()
DGrUtil.cpp71 const SkStrokeRec& stroke = style.strokeRec(); in GrIsStrokeHairlineOrEquivalent()
78 return stroke.getStyle() == SkStrokeRec::kStroke_Style && in GrIsStrokeHairlineOrEquivalent()
/external/skia/tests/
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()
/external/skia/src/effects/
DSkOpPathEffect.cpp38 bool SkOpPE::onFilterPath(SkPath* dst, const SkPath& src, SkStrokeRec* rec, in onFilterPath()
129 bool SkMatrixPE::onFilterPath(SkPath* dst, const SkPath& src, SkStrokeRec*, const SkRect*, in onFilterPath() argument
158 bool SkStrokePE::onFilterPath(SkPath* dst, const SkPath& src, SkStrokeRec*, const SkRect*, in onFilterPath() argument
160 SkStrokeRec rec(SkStrokeRec::kFill_InitStyle); in onFilterPath()
168 SkStrokeRec rec(SkStrokeRec::kFill_InitStyle); in computeFastBounds()
214 bool SkStrokeAndFillPE::onFilterPath(SkPath* dst, const SkPath& src, SkStrokeRec* rec, in onFilterPath()
218 if (rec->getStyle() == SkStrokeRec::kStrokeAndFill_Style) { in onFilterPath()
223 if (rec->getStyle() == SkStrokeRec::kStroke_Style) { in onFilterPath()
DSkOpPE.h21 bool onFilterPath(SkPath* dst, const SkPath& src, SkStrokeRec*, const SkRect*,
42 bool onFilterPath(SkPath* dst, const SkPath& src, SkStrokeRec*, const SkRect*,
66 bool onFilterPath(SkPath* dst, const SkPath& src, SkStrokeRec*, const SkRect*,
88 bool onFilterPath(SkPath* dst, const SkPath& src, SkStrokeRec*, const SkRect*,
DSkDashImpl.h20 bool onFilterPath(SkPath* dst, const SkPath& src, SkStrokeRec*, const SkRect*,
23 bool onAsPoints(PointData* results, const SkPath& src, const SkStrokeRec&, const SkMatrix&,
/external/skia/src/gpu/ganesh/ops/
DAALinearizingConvexPathRenderer.cpp92 SkStrokeRec::Style style, in Make()
107 SkStrokeRec::Style style, in AAFlatteningConvexPathOp()
325 SkStrokeRec::Style fStyle;
361 const SkStrokeRec& stroke = args.fShape->style().strokeRec(); in onCanDrawPath()
363 if (stroke.getStyle() == SkStrokeRec::kStroke_Style || in onCanDrawPath()
364 stroke.getStyle() == SkStrokeRec::kStrokeAndFill_Style) { in onCanDrawPath()
369 if (strokeWidth < 1.0f && stroke.getStyle() == SkStrokeRec::kStroke_Style) { in onCanDrawPath()
379 if (stroke.getStyle() != SkStrokeRec::kFill_Style) { in onCanDrawPath()
401 const SkStrokeRec& stroke = args.fShape->style().strokeRec(); in onDrawPath()
421 SkStrokeRec::Style styles[3] = { SkStrokeRec::kFill_Style, in GR_DRAW_OP_TEST_DEFINE()
[all …]
DGrOvalOpFactory.h25 class SkStrokeRec; variable
50 const SkStrokeRec&,
57 const SkStrokeRec&,
DStrokeRectOp.h18 class SkStrokeRec; variable
33 const SkStrokeRec&);
DTessellationPathRenderer.cpp101 shape.style().strokeRec().getStyle() == SkStrokeRec::kStrokeAndFill_Style || in onCanDrawPath()
146 const SkStrokeRec& stroke = args.fShape->style().strokeRec(); in onDrawPath()
151 inflationRadius = SkStrokeRec::GetInflationRadius(stroke.getJoin(), in onDrawPath()
166 const SkStrokeRec& stroke = args.fShape->style().strokeRec(); in onDrawPath()
167 SkASSERT(stroke.getStyle() != SkStrokeRec::kStrokeAndFill_Style); in onDrawPath()
DGrOvalOpFactory.cpp1006 const SkStrokeRec& stroke = style.strokeRec(); in Make()
1007 SkStrokeRec::Style recStyle = stroke.getStyle(); in Make()
1011 case SkStrokeRec::kStrokeAndFill_Style: in Make()
1014 case SkStrokeRec::kFill_Style: in Make()
1017 case SkStrokeRec::kStroke_Style: in Make()
1024 case SkStrokeRec::kHairline_Style: in Make()
1042 const SkStrokeRec& stroke = style.strokeRec(); in CircleOp()
1043 SkStrokeRec::Style recStyle = stroke.getStyle(); in CircleOp()
1052 SkStrokeRec::kStroke_Style == recStyle || SkStrokeRec::kHairline_Style == recStyle; in CircleOp()
1053 bool hasStroke = isStrokeOnly || SkStrokeRec::kStrokeAndFill_Style == recStyle; in CircleOp()
[all …]
/external/skia/include/core/
DSkStrokeRec.h17 class SK_API SkStrokeRec {
23 SkStrokeRec(InitStyle style);
24 SkStrokeRec(const SkPaint&, SkPaint::Style, SkScalar resScale = 1);
25 explicit SkStrokeRec(const SkPaint&, SkScalar resScale = 1);
125 bool hasEqualEffect(const SkStrokeRec& other) const { in hasEqualEffect()
DSkPathEffect.h18 class SkStrokeRec; variable
87 bool filterPath(SkPath* dst, const SkPath& src, SkStrokeRec*, const SkRect* cullR) const;
90 bool filterPath(SkPath* dst, const SkPath& src, SkStrokeRec*, const SkRect* cullR,
/external/skia/modules/sksg/src/
DSkSGGeometryEffect.cpp68 SkStrokeRec rec(SkStrokeRec::kHairline_InitStyle); in onRevalidateEffect()
126 SkStrokeRec rec(SkStrokeRec::kHairline_InitStyle); in onRevalidateEffect()
138 SkStrokeRec rec(SkStrokeRec::kHairline_InitStyle); in onRevalidateEffect()
/external/skia/src/gpu/tessellate/
DTessellation.h141 inline float GetJoinType(const SkStrokeRec& stroke) { in GetJoinType()
154 StrokeParams(const SkStrokeRec& stroke) { in StrokeParams()
157 void set(const SkStrokeRec& stroke) { in set()
166 inline bool StrokesHaveEqualParams(const SkStrokeRec& a, const SkStrokeRec& b) { in StrokesHaveEqualParams()
/external/skia/src/gpu/graphite/
DDevice.cpp68 static const SkStrokeRec kFillStyle(SkStrokeRec::kFill_InitStyle);
153 bool is_simple_shape(const Shape& shape, SkStrokeRec::Style type) { in is_simple_shape()
156 return !shape.inverted() && type != SkStrokeRec::kStrokeAndFill_Style && in is_simple_shape()
158 (shape.isRRect() && (type != SkStrokeRec::kStroke_Style || in is_simple_shape()
626 paint, SkStrokeRec(paint)); in drawRect()
645 paint, SkStrokeRec(paint)); in drawOval()
650 paint, SkStrokeRec(paint)); in drawRRect()
657 paint, SkStrokeRec(paint)); in drawPath()
681 SkStrokeRec stroke(paint, SkPaint::kStroke_Style); in drawPoints()
817 const SkStrokeRec& style, in drawGeometry()
[all …]
/external/skia/src/gpu/ganesh/tessellate/
DGrStrokeTessellationShader.h31 const SkStrokeRec&, SkPMColor4f);
37 const SkStrokeRec& stroke() const { return fStroke;} in stroke()
45 const SkStrokeRec fStroke;
DStrokeTessellator.h33 PathStrokeList(const SkPath& path, const SkStrokeRec& stroke, const SkPMColor4f& color) in PathStrokeList()
36 SkStrokeRec fStroke;
/external/skia/src/utils/
DSkDashPath.cpp92 static void outset_for_stroke(SkRect* rect, const SkStrokeRec& rec) { in outset_for_stroke()
172 static bool cull_path(const SkPath& srcPath, const SkStrokeRec& rec, in cull_path()
236 bool init(const SkPath& src, SkPath* dst, SkStrokeRec* rec, in init()
305 bool SkDashPath::InternalFilter(SkPath* dst, const SkPath& src, SkStrokeRec* rec, in InternalFilter()
314 SkStrokeRec::Style style = rec->getStyle(); in InternalFilter()
315 if (SkStrokeRec::kFill_Style == style || SkStrokeRec::kStrokeAndFill_Style == style) { in InternalFilter()
458 bool SkDashPath::FilterDashPath(SkPath* dst, const SkPath& src, SkStrokeRec* rec, in FilterDashPath()
/external/skia/src/gpu/ganesh/geometry/
DGrStyledShape.cpp360 SkStrokeRec strokeRec = parent.fStyle.strokeRec(); in GrStyledShape()
384 SkStrokeRec::InitStyle fillOrHairline; in GrStyledShape()
390 fillOrHairline = SkStrokeRec::kFill_InitStyle; in GrStyledShape()
393 fillOrHairline = SkStrokeRec::kHairline_InitStyle; in GrStyledShape()
408 SkStrokeRec::InitStyle fillOrHairline; in GrStyledShape()
611 (fStyle.strokeRec().getStyle() == SkStrokeRec::kStroke_Style || in simplify()
612 fStyle.strokeRec().getStyle() == SkStrokeRec::kHairline_Style || in simplify()
636 fStyle.strokeRec().getStyle() == SkStrokeRec::kStrokeAndFill_Style) { in simplifyStroke()
700 } else if (fStyle.strokeRec().getStyle() == SkStrokeRec::kStrokeAndFill_Style) { in simplifyStroke()
702 SkStrokeRec rec = fStyle.strokeRec(); in simplifyStroke()
[all …]

1234