/external/skqp/experimental/svg/model/ |
D | SkSVGRenderContext.h | 23 class SkSVGLengthContext { 25 SkSVGLengthContext(const SkSize& viewport, SkScalar dpi = 90) 61 SkSVGRenderContext(SkCanvas*, const SkSVGIDMapper&, const SkSVGLengthContext&, 67 const SkSVGLengthContext& lengthContext() const { return *fLengthContext; } in lengthContext() 68 SkSVGLengthContext* writableLengthContext() { return fLengthContext.writable(); } in writableLengthContext() 98 SkTCopyOnFirstWrite<SkSVGLengthContext> fLengthContext;
|
D | SkSVGEllipse.cpp | 58 SkRect SkSVGEllipse::resolve(const SkSVGLengthContext& lctx) const { in resolve() 59 const auto cx = lctx.resolve(fCx, SkSVGLengthContext::LengthType::kHorizontal); in resolve() 60 const auto cy = lctx.resolve(fCy, SkSVGLengthContext::LengthType::kVertical); in resolve() 61 const auto rx = lctx.resolve(fRx, SkSVGLengthContext::LengthType::kHorizontal); in resolve() 62 const auto ry = lctx.resolve(fRy, SkSVGLengthContext::LengthType::kVertical); in resolve() 69 void SkSVGEllipse::onDraw(SkCanvas* canvas, const SkSVGLengthContext& lctx, in onDraw()
|
D | SkSVGRenderContext.cpp | 20 SkScalar length_size_for_type(const SkSize& viewport, SkSVGLengthContext::LengthType t) { in length_size_for_type() 22 case SkSVGLengthContext::LengthType::kHorizontal: in length_size_for_type() 24 case SkSVGLengthContext::LengthType::kVertical: in length_size_for_type() 26 case SkSVGLengthContext::LengthType::kOther: in length_size_for_type() 43 SkScalar SkSVGLengthContext::resolve(const SkSVGLength& l, LengthType t) const { in resolve() 67 SkRect SkSVGLengthContext::resolveRect(const SkSVGLength& x, const SkSVGLength& y, in resolveRect() 70 this->resolve(x, SkSVGLengthContext::LengthType::kHorizontal), in resolveRect() 71 this->resolve(y, SkSVGLengthContext::LengthType::kVertical), in resolveRect() 72 this->resolve(w, SkSVGLengthContext::LengthType::kHorizontal), in resolveRect() 73 this->resolve(h, SkSVGLengthContext::LengthType::kVertical)); in resolveRect() [all …]
|
D | SkSVGLine.cpp | 58 std::tuple<SkPoint, SkPoint> SkSVGLine::resolve(const SkSVGLengthContext& lctx) const { in resolve() 60 SkPoint::Make(lctx.resolve(fX1, SkSVGLengthContext::LengthType::kHorizontal), in resolve() 61 lctx.resolve(fY1, SkSVGLengthContext::LengthType::kVertical)), in resolve() 62 SkPoint::Make(lctx.resolve(fX2, SkSVGLengthContext::LengthType::kHorizontal), in resolve() 63 lctx.resolve(fY2, SkSVGLengthContext::LengthType::kVertical))); in resolve() 66 void SkSVGLine::onDraw(SkCanvas* canvas, const SkSVGLengthContext& lctx, in onDraw()
|
D | SkSVGCircle.cpp | 49 std::tuple<SkPoint, SkScalar> SkSVGCircle::resolve(const SkSVGLengthContext& lctx) const { in resolve() 50 const auto cx = lctx.resolve(fCx, SkSVGLengthContext::LengthType::kHorizontal); in resolve() 51 const auto cy = lctx.resolve(fCy, SkSVGLengthContext::LengthType::kVertical); in resolve() 52 const auto r = lctx.resolve(fR , SkSVGLengthContext::LengthType::kOther); in resolve() 56 void SkSVGCircle::onDraw(SkCanvas* canvas, const SkSVGLengthContext& lctx, in onDraw()
|
D | SkSVGRadialGradient.cpp | 72 const auto r = lctx.resolve(fR , SkSVGLengthContext::LengthType::kOther); in onMakeShader() 74 lctx.resolve(fCx, SkSVGLengthContext::LengthType::kHorizontal), in onMakeShader() 75 lctx.resolve(fCy, SkSVGLengthContext::LengthType::kVertical)); in onMakeShader() 77 fFx.isValid() ? lctx.resolve(*fFx.get(), SkSVGLengthContext::LengthType::kHorizontal) in onMakeShader() 79 fFy.isValid() ? lctx.resolve(*fFy.get(), SkSVGLengthContext::LengthType::kVertical) in onMakeShader()
|
D | SkSVGLinearGradient.cpp | 63 const auto x1 = lctx.resolve(fX1, SkSVGLengthContext::LengthType::kHorizontal); in onMakeShader() 64 const auto y1 = lctx.resolve(fY1, SkSVGLengthContext::LengthType::kVertical); in onMakeShader() 65 const auto x2 = lctx.resolve(fX2, SkSVGLengthContext::LengthType::kHorizontal); in onMakeShader() 66 const auto y2 = lctx.resolve(fY2, SkSVGLengthContext::LengthType::kVertical); in onMakeShader()
|
D | SkSVGRect.cpp | 77 SkRRect SkSVGRect::resolve(const SkSVGLengthContext& lctx) const { in resolve() 79 const SkScalar rx = lctx.resolve(fRx, SkSVGLengthContext::LengthType::kHorizontal); in resolve() 80 const SkScalar ry = lctx.resolve(fRy, SkSVGLengthContext::LengthType::kVertical); in resolve() 85 void SkSVGRect::onDraw(SkCanvas* canvas, const SkSVGLengthContext& lctx, in onDraw()
|
D | SkSVGSVG.cpp | 100 SkSize SkSVGSVG::intrinsicSize(const SkSVGLengthContext& lctx) const { in intrinsicSize() 107 return SkSize::Make(lctx.resolve(fWidth, SkSVGLengthContext::LengthType::kHorizontal), in intrinsicSize() 108 lctx.resolve(fHeight, SkSVGLengthContext::LengthType::kVertical)); in intrinsicSize()
|
D | SkSVGShape.h | 14 class SkSVGLengthContext; variable 28 virtual void onDraw(SkCanvas*, const SkSVGLengthContext&, const SkPaint&,
|
D | SkSVGCircle.h | 28 void onDraw(SkCanvas*, const SkSVGLengthContext&, const SkPaint&, 37 std::tuple<SkPoint, SkScalar> resolve(const SkSVGLengthContext&) const;
|
D | SkSVGEllipse.h | 29 void onDraw(SkCanvas*, const SkSVGLengthContext&, const SkPaint&, 37 SkRect resolve(const SkSVGLengthContext&) const;
|
/external/skia/experimental/svg/model/ |
D | SkSVGRenderContext.h | 23 class SkSVGLengthContext { 25 SkSVGLengthContext(const SkSize& viewport, SkScalar dpi = 90) 61 SkSVGRenderContext(SkCanvas*, const SkSVGIDMapper&, const SkSVGLengthContext&, 67 const SkSVGLengthContext& lengthContext() const { return *fLengthContext; } in lengthContext() 68 SkSVGLengthContext* writableLengthContext() { return fLengthContext.writable(); } in writableLengthContext() 98 SkTCopyOnFirstWrite<SkSVGLengthContext> fLengthContext;
|
D | SkSVGEllipse.cpp | 58 SkRect SkSVGEllipse::resolve(const SkSVGLengthContext& lctx) const { in resolve() 59 const auto cx = lctx.resolve(fCx, SkSVGLengthContext::LengthType::kHorizontal); in resolve() 60 const auto cy = lctx.resolve(fCy, SkSVGLengthContext::LengthType::kVertical); in resolve() 61 const auto rx = lctx.resolve(fRx, SkSVGLengthContext::LengthType::kHorizontal); in resolve() 62 const auto ry = lctx.resolve(fRy, SkSVGLengthContext::LengthType::kVertical); in resolve() 69 void SkSVGEllipse::onDraw(SkCanvas* canvas, const SkSVGLengthContext& lctx, in onDraw()
|
D | SkSVGRenderContext.cpp | 20 SkScalar length_size_for_type(const SkSize& viewport, SkSVGLengthContext::LengthType t) { in length_size_for_type() 22 case SkSVGLengthContext::LengthType::kHorizontal: in length_size_for_type() 24 case SkSVGLengthContext::LengthType::kVertical: in length_size_for_type() 26 case SkSVGLengthContext::LengthType::kOther: in length_size_for_type() 43 SkScalar SkSVGLengthContext::resolve(const SkSVGLength& l, LengthType t) const { in resolve() 67 SkRect SkSVGLengthContext::resolveRect(const SkSVGLength& x, const SkSVGLength& y, in resolveRect() 70 this->resolve(x, SkSVGLengthContext::LengthType::kHorizontal), in resolveRect() 71 this->resolve(y, SkSVGLengthContext::LengthType::kVertical), in resolveRect() 72 this->resolve(w, SkSVGLengthContext::LengthType::kHorizontal), in resolveRect() 73 this->resolve(h, SkSVGLengthContext::LengthType::kVertical)); in resolveRect() [all …]
|
D | SkSVGLine.cpp | 58 std::tuple<SkPoint, SkPoint> SkSVGLine::resolve(const SkSVGLengthContext& lctx) const { in resolve() 60 SkPoint::Make(lctx.resolve(fX1, SkSVGLengthContext::LengthType::kHorizontal), in resolve() 61 lctx.resolve(fY1, SkSVGLengthContext::LengthType::kVertical)), in resolve() 62 SkPoint::Make(lctx.resolve(fX2, SkSVGLengthContext::LengthType::kHorizontal), in resolve() 63 lctx.resolve(fY2, SkSVGLengthContext::LengthType::kVertical))); in resolve() 66 void SkSVGLine::onDraw(SkCanvas* canvas, const SkSVGLengthContext& lctx, in onDraw()
|
D | SkSVGCircle.cpp | 49 std::tuple<SkPoint, SkScalar> SkSVGCircle::resolve(const SkSVGLengthContext& lctx) const { in resolve() 50 const auto cx = lctx.resolve(fCx, SkSVGLengthContext::LengthType::kHorizontal); in resolve() 51 const auto cy = lctx.resolve(fCy, SkSVGLengthContext::LengthType::kVertical); in resolve() 52 const auto r = lctx.resolve(fR , SkSVGLengthContext::LengthType::kOther); in resolve() 56 void SkSVGCircle::onDraw(SkCanvas* canvas, const SkSVGLengthContext& lctx, in onDraw()
|
D | SkSVGRadialGradient.cpp | 72 const auto r = lctx.resolve(fR , SkSVGLengthContext::LengthType::kOther); in onMakeShader() 74 lctx.resolve(fCx, SkSVGLengthContext::LengthType::kHorizontal), in onMakeShader() 75 lctx.resolve(fCy, SkSVGLengthContext::LengthType::kVertical)); in onMakeShader() 77 fFx.isValid() ? lctx.resolve(*fFx.get(), SkSVGLengthContext::LengthType::kHorizontal) in onMakeShader() 79 fFy.isValid() ? lctx.resolve(*fFy.get(), SkSVGLengthContext::LengthType::kVertical) in onMakeShader()
|
D | SkSVGLinearGradient.cpp | 63 const auto x1 = lctx.resolve(fX1, SkSVGLengthContext::LengthType::kHorizontal); in onMakeShader() 64 const auto y1 = lctx.resolve(fY1, SkSVGLengthContext::LengthType::kVertical); in onMakeShader() 65 const auto x2 = lctx.resolve(fX2, SkSVGLengthContext::LengthType::kHorizontal); in onMakeShader() 66 const auto y2 = lctx.resolve(fY2, SkSVGLengthContext::LengthType::kVertical); in onMakeShader()
|
D | SkSVGRect.cpp | 77 SkRRect SkSVGRect::resolve(const SkSVGLengthContext& lctx) const { in resolve() 79 const SkScalar rx = lctx.resolve(fRx, SkSVGLengthContext::LengthType::kHorizontal); in resolve() 80 const SkScalar ry = lctx.resolve(fRy, SkSVGLengthContext::LengthType::kVertical); in resolve() 85 void SkSVGRect::onDraw(SkCanvas* canvas, const SkSVGLengthContext& lctx, in onDraw()
|
D | SkSVGSVG.cpp | 100 SkSize SkSVGSVG::intrinsicSize(const SkSVGLengthContext& lctx) const { in intrinsicSize() 107 return SkSize::Make(lctx.resolve(fWidth, SkSVGLengthContext::LengthType::kHorizontal), in intrinsicSize() 108 lctx.resolve(fHeight, SkSVGLengthContext::LengthType::kVertical)); in intrinsicSize()
|
D | SkSVGShape.h | 14 class SkSVGLengthContext; variable 28 virtual void onDraw(SkCanvas*, const SkSVGLengthContext&, const SkPaint&,
|
D | SkSVGCircle.h | 28 void onDraw(SkCanvas*, const SkSVGLengthContext&, const SkPaint&, 37 std::tuple<SkPoint, SkScalar> resolve(const SkSVGLengthContext&) const;
|
D | SkSVGEllipse.h | 29 void onDraw(SkCanvas*, const SkSVGLengthContext&, const SkPaint&, 37 SkRect resolve(const SkSVGLengthContext&) const;
|
D | SkSVGSVG.h | 15 class SkSVGLengthContext; variable 29 SkSize intrinsicSize(const SkSVGLengthContext&) const;
|