Home
last modified time | relevance | path

Searched refs:SkStrokeRec (Results 1 - 25 of 70) sorted by relevance

123

/third_party/skia/src/core/
H A DSkStrokeRec.cpp8 #include "include/core/SkStrokeRec.h"
14 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
[all...]
H A DSkPathEffectBase.h17 class SkStrokeRec;
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 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,
162 bool onFilterPath(SkPath* dst, const SkPath& src, SkStrokeRec* rec,
/third_party/skia/src/gpu/
H A DGrStyle.cpp44 // from SkStrokeRec output by the the path effect (and no additional path effect). in WriteKey()
73 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 strokeRe in applyToPath()
[all...]
H A DGrStyle.h12 #include "include/core/SkStrokeRec.h"
31 static const GrStyle kFill(SkStrokeRec::kFill_InitStyle); in SimpleFill()
40 static const GrStyle kHairline(SkStrokeRec::kHairline_InitStyle); in SimpleHairline()
72 * for just dash application followed by the key for the remaining SkStrokeRec is the same as
73 * the key for applying dashing and SkStrokeRec all at once.
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 in resetToInitStyle()
[all...]
H A 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 strok in TestStyle()
[all...]
H A DGrUtil.cpp71 const SkStrokeRec& stroke = style.strokeRec(); in GrIsStrokeHairlineOrEquivalent()
78 return stroke.getStyle() == SkStrokeRec::kStroke_Style && in GrIsStrokeHairlineOrEquivalent()
/third_party/skia/experimental/graphite/src/
H A DDevice.cpp30 #include "include/core/SkStrokeRec.h"
41 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 newStyl in drawShape()
[all...]
/third_party/skia/tests/
H A DStrokeTest.cpp11 #include "include/core/SkStrokeRec.h"
91 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 s in test_strokerec_equality()
[all...]
/third_party/skia/src/gpu/ops/
H A 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 in GR_DRAW_OP_TEST_DEFINE()
[all...]
H A DGrOvalOpFactory.h23 class SkStrokeRec;
48 const SkStrokeRec&,
55 const SkStrokeRec&,
H A DStrokeRectOp.h18 class SkStrokeRec;
33 const SkStrokeRec&);
H A DGrOvalOpFactory.cpp10 #include "include/core/SkStrokeRec.h"
1030 const SkStrokeRec& stroke = style.strokeRec();
1031 SkStrokeRec::Style recStyle = stroke.getStyle();
1035 case SkStrokeRec::kStrokeAndFill_Style:
1038 case SkStrokeRec::kFill_Style:
1041 case SkStrokeRec::kStroke_Style:
1048 case SkStrokeRec::kHairline_Style:
1066 const SkStrokeRec& stroke = style.strokeRec();
1067 SkStrokeRec::Style recStyle = stroke.getStyle();
1076 SkStrokeRec
[all...]
H A DTessellationPathRenderer.cpp93 shape.style().strokeRec().getStyle() == SkStrokeRec::kStrokeAndFill_Style || in onCanDrawPath()
129 const SkStrokeRec& stroke = args.fShape->style().strokeRec(); in onDrawPath()
132 // SkStrokeRec::getInflationRadius() doesn't handle hairlines robustly. Instead 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()
/third_party/skia/src/effects/
H A DSkOpPathEffect.cpp8 #include "include/core/SkStrokeRec.h"
23 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()
143 bool SkStrokePE::onFilterPath(SkPath* dst, const SkPath& src, SkStrokeRec*, const SkRect*, in onFilterPath()
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 in onFilterPath()
[all...]
H A 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*,
H A 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/modules/sksg/src/
H A DSkSGGeometryEffect.cpp11 #include "include/core/SkStrokeRec.h"
66 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/include/core/
H A DSkStrokeRec.h17 class SK_API SkStrokeRec { class
23 SkStrokeRec(InitStyle style);
24 SkStrokeRec(const SkPaint&, SkPaint::Style, SkScalar resScale = 1);
25 explicit SkStrokeRec(const SkPaint&, SkScalar resScale = 1);
110 * SkStrokeRec rec(paint, style);
125 bool hasEqualEffect(const SkStrokeRec& other) const { in hasEqualEffect()
H A DSkPathEffect.h18 class SkStrokeRec;
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/src/gpu/tessellate/
H A DTessellation.h11 #include "include/core/SkStrokeRec.h"
92 static float GetJoinType(const SkStrokeRec& stroke) { in GetJoinType()
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/
H A DSkDashPath.cpp9 #include "include/core/SkStrokeRec.h"
78 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,
222 bool init(const SkPath& src, SkPath* dst, SkStrokeRec* rec,
291 bool SkDashPath::InternalFilter(SkPath* dst, const SkPath& src, SkStrokeRec* rec,
300 SkStrokeRec::Style style = rec->getStyle();
301 if (SkStrokeRec::kFill_Style == style || SkStrokeRec::kStrokeAndFill_Style == style) {
440 bool SkDashPath::FilterDashPath(SkPath* dst, const SkPath& src, SkStrokeRec* rec,
H A 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/
H A DGrStrokeTessellationShader.h13 #include "include/core/SkStrokeRec.h"
38 const SkStrokeRec&, SkPMColor4f, int8_t maxParametricSegments_log2);
45 const SkStrokeRec& stroke() const { return fStroke;} in stroke()
74 const SkStrokeRec fStroke;
/third_party/skia/src/gpu/geometry/
H A 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 re in simplifyStroke()
[all...]

Completed in 14 milliseconds

123