Home
last modified time | relevance | path

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

1234567

/external/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 …]
/external/skqp/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 …]
/external/skqp/src/gpu/
DGrStyle.cpp73 GR_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()
158 bool GrStyle::applyPathEffectToPath(SkPath *dst, SkStrokeRec *remainingStroke, in applyPathEffectToPath()
161 SkStrokeRec strokeRec = fStrokeRec; in applyPathEffectToPath()
170 bool GrStyle::applyToPath(SkPath* dst, SkStrokeRec::InitStyle* style, const SkPath& src, in applyToPath()
174 SkStrokeRec strokeRec = fStrokeRec; in applyToPath()
187 *style = SkStrokeRec::kFill_InitStyle; in applyToPath()
192 SkASSERT(SkStrokeRec::kFill_Style == strokeRec.getStyle() || in applyToPath()
[all …]
DGrStyle.h30 static const GrStyle kFill(SkStrokeRec::kFill_InitStyle); in SimpleFill()
39 static const GrStyle kHairline(SkStrokeRec::kHairline_InitStyle); in SimpleHairline()
76 GrStyle() : GrStyle(SkStrokeRec::kFill_InitStyle) {} in GrStyle()
78 explicit GrStyle(SkStrokeRec::InitStyle initStyle) : fStrokeRec(initStyle) {} in GrStyle()
80 GrStyle(const SkStrokeRec& strokeRec, sk_sp<SkPathEffect> pe) : fStrokeRec(strokeRec) { in GrStyle()
102 void resetToInitStyle(SkStrokeRec::InitStyle fillOrHairline) { in resetToInitStyle()
105 if (SkStrokeRec::kFill_InitStyle == fillOrHairline) { in resetToInitStyle()
139 const SkStrokeRec& strokeRec() const { return fStrokeRec; } in strokeRec()
158 bool SK_WARN_UNUSED_RESULT applyPathEffectToPath(SkPath* dst, SkStrokeRec* remainingStoke,
168 bool SK_WARN_UNUSED_RESULT applyToPath(SkPath* dst, SkStrokeRec::InitStyle* fillOrHairline,
[all …]
DGrTestUtils.cpp240 static void randomize_stroke_rec(SkStrokeRec* rec, SkRandom* random) { in randomize_stroke_rec()
251 SkStrokeRec TestStrokeRec(SkRandom* random) { in TestStrokeRec()
252 SkStrokeRec::InitStyle style = in TestStrokeRec()
253 SkStrokeRec::InitStyle(random->nextULessThan(SkStrokeRec::kFill_InitStyle + 1)); in TestStrokeRec()
254 SkStrokeRec rec(style); in TestStrokeRec()
260 SkStrokeRec::InitStyle initStyle = in TestStyle()
261 SkStrokeRec::InitStyle(random->nextULessThan(SkStrokeRec::kFill_InitStyle + 1)); in TestStyle()
262 SkStrokeRec stroke(initStyle); in TestStyle()
288 bool TestDashPathEffect::onFilterPath(SkPath* dst, const SkPath& src, SkStrokeRec* rec, in onFilterPath()
/external/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()
158 bool GrStyle::applyPathEffectToPath(SkPath *dst, SkStrokeRec *remainingStroke, in applyPathEffectToPath()
161 SkStrokeRec strokeRec = fStrokeRec; in applyPathEffectToPath()
170 bool GrStyle::applyToPath(SkPath* dst, SkStrokeRec::InitStyle* style, const SkPath& src, in applyToPath()
174 SkStrokeRec strokeRec = fStrokeRec; in applyToPath()
187 *style = SkStrokeRec::kFill_InitStyle; in applyToPath()
192 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()
/external/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()
/external/skqp/tests/
DStrokeTest.cpp90 SkStrokeRec s1(SkStrokeRec::kFill_InitStyle); in test_strokerec_equality()
91 SkStrokeRec s2(SkStrokeRec::kFill_InitStyle); in test_strokerec_equality()
117 SkStrokeRec s1(SkStrokeRec::kFill_InitStyle); in test_strokerec_equality()
118 SkStrokeRec s2(SkStrokeRec::kFill_InitStyle); in test_strokerec_equality()
134 SkStrokeRec s1(SkStrokeRec::kFill_InitStyle); in test_strokerec_equality()
135 SkStrokeRec s2(SkStrokeRec::kFill_InitStyle); in test_strokerec_equality()
/external/skqp/src/gpu/ops/
DGrAALinearizingConvexPathRenderer.cpp58 const SkStrokeRec& stroke = args.fShape->style().strokeRec(); in onCanDrawPath()
60 if (stroke.getStyle() == SkStrokeRec::kStroke_Style || in onCanDrawPath()
61 stroke.getStyle() == SkStrokeRec::kStrokeAndFill_Style) { in onCanDrawPath()
66 if (strokeWidth < 1.0f && stroke.getStyle() == SkStrokeRec::kStroke_Style) { in onCanDrawPath()
76 if (stroke.getStyle() != SkStrokeRec::kFill_Style) { in onCanDrawPath()
128 SkStrokeRec::Style style, in Make()
143 SkStrokeRec::Style style, in AAFlatteningConvexPathOp()
319 SkStrokeRec::Style fStyle;
343 const SkStrokeRec& stroke = args.fShape->style().strokeRec(); in onDrawPath()
363 SkStrokeRec::Style styles[3] = { SkStrokeRec::kFill_Style, in GR_DRAW_OP_TEST_DEFINE()
[all …]
/external/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*) const { in onFilterPath() argument
142 bool SkStrokePE::onFilterPath(SkPath* dst, const SkPath& src, SkStrokeRec*, const SkRect*) const { in onFilterPath() argument
143 SkStrokeRec rec(SkStrokeRec::kFill_InitStyle); in onFilterPath()
151 SkStrokeRec rec(SkStrokeRec::kFill_InitStyle); in computeFastBounds()
197 bool SkStrokeAndFillPE::onFilterPath(SkPath* dst, const SkPath& src, SkStrokeRec* rec, in onFilterPath()
201 if (rec->getStyle() == SkStrokeRec::kStrokeAndFill_Style) { in onFilterPath()
206 if (rec->getStyle() == SkStrokeRec::kStroke_Style) { in onFilterPath()
DSkOpPE.h20 bool onFilterPath(SkPath* dst, const SkPath& src, SkStrokeRec*, const SkRect*) const override;
40 bool onFilterPath(SkPath* dst, const SkPath& src, SkStrokeRec*, const SkRect*) const override;
63 bool onFilterPath(SkPath* dst, const SkPath& src, SkStrokeRec*, const SkRect*) const override;
84 bool onFilterPath(SkPath* dst, const SkPath& src, SkStrokeRec*, const SkRect*) const override;
/external/skia/src/gpu/ops/
DGrAALinearizingConvexPathRenderer.cpp59 const SkStrokeRec& stroke = args.fShape->style().strokeRec(); in onCanDrawPath()
61 if (stroke.getStyle() == SkStrokeRec::kStroke_Style || in onCanDrawPath()
62 stroke.getStyle() == SkStrokeRec::kStrokeAndFill_Style) { in onCanDrawPath()
67 if (strokeWidth < 1.0f && stroke.getStyle() == SkStrokeRec::kStroke_Style) { in onCanDrawPath()
77 if (stroke.getStyle() != SkStrokeRec::kFill_Style) { in onCanDrawPath()
141 SkStrokeRec::Style style, in Make()
156 SkStrokeRec::Style style, in AAFlatteningConvexPathOp()
374 SkStrokeRec::Style fStyle;
400 const SkStrokeRec& stroke = args.fShape->style().strokeRec(); in onDrawPath()
420 SkStrokeRec::Style styles[3] = { SkStrokeRec::kFill_Style, in GR_DRAW_OP_TEST_DEFINE()
[all …]
DGrOvalOpFactory.h22 class SkStrokeRec; variable
47 const SkStrokeRec&,
54 const SkStrokeRec&,
/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.h17 class SkStrokeRec; variable
61 bool filterPath(SkPath* dst, const SkPath& src, SkStrokeRec*, const SkRect* cullR) const;
109 const SkStrokeRec&, const SkMatrix&,
161 virtual bool onFilterPath(SkPath*, const SkPath&, SkStrokeRec*, const SkRect*) const = 0;
162 virtual bool onAsPoints(PointData*, const SkPath&, const SkStrokeRec&, const SkMatrix&, in onAsPoints() argument
/external/skqp/include/core/
DSkPathEffect.h17 class SkStrokeRec; variable
61 bool filterPath(SkPath* dst, const SkPath& src, SkStrokeRec*, const SkRect* cullR) const;
115 const SkStrokeRec&, const SkMatrix&,
167 virtual bool onFilterPath(SkPath*, const SkPath&, SkStrokeRec*, const SkRect*) const = 0;
171 virtual bool onAsPoints(PointData*, const SkPath&, const SkStrokeRec&, const SkMatrix&, in onAsPoints() argument
DSkStrokeRec.h17 class 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()
/external/skia/src/gpu/tessellate/
DGrStrokeTessellateShader.h79 static float GetJoinType(const SkStrokeRec& stroke) { in GetJoinType()
90 static bool StrokesHaveEqualDynamicState(const SkStrokeRec& a, const SkStrokeRec& b) { in StrokesHaveEqualDynamicState()
94 void set(const SkStrokeRec& stroke) { in set()
104 const SkStrokeRec& stroke, SkPMColor4f color) in GrStrokeTessellateShader()
188 const SkStrokeRec fStroke;
/external/skia/modules/sksg/src/
DSkSGGeometryEffect.cpp65 SkStrokeRec rec(SkStrokeRec::kHairline_InitStyle); in onRevalidateEffect()
122 SkStrokeRec rec(SkStrokeRec::kHairline_InitStyle); in onRevalidateEffect()
133 SkStrokeRec rec(SkStrokeRec::kHairline_InitStyle); in onRevalidateEffect()
/external/skqp/src/gpu/ccpr/
DGrCoverageCountingPathRenderer.cpp67 const SkStrokeRec& stroke = shape.style().strokeRec(); in onCanDrawPath()
69 case SkStrokeRec::kFill_Style: { in onCanDrawPath()
104 case SkStrokeRec::kStroke_Style: in onCanDrawPath()
112 case SkStrokeRec::kHairline_Style: { in onCanDrawPath()
128 case SkStrokeRec::kStrokeAndFill_Style: in onCanDrawPath()
317 const SkStrokeRec& stroke, in GetStrokeDevWidth()
323 SkASSERT(SkStrokeRec::kStroke_Style == stroke.getStyle()); in GetStrokeDevWidth()
331 *inflationRadius = SkStrokeRec::GetInflationRadius( in GetStrokeDevWidth()
/external/skqp/src/effects/
DSkOpPathEffect.cpp21 bool SkOpPE::onFilterPath(SkPath* dst, const SkPath& src, SkStrokeRec* rec, in onFilterPath()
74 bool SkMatrixPE::onFilterPath(SkPath* dst, const SkPath& src, SkStrokeRec*, const SkRect*) const { in onFilterPath() argument
102 bool SkStrokePE::onFilterPath(SkPath* dst, const SkPath& src, SkStrokeRec*, const SkRect*) const { in onFilterPath() argument
103 SkStrokeRec rec(SkStrokeRec::kFill_InitStyle); in onFilterPath()
DSkOpPE.h20 bool onFilterPath(SkPath* dst, const SkPath& src, SkStrokeRec*, const SkRect*) const override;
38 bool onFilterPath(SkPath* dst, const SkPath& src, SkStrokeRec*, const SkRect*) const override;
54 bool onFilterPath(SkPath* dst, const SkPath& src, SkStrokeRec*, const SkRect*) const override;
/external/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()
288 bool SkDashPath::InternalFilter(SkPath* dst, const SkPath& src, SkStrokeRec* rec, in InternalFilter()
297 SkStrokeRec::Style style = rec->getStyle(); in InternalFilter()
298 if (SkStrokeRec::kFill_Style == style || SkStrokeRec::kStrokeAndFill_Style == style) { in InternalFilter()
437 bool SkDashPath::FilterDashPath(SkPath* dst, const SkPath& src, SkStrokeRec* rec, in FilterDashPath()

1234567