Home
last modified time | relevance | path

Searched refs:SkSVGLengthContext (Results 1 - 25 of 30) sorted by relevance

12

/third_party/skia/modules/svg/src/
H A DSkSVGRadialGradient.cpp28 const SkSVGLengthContext lctx = in onMakeShader()
30 ? SkSVGLengthContext({1, 1}) in onMakeShader()
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()
H A DSkSVGLinearGradient.cpp27 const SkSVGLengthContext lctx = in onMakeShader()
29 ? SkSVGLengthContext({1, 1}) in onMakeShader()
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()
H A DSkSVGEllipse.cpp23 SkRect SkSVGEllipse::resolve(const SkSVGLengthContext& lctx) const { in resolve()
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()
34 void SkSVGEllipse::onDraw(SkCanvas* canvas, const SkSVGLengthContext& lctx, in onDraw()
H A DSkSVGRenderContext.cpp24 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()
75 SkRect SkSVGLengthContext::resolveRectForSVG(const SkSVGLength& x, const SkSVGLength& y, in resolveRectForSVG()
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 in resolveRectForSVG()
[all...]
H A DSkSVGLine.cpp23 std::tuple<SkPoint, SkPoint> SkSVGLine::resolve(const SkSVGLengthContext& lctx) const { in resolve()
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()
31 void SkSVGLine::onDraw(SkCanvas* canvas, const SkSVGLengthContext& lctx, in onDraw()
H A DSkSVGCircle.cpp22 std::tuple<SkPoint, SkScalar> SkSVGCircle::resolve(const SkSVGLengthContext& lctx) const { in resolve()
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()
29 void SkSVGCircle::onDraw(SkCanvas* canvas, const SkSVGLengthContext& lctx, in onDraw()
H A DSkSVGRect.cpp28 SkRRect SkSVGRect::resolve(const SkSVGLengthContext& lctx) const { in resolve()
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()
64 void SkSVGRect::onDraw(SkCanvas* canvas, const SkSVGLengthContext& lctx, in onDraw()
H A DSkSVGUse.cpp67 const SkSVGLengthContext& lctx = ctx.lengthContext(); in onObjectBoundingBox()
68 const SkScalar x = lctx.resolve(fX, SkSVGLengthContext::LengthType::kHorizontal); in onObjectBoundingBox()
69 const SkScalar y = lctx.resolve(fY, SkSVGLengthContext::LengthType::kVertical); in onObjectBoundingBox()
H A DSkSVGText.cpp73 SkSVGLengthContext::LengthType::kVertical); in ResolveFont()
89 static std::vector<float> ResolveLengths(const SkSVGLengthContext& lctx, in ResolveLengths()
91 SkSVGLengthContext::LengthType lt) { in ResolveLengths()
117 const SkSVGLengthContext& lctx, in ScopedPosResolver()
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()
133 const SkSVGLengthContext& lctx, in ScopedPosResolver()
245 .resolve(offset, SkSVGLengthContext
[all...]
H A DSkSVGSVG.cpp86 SkSize SkSVGSVG::intrinsicSize(const SkSVGLengthContext& lctx) const { in intrinsicSize()
93 return SkSize::Make(lctx.resolveForSVG(fWidth, SkSVGLengthContext::LengthType::kHorizontal), in intrinsicSize()
94 lctx.resolveForSVG(fHeight, SkSVGLengthContext::LengthType::kVertical)); in intrinsicSize()
H A DSkSVGFeDisplacementMap.cpp40 scale = SkSVGLengthContext({obbt.scale.x, obbt.scale.y}) in onMakeImageFilter()
42 SkSVGLengthContext::LengthType::kOther); in onMakeImageFilter()
H A DSkSVGGradient.cpp30 const SkSVGLengthContext ltx(SkSize::Make(1, 1)); in collectColorStops()
39 pos->push_back(SkTPin(ltx.resolve(stop.getOffset(), SkSVGLengthContext::LengthType::kOther), in collectColorStops()
H A DSkSVGImage.cpp81 const SkSVGLengthContext& lctx = ctx.lengthContext(); in onRender()
98 const SkSVGLengthContext& lctx = ctx.lengthContext(); in onObjectBoundingBox()
H A DSkSVGTextPriv.h84 ScopedPosResolver(const SkSVGTextContainer&, const SkSVGLengthContext&, SkSVGTextContext*,
87 ScopedPosResolver(const SkSVGTextContainer&, const SkSVGLengthContext&, SkSVGTextContext*);
H A DSkSVGFeLighting.cpp79 z = SkSVGLengthContext({obbt.scale.x, obbt.scale.y}) in resolveXYZ()
81 SkSVGLengthContext::LengthType::kOther); in resolveXYZ()
/third_party/skia/modules/svg/include/
H A DSkSVGRenderContext.h27 class SkSVGLengthContext { class
29 SkSVGLengthContext(const SkSize& viewport, float resizePercentage = DEFAULT_RESIZE_PERCENTAGE, SkScalar dpi = 90) in SkSVGLengthContext() function in SkSVGLengthContext
74 const SkSVGLengthContext&, const SkSVGPresentationContext&,
82 const SkSVGLengthContext& lengthContext() const { return *fLengthContext; } in lengthContext()
83 SkSVGLengthContext* writableLengthContext() { return fLengthContext.writable(); } in writableLengthContext()
177 SkTCopyOnFirstWrite<SkSVGLengthContext> fLengthContext;
H A DSkSVGShape.h14 class SkSVGLengthContext;
26 virtual void onDraw(SkCanvas*, const SkSVGLengthContext&, const SkPaint&,
H A DSkSVGCircle.h27 void onDraw(SkCanvas*, const SkSVGLengthContext&, const SkPaint&,
38 std::tuple<SkPoint, SkScalar> resolve(const SkSVGLengthContext&) const;
H A DSkSVGRect.h31 void onDraw(SkCanvas*, const SkSVGLengthContext&, const SkPaint&,
41 SkRRect resolve(const SkSVGLengthContext&) const;
H A DSkSVGEllipse.h28 void onDraw(SkCanvas*, const SkSVGLengthContext&, const SkPaint&,
36 SkRect resolve(const SkSVGLengthContext&) const;
H A DSkSVGLine.h28 void onDraw(SkCanvas*, const SkSVGLengthContext&, const SkPaint&,
37 std::tuple<SkPoint, SkPoint> resolve(const SkSVGLengthContext&) const;
H A DSkSVGSVG.h15 class SkSVGLengthContext;
33 SkSize intrinsicSize(const SkSVGLengthContext&) const;
H A DSkSVGStop.h14 class SkSVGLengthContext;
H A DSkSVGPoly.h30 void onDraw(SkCanvas*, const SkSVGLengthContext&, const SkPaint&,
H A DSkSVGPath.h23 void onDraw(SkCanvas*, const SkSVGLengthContext&, const SkPaint&,

Completed in 7 milliseconds

12