Home
last modified time | relevance | path

Searched refs:SkSVGPaint (Results 1 – 17 of 17) sorted by relevance

/external/skqp/experimental/svg/model/
DSkSVGTypes.h87 class SkSVGPaint {
97 SkSVGPaint() : fType(Type::kInherit), fColor(SK_ColorBLACK) {} in SkSVGPaint() function
98 explicit SkSVGPaint(Type t) : fType(t), fColor(SK_ColorBLACK) {} in SkSVGPaint() function
99 explicit SkSVGPaint(const SkSVGColorType& c) : fType(Type::kColor), fColor(c) {} in SkSVGPaint() function
100 explicit SkSVGPaint(const SkString& iri) in SkSVGPaint() function
103 SkSVGPaint(const SkSVGPaint&) = default;
104 SkSVGPaint& operator=(const SkSVGPaint&) = default;
106 bool operator==(const SkSVGPaint& other) const {
109 bool operator!=(const SkSVGPaint& other) const { return !(*this == other); }
DSkSVGRenderContext.cpp106 void applySvgPaint(const SkSVGRenderContext& ctx, const SkSVGPaint& svgPaint, SkPaint* p) { in applySvgPaint()
108 case SkSVGPaint::Type::kColor: in applySvgPaint()
111 case SkSVGPaint::Type::kIRI: { in applySvgPaint()
118 case SkSVGPaint::Type::kCurrentColor: in applySvgPaint()
121 case SkSVGPaint::Type::kNone: in applySvgPaint()
123 case SkSVGPaint::Type::kInherit: in applySvgPaint()
429 const SkSVGPaint::Type paintType = fPresentationContext->fInherited.fFill.get()->type(); in fillPaint()
430 return paintType != SkSVGPaint::Type::kNone ? &fPresentationContext->fFillPaint : nullptr; in fillPaint()
434 const SkSVGPaint::Type paintType = fPresentationContext->fInherited.fStroke.get()->type(); in strokePaint()
435 return paintType != SkSVGPaint::Type::kNone ? &fPresentationContext->fStrokePaint : nullptr; in strokePaint()
DSkSVGAttribute.cpp13 result.fFill.set(SkSVGPaint(SkSVGColorType(SK_ColorBLACK))); in MakeInitial()
18 result.fStroke.set(SkSVGPaint(SkSVGPaint::Type::kNone)); in MakeInitial()
DSkSVGAttributeParser.cpp423 bool SkSVGAttributeParser::parsePaint(SkSVGPaint* paint) { in parsePaint()
428 *paint = SkSVGPaint(c); in parsePaint()
431 *paint = SkSVGPaint(SkSVGPaint::Type::kNone); in parsePaint()
434 *paint = SkSVGPaint(SkSVGPaint::Type::kCurrentColor); in parsePaint()
437 *paint = SkSVGPaint(SkSVGPaint::Type::kInherit); in parsePaint()
440 *paint = SkSVGPaint(iri.value()); in parsePaint()
DSkSVGAttribute.h67 SkTLazy<SkSVGPaint> fFill;
72 SkTLazy<SkSVGPaint> fStroke;
DSkSVGNode.h56 void setFill(const SkSVGPaint&);
60 void setStroke(const SkSVGPaint&);
DSkSVGNode.cpp71 void SkSVGNode::setFill(const SkSVGPaint& svgPaint) { in setFill()
89 void SkSVGNode::setStroke(const SkSVGPaint& svgPaint) { in setStroke()
DSkSVGAttributeParser.h25 bool parsePaint(SkSVGPaint*);
DSkSVGValue.h84 using SkSVGPaintValue = SkSVGWrapperValue<SkSVGPaint , SkSVGValue::Type::kPaint >;
DSkSVGDOM.cpp40 SkSVGPaint paint; in SetPaintAttribute()
/external/skia/modules/svg/src/
DSkSVGAttribute.cpp13 result.fFill.set(SkSVGPaint(SkSVGColor(SK_ColorBLACK))); in MakeInitial()
18 result.fStroke.set(SkSVGPaint(SkSVGPaint::Type::kNone)); in MakeInitial()
DSkSVGRenderContext.cpp275 const bool hasFill = props.fFill ->type() != SkSVGPaint::Type::kNone, in applyOpacity()
276 hasStroke = props.fStroke->type() != SkSVGPaint::Type::kNone; in applyOpacity()
381 SkTLazy<SkPaint> SkSVGRenderContext::commonPaint(const SkSVGPaint& paint_selector, in commonPaint()
383 if (paint_selector.type() == SkSVGPaint::Type::kNone) { in commonPaint()
391 case SkSVGPaint::Type::kColor: in commonPaint()
394 case SkSVGPaint::Type::kIRI: { in commonPaint()
DSkSVGAttributeParser.cpp542 bool SkSVGAttributeParser::parse(SkSVGPaint* paint) { in parse()
547 *paint = SkSVGPaint(c); in parse()
550 *paint = SkSVGPaint(SkSVGPaint::Type::kNone); in parse()
555 *paint = SkSVGPaint(iri.iri(), c); in parse()
/external/skia/modules/svg/include/
DSkSVGTypes.h186 class SkSVGPaint {
194 SkSVGPaint() : fType(Type::kNone), fColor(SK_ColorBLACK) {} in SkSVGPaint() function
195 explicit SkSVGPaint(Type t) : fType(t), fColor(SK_ColorBLACK) {} in SkSVGPaint() function
196 explicit SkSVGPaint(const SkSVGColor& c) : fType(Type::kColor), fColor(c) {} in SkSVGPaint() function
197 SkSVGPaint(const SkSVGIRI& iri, const SkSVGColor& fallback_color) in SkSVGPaint() function
200 SkSVGPaint(const SkSVGPaint&) = default;
201 SkSVGPaint& operator=(const SkSVGPaint&) = default;
203 bool operator==(const SkSVGPaint& other) const {
206 bool operator!=(const SkSVGPaint& other) const { return !(*this == other); }
DSkSVGAttribute.h74 SkSVGProperty<SkSVGPaint , true> fFill;
79 SkSVGProperty<SkSVGPaint , true> fStroke;
DSkSVGNode.h120 SVG_PRES_ATTR(Fill , SkSVGPaint , true)
126 SVG_PRES_ATTR(Stroke , SkSVGPaint , true)
DSkSVGRenderContext.h163 SkTLazy<SkPaint> commonPaint(const SkSVGPaint&, float opacity) const;