Home
last modified time | relevance | path

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

/third_party/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.h124 SVG_PRES_ATTR(Fill , SkSVGPaint , true)
130 SVG_PRES_ATTR(Stroke , SkSVGPaint , true)
DSkSVGRenderContext.h172 SkTLazy<SkPaint> commonPaint(const SkSVGPaint&, float opacity) const;
/third_party/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.cpp308 const bool hasFill = props.fFill ->type() != SkSVGPaint::Type::kNone, in applyOpacity()
309 hasStroke = props.fStroke->type() != SkSVGPaint::Type::kNone; in applyOpacity()
414 SkTLazy<SkPaint> SkSVGRenderContext::commonPaint(const SkSVGPaint& paint_selector, in commonPaint()
416 if (paint_selector.type() == SkSVGPaint::Type::kNone) { in commonPaint()
424 case SkSVGPaint::Type::kColor: in commonPaint()
427 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()