Home
last modified time | relevance | path

Searched refs:SkSVGSpreadMethod (Results 1 – 10 of 10) sorted by relevance

/external/skia/modules/svg/src/
DSkSVGGradient.cpp20 SkSVGAttributeParser::parse<SkSVGSpreadMethod>("spreadMethod", name, value)) || in parseAndSetAttribute()
81 static_assert(static_cast<SkTileMode>(SkSVGSpreadMethod::Type::kPad) == in onAsPaint()
83 static_assert(static_cast<SkTileMode>(SkSVGSpreadMethod::Type::kRepeat) == in onAsPaint()
85 static_assert(static_cast<SkTileMode>(SkSVGSpreadMethod::Type::kReflect) == in onAsPaint()
101 bool SkSVGAttributeParser::parse(SkSVGSpreadMethod* spread) { in parse()
103 SkSVGSpreadMethod::Type fType; in parse()
106 { SkSVGSpreadMethod::Type::kPad , "pad" }, in parse()
107 { SkSVGSpreadMethod::Type::kReflect, "reflect" }, in parse()
108 { SkSVGSpreadMethod::Type::kRepeat , "repeat" }, in parse()
114 *spread = SkSVGSpreadMethod(gSpreadInfo[i].fType); in parse()
/external/skqp/experimental/svg/model/
DSkSVGGradient.h24 void setSpreadMethod(const SkSVGSpreadMethod&);
44 SkSVGSpreadMethod fSpreadMethod = SkSVGSpreadMethod(SkSVGSpreadMethod::Type::kPad);
DSkSVGTypes.h199 class SkSVGSpreadMethod {
208 constexpr SkSVGSpreadMethod() : fType(Type::kPad) {} in SkSVGSpreadMethod() function
209 constexpr explicit SkSVGSpreadMethod(Type t) : fType(t) {} in SkSVGSpreadMethod() function
211 SkSVGSpreadMethod(const SkSVGSpreadMethod&) = default;
212 SkSVGSpreadMethod& operator=(const SkSVGSpreadMethod&) = default;
214 bool operator==(const SkSVGSpreadMethod& other) const { return fType == other.fType; }
215 bool operator!=(const SkSVGSpreadMethod& other) const { return !(*this == other); }
DSkSVGGradient.cpp21 void SkSVGGradient::setSpreadMethod(const SkSVGSpreadMethod& spread) { in setSpreadMethod()
89 static_assert(static_cast<SkShader::TileMode>(SkSVGSpreadMethod::Type::kPad) == in onAsPaint()
91 static_assert(static_cast<SkShader::TileMode>(SkSVGSpreadMethod::Type::kRepeat) == in onAsPaint()
93 static_assert(static_cast<SkShader::TileMode>(SkSVGSpreadMethod::Type::kReflect) == in onAsPaint()
DSkSVGAttributeParser.cpp514 bool SkSVGAttributeParser::parseSpreadMethod(SkSVGSpreadMethod* spread) { in parseSpreadMethod()
516 SkSVGSpreadMethod::Type fType; in parseSpreadMethod()
519 { SkSVGSpreadMethod::Type::kPad , "pad" }, in parseSpreadMethod()
520 { SkSVGSpreadMethod::Type::kReflect, "reflect" }, in parseSpreadMethod()
521 { SkSVGSpreadMethod::Type::kRepeat , "repeat" }, in parseSpreadMethod()
527 *spread = SkSVGSpreadMethod(gSpreadInfo[i].fType); in parseSpreadMethod()
DSkSVGAttributeParser.h30 bool parseSpreadMethod(SkSVGSpreadMethod*);
DSkSVGValue.h90 using SkSVGSpreadMethodValue = SkSVGWrapperValue<SkSVGSpreadMethod ,
DSkSVGDOM.cpp172 SkSVGSpreadMethod spread; in SetSpreadMethodAttribute()
/external/skia/modules/svg/include/
DSkSVGGradient.h23 SVG_ATTR(SpreadMethod, SkSVGSpreadMethod, SkSVGSpreadMethod(SkSVGSpreadMethod::Type::kPad)) in SVG_ATTR()
DSkSVGTypes.h278 class SkSVGSpreadMethod {
287 constexpr SkSVGSpreadMethod() : fType(Type::kPad) {} in SkSVGSpreadMethod() function
288 constexpr explicit SkSVGSpreadMethod(Type t) : fType(t) {} in SkSVGSpreadMethod() function
290 SkSVGSpreadMethod(const SkSVGSpreadMethod&) = default;
291 SkSVGSpreadMethod& operator=(const SkSVGSpreadMethod&) = default;
293 bool operator==(const SkSVGSpreadMethod& other) const { return fType == other.fType; }
294 bool operator!=(const SkSVGSpreadMethod& other) const { return !(*this == other); }