Searched refs:SkSVGPaint (Results 1 – 17 of 17) sorted by relevance
/external/skqp/experimental/svg/model/ |
D | SkSVGTypes.h | 87 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); }
|
D | SkSVGRenderContext.cpp | 106 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()
|
D | SkSVGAttribute.cpp | 13 result.fFill.set(SkSVGPaint(SkSVGColorType(SK_ColorBLACK))); in MakeInitial() 18 result.fStroke.set(SkSVGPaint(SkSVGPaint::Type::kNone)); in MakeInitial()
|
D | SkSVGAttributeParser.cpp | 423 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()
|
D | SkSVGAttribute.h | 67 SkTLazy<SkSVGPaint> fFill; 72 SkTLazy<SkSVGPaint> fStroke;
|
D | SkSVGNode.h | 56 void setFill(const SkSVGPaint&); 60 void setStroke(const SkSVGPaint&);
|
D | SkSVGNode.cpp | 71 void SkSVGNode::setFill(const SkSVGPaint& svgPaint) { in setFill() 89 void SkSVGNode::setStroke(const SkSVGPaint& svgPaint) { in setStroke()
|
D | SkSVGAttributeParser.h | 25 bool parsePaint(SkSVGPaint*);
|
D | SkSVGValue.h | 84 using SkSVGPaintValue = SkSVGWrapperValue<SkSVGPaint , SkSVGValue::Type::kPaint >;
|
D | SkSVGDOM.cpp | 40 SkSVGPaint paint; in SetPaintAttribute()
|
/external/skia/modules/svg/src/ |
D | SkSVGAttribute.cpp | 13 result.fFill.set(SkSVGPaint(SkSVGColor(SK_ColorBLACK))); in MakeInitial() 18 result.fStroke.set(SkSVGPaint(SkSVGPaint::Type::kNone)); in MakeInitial()
|
D | SkSVGRenderContext.cpp | 275 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()
|
D | SkSVGAttributeParser.cpp | 542 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/ |
D | SkSVGTypes.h | 186 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); }
|
D | SkSVGAttribute.h | 74 SkSVGProperty<SkSVGPaint , true> fFill; 79 SkSVGProperty<SkSVGPaint , true> fStroke;
|
D | SkSVGNode.h | 120 SVG_PRES_ATTR(Fill , SkSVGPaint , true) 126 SVG_PRES_ATTR(Stroke , SkSVGPaint , true)
|
D | SkSVGRenderContext.h | 163 SkTLazy<SkPaint> commonPaint(const SkSVGPaint&, float opacity) const;
|