Home
last modified time | relevance | path

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

123

/third_party/skia/src/core/
DSkStrokeRec.cpp14 SkStrokeRec::SkStrokeRec(InitStyle s) { in SkStrokeRec() function in SkStrokeRec
23 SkStrokeRec::SkStrokeRec(const SkPaint& paint, SkScalar resScale) { in SkStrokeRec() function in SkStrokeRec
27 SkStrokeRec::SkStrokeRec(const SkPaint& paint, SkPaint::Style styleOverride, SkScalar resScale) { in SkStrokeRec() function in SkStrokeRec
31 void SkStrokeRec::init(const SkPaint& paint, SkPaint::Style style, SkScalar resScale) { in init()
67 SkStrokeRec::Style SkStrokeRec::getStyle() const { in getStyle()
77 void SkStrokeRec::setFillStyle() { in setFillStyle()
82 void SkStrokeRec::setHairlineStyle() { in setHairlineStyle()
87 void SkStrokeRec::setStrokeStyle(SkScalar width, bool strokeAndFill) { in setStrokeStyle()
105 bool SkStrokeRec::applyToPath(SkPath* dst, const SkPath& src) const { in applyToPath()
125 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()
/third_party/skia/src/gpu/
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.cpp247 static void randomize_stroke_rec(SkStrokeRec* rec, SkRandom* random) { in randomize_stroke_rec()
258 SkStrokeRec TestStrokeRec(SkRandom* random) { in TestStrokeRec()
259 SkStrokeRec::InitStyle style = in TestStrokeRec()
260 SkStrokeRec::InitStyle(random->nextULessThan(SkStrokeRec::kFill_InitStyle + 1)); in TestStrokeRec()
261 SkStrokeRec rec(style); in TestStrokeRec()
267 SkStrokeRec::InitStyle initStyle = in TestStyle()
268 SkStrokeRec::InitStyle(random->nextULessThan(SkStrokeRec::kFill_InitStyle + 1)); in TestStyle()
269 SkStrokeRec stroke(initStyle); in TestStyle()
295 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()
/third_party/skia/experimental/graphite/src/
DDevice.cpp41 static const SkStrokeRec kFillStyle(SkStrokeRec::kFill_InitStyle);
168 this->drawShape(Shape(r), paint, SkStrokeRec(paint)); in drawRect()
174 this->drawShape(Shape(SkRRect::MakeOval(oval)), paint, SkStrokeRec(paint)); in drawOval()
178 this->drawShape(Shape(rr), paint, SkStrokeRec(paint)); in drawRRect()
184 this->drawShape(Shape(path), paint, SkStrokeRec(paint)); in drawPath()
205 SkStrokeRec stroke(paint, SkPaint::kStroke_Style); in drawPoints()
215 const SkStrokeRec& style, in drawShape()
235 SkStrokeRec newStyle = style; in drawShape()
266 const SkStrokeRec::Style styleType = style.getStyle(); in drawShape()
267 if (this->needsFlushBeforeDraw(styleType == SkStrokeRec::kStrokeAndFill_Style ? 2 : 1)) { in drawShape()
[all …]
/third_party/skia/tests/
DStrokeTest.cpp91 SkStrokeRec s1(SkStrokeRec::kFill_InitStyle); in test_strokerec_equality()
92 SkStrokeRec s2(SkStrokeRec::kFill_InitStyle); in test_strokerec_equality()
118 SkStrokeRec s1(SkStrokeRec::kFill_InitStyle); in test_strokerec_equality()
119 SkStrokeRec s2(SkStrokeRec::kFill_InitStyle); in test_strokerec_equality()
135 SkStrokeRec s1(SkStrokeRec::kFill_InitStyle); in test_strokerec_equality()
136 SkStrokeRec s2(SkStrokeRec::kFill_InitStyle); in test_strokerec_equality()
/third_party/skia/src/effects/
DSkOpPathEffect.cpp23 bool SkOpPE::onFilterPath(SkPath* dst, const SkPath& src, SkStrokeRec* rec, in onFilterPath()
114 bool SkMatrixPE::onFilterPath(SkPath* dst, const SkPath& src, SkStrokeRec*, const SkRect*, in onFilterPath() argument
143 bool SkStrokePE::onFilterPath(SkPath* dst, const SkPath& src, SkStrokeRec*, const SkRect*, in onFilterPath() argument
145 SkStrokeRec rec(SkStrokeRec::kFill_InitStyle); in onFilterPath()
153 SkStrokeRec rec(SkStrokeRec::kFill_InitStyle); in computeFastBounds()
199 bool SkStrokeAndFillPE::onFilterPath(SkPath* dst, const SkPath& src, SkStrokeRec* rec, in onFilterPath()
203 if (rec->getStyle() == SkStrokeRec::kStrokeAndFill_Style) { in onFilterPath()
208 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&,
/third_party/skia/src/gpu/ops/
DAALinearizingConvexPathRenderer.cpp92 SkStrokeRec::Style style, in Make()
107 SkStrokeRec::Style style, in AAFlatteningConvexPathOp()
326 SkStrokeRec::Style fStyle;
362 const SkStrokeRec& stroke = args.fShape->style().strokeRec(); in onCanDrawPath()
364 if (stroke.getStyle() == SkStrokeRec::kStroke_Style || in onCanDrawPath()
365 stroke.getStyle() == SkStrokeRec::kStrokeAndFill_Style) { in onCanDrawPath()
370 if (strokeWidth < 1.0f && stroke.getStyle() == SkStrokeRec::kStroke_Style) { in onCanDrawPath()
380 if (stroke.getStyle() != SkStrokeRec::kFill_Style) { in onCanDrawPath()
402 const SkStrokeRec& stroke = args.fShape->style().strokeRec(); in onDrawPath()
422 SkStrokeRec::Style styles[3] = { SkStrokeRec::kFill_Style, in GR_DRAW_OP_TEST_DEFINE()
[all …]
DGrOvalOpFactory.h23 class SkStrokeRec; variable
48 const SkStrokeRec&,
55 const SkStrokeRec&,
DTessellationPathRenderer.cpp93 shape.style().strokeRec().getStyle() == SkStrokeRec::kStrokeAndFill_Style || in onCanDrawPath()
129 const SkStrokeRec& stroke = args.fShape->style().strokeRec(); in onDrawPath()
134 inflationRadius = SkStrokeRec::GetInflationRadius(stroke.getJoin(), in onDrawPath()
149 const SkStrokeRec& stroke = args.fShape->style().strokeRec(); in onDrawPath()
150 SkASSERT(stroke.getStyle() != SkStrokeRec::kStrokeAndFill_Style); in onDrawPath()
DStrokeRectOp.h18 class SkStrokeRec; variable
33 const SkStrokeRec&);
DGrOvalOpFactory.cpp1001 const SkStrokeRec& stroke = style.strokeRec(); in Make()
1002 SkStrokeRec::Style recStyle = stroke.getStyle(); in Make()
1006 case SkStrokeRec::kStrokeAndFill_Style: in Make()
1009 case SkStrokeRec::kFill_Style: in Make()
1012 case SkStrokeRec::kStroke_Style: in Make()
1019 case SkStrokeRec::kHairline_Style: in Make()
1037 const SkStrokeRec& stroke = style.strokeRec(); in CircleOp()
1038 SkStrokeRec::Style recStyle = stroke.getStyle(); in CircleOp()
1047 SkStrokeRec::kStroke_Style == recStyle || SkStrokeRec::kHairline_Style == recStyle; in CircleOp()
1048 bool hasStroke = isStrokeOnly || SkStrokeRec::kStrokeAndFill_Style == recStyle; in CircleOp()
[all …]
/third_party/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,
/third_party/skia/modules/sksg/src/
DSkSGGeometryEffect.cpp66 SkStrokeRec rec(SkStrokeRec::kHairline_InitStyle); in onRevalidateEffect()
124 SkStrokeRec rec(SkStrokeRec::kHairline_InitStyle); in onRevalidateEffect()
136 SkStrokeRec rec(SkStrokeRec::kHairline_InitStyle); in onRevalidateEffect()
/third_party/skia/src/gpu/tessellate/
DTessellation.h92 static float GetJoinType(const SkStrokeRec& stroke) { in GR_MAKE_BITFIELD_CLASS_OPS()
103 static bool StrokesHaveEqualParams(const SkStrokeRec& a, const SkStrokeRec& b) { in StrokesHaveEqualParams()
107 void set(const SkStrokeRec& stroke) { in set()
/third_party/skia/src/utils/
DSkDashPath.cpp78 static void outset_for_stroke(SkRect* rect, const SkStrokeRec& rec) { in outset_for_stroke()
158 static bool cull_path(const SkPath& srcPath, const SkStrokeRec& rec, in cull_path()
222 bool init(const SkPath& src, SkPath* dst, SkStrokeRec* rec, in init()
291 bool SkDashPath::InternalFilter(SkPath* dst, const SkPath& src, SkStrokeRec* rec, in InternalFilter()
300 SkStrokeRec::Style style = rec->getStyle(); in InternalFilter()
301 if (SkStrokeRec::kFill_Style == style || SkStrokeRec::kStrokeAndFill_Style == style) { in InternalFilter()
440 bool SkDashPath::FilterDashPath(SkPath* dst, const SkPath& src, SkStrokeRec* rec, in FilterDashPath()
DSkDashPathPriv.h26 bool FilterDashPath(SkPath* dst, const SkPath& src, SkStrokeRec*, const SkRect*,
47 bool InternalFilter(SkPath* dst, const SkPath& src, SkStrokeRec* rec,
/third_party/skia/src/gpu/tessellate/shaders/
DGrStrokeTessellationShader.h38 const SkStrokeRec&, SkPMColor4f, int8_t maxParametricSegments_log2);
45 const SkStrokeRec& stroke() const { return fStroke;} in stroke()
72 const SkStrokeRec fStroke;
/third_party/skia/src/gpu/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 …]

123