Searched refs:LengthType (Results 1 – 14 of 14) sorted by relevance
/third_party/skia/modules/svg/src/ |
D | SkSVGRenderContext.cpp | 24 SkScalar length_size_for_type(const SkSize& viewport, SkSVGLengthContext::LengthType t) { in length_size_for_type() 26 case SkSVGLengthContext::LengthType::kHorizontal: in length_size_for_type() 28 case SkSVGLengthContext::LengthType::kVertical: in length_size_for_type() 30 case SkSVGLengthContext::LengthType::kOther: { in length_size_for_type() 51 SkScalar SkSVGLengthContext::resolveForSVG(const SkSVGLength& l, LengthType t) const { in resolveForSVG() 78 this->resolveForSVG(x, SkSVGLengthContext::LengthType::kHorizontal), in resolveRectForSVG() 79 this->resolveForSVG(y, SkSVGLengthContext::LengthType::kVertical), in resolveRectForSVG() 80 this->resolveForSVG(w, SkSVGLengthContext::LengthType::kHorizontal), in resolveRectForSVG() 81 this->resolveForSVG(h, SkSVGLengthContext::LengthType::kVertical)); in resolveRectForSVG() 84 SkScalar SkSVGLengthContext::resolve(const SkSVGLength& l, LengthType t) const { in resolve() [all …]
|
D | SkSVGRadialGradient.cpp | 33 const auto r = lctx.resolve(fR , SkSVGLengthContext::LengthType::kOther); in onMakeShader() 35 lctx.resolve(fCx, SkSVGLengthContext::LengthType::kHorizontal), in onMakeShader() 36 lctx.resolve(fCy, SkSVGLengthContext::LengthType::kVertical)); in onMakeShader() 38 fFx.isValid() ? lctx.resolve(*fFx, SkSVGLengthContext::LengthType::kHorizontal) in onMakeShader() 40 fFy.isValid() ? lctx.resolve(*fFy, SkSVGLengthContext::LengthType::kVertical) in onMakeShader()
|
D | SkSVGEllipse.cpp | 24 const auto cx = lctx.resolve(fCx, SkSVGLengthContext::LengthType::kHorizontal); in resolve() 25 const auto cy = lctx.resolve(fCy, SkSVGLengthContext::LengthType::kVertical); in resolve() 26 const auto rx = lctx.resolve(fRx, SkSVGLengthContext::LengthType::kHorizontal); in resolve() 27 const auto ry = lctx.resolve(fRy, SkSVGLengthContext::LengthType::kVertical); in resolve()
|
D | SkSVGLinearGradient.cpp | 32 const auto x1 = lctx.resolve(fX1, SkSVGLengthContext::LengthType::kHorizontal); in onMakeShader() 33 const auto y1 = lctx.resolve(fY1, SkSVGLengthContext::LengthType::kVertical); in onMakeShader() 34 const auto x2 = lctx.resolve(fX2, SkSVGLengthContext::LengthType::kHorizontal); in onMakeShader() 35 const auto y2 = lctx.resolve(fY2, SkSVGLengthContext::LengthType::kVertical); in onMakeShader()
|
D | SkSVGLine.cpp | 25 SkPoint::Make(lctx.resolve(fX1, SkSVGLengthContext::LengthType::kHorizontal), in resolve() 26 lctx.resolve(fY1, SkSVGLengthContext::LengthType::kVertical)), in resolve() 27 SkPoint::Make(lctx.resolve(fX2, SkSVGLengthContext::LengthType::kHorizontal), in resolve() 28 lctx.resolve(fY2, SkSVGLengthContext::LengthType::kVertical))); in resolve()
|
D | SkSVGCircle.cpp | 23 const auto cx = lctx.resolve(fCx, SkSVGLengthContext::LengthType::kHorizontal); in resolve() 24 const auto cy = lctx.resolve(fCy, SkSVGLengthContext::LengthType::kVertical); in resolve() 25 const auto r = lctx.resolve(fR , SkSVGLengthContext::LengthType::kOther); in resolve()
|
D | SkSVGUse.cpp | 68 const SkScalar x = lctx.resolve(fX, SkSVGLengthContext::LengthType::kHorizontal); in onObjectBoundingBox() 69 const SkScalar y = lctx.resolve(fY, SkSVGLengthContext::LengthType::kVertical); in onObjectBoundingBox()
|
D | SkSVGSVG.cpp | 93 return SkSize::Make(lctx.resolveForSVG(fWidth, SkSVGLengthContext::LengthType::kHorizontal), in intrinsicSize() 94 lctx.resolveForSVG(fHeight, SkSVGLengthContext::LengthType::kVertical)); in intrinsicSize()
|
D | SkSVGRect.cpp | 56 const auto rx = std::min(lctx.resolve(rxlen, SkSVGLengthContext::LengthType::kHorizontal), in resolve() 58 ry = std::min(lctx.resolve(rylen, SkSVGLengthContext::LengthType::kVertical), in resolve()
|
D | SkSVGText.cpp | 73 SkSVGLengthContext::LengthType::kVertical); in ResolveFont() 91 SkSVGLengthContext::LengthType lt) { in ResolveLengths() 123 , fX(ResolveLengths(lctx, txt.getX(), SkSVGLengthContext::LengthType::kHorizontal)) in ScopedPosResolver() 124 , fY(ResolveLengths(lctx, txt.getY(), SkSVGLengthContext::LengthType::kVertical)) in ScopedPosResolver() 125 , fDx(ResolveLengths(lctx, txt.getDx(), SkSVGLengthContext::LengthType::kHorizontal)) in ScopedPosResolver() 126 , fDy(ResolveLengths(lctx, txt.getDy(), SkSVGLengthContext::LengthType::kVertical)) in ScopedPosResolver() 245 .resolve(offset, SkSVGLengthContext::LengthType::kHorizontal); in SkSVGTextContext()
|
D | SkSVGFeDisplacementMap.cpp | 42 SkSVGLengthContext::LengthType::kOther); in onMakeImageFilter()
|
D | SkSVGGradient.cpp | 39 pos->push_back(SkTPin(ltx.resolve(stop.getOffset(), SkSVGLengthContext::LengthType::kOther), in collectColorStops()
|
D | SkSVGFeLighting.cpp | 81 SkSVGLengthContext::LengthType::kOther); in resolveXYZ()
|
/third_party/skia/modules/svg/include/ |
D | SkSVGRenderContext.h | 32 enum class LengthType { enum 42 SkScalar resolve(const SkSVGLength&, LengthType) const; 43 SkScalar resolveForSVG(const SkSVGLength&, LengthType) const;
|