/external/skia/modules/svg/src/ |
D | SkSVGRadialGradient.cpp | 28 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()
|
D | SkSVGEllipse.cpp | 23 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()
|
D | SkSVGLinearGradient.cpp | 27 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()
|
D | SkSVGLine.cpp | 23 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()
|
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::resolve(const SkSVGLength& l, LengthType t) const { in resolve() 75 SkRect SkSVGLengthContext::resolveRect(const SkSVGLength& x, const SkSVGLength& y, in resolveRect() 78 this->resolve(x, SkSVGLengthContext::LengthType::kHorizontal), in resolveRect() 79 this->resolve(y, SkSVGLengthContext::LengthType::kVertical), in resolveRect() 80 this->resolve(w, SkSVGLengthContext::LengthType::kHorizontal), in resolveRect() 81 this->resolve(h, SkSVGLengthContext::LengthType::kVertical)); in resolveRect() [all …]
|
D | SkSVGCircle.cpp | 22 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()
|
D | SkSVGRect.cpp | 28 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()
|
D | SkSVGUse.cpp | 67 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()
|
D | SkSVGSVG.cpp | 86 SkSize SkSVGSVG::intrinsicSize(const SkSVGLengthContext& lctx) const { in intrinsicSize() 93 return SkSize::Make(lctx.resolve(fWidth, SkSVGLengthContext::LengthType::kHorizontal), in intrinsicSize() 94 lctx.resolve(fHeight, SkSVGLengthContext::LengthType::kVertical)); in intrinsicSize()
|
/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 | 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 | 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 | 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 | SkSVGShape.h | 14 class SkSVGLengthContext; variable 28 virtual void onDraw(SkCanvas*, const SkSVGLengthContext&, const SkPaint&,
|
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 | SkSVGCircle.h | 28 void onDraw(SkCanvas*, const SkSVGLengthContext&, const SkPaint&, 37 std::tuple<SkPoint, SkScalar> resolve(const SkSVGLengthContext&) const;
|
/external/skia/modules/svg/include/ |
D | SkSVGRenderContext.h | 26 class SkSVGLengthContext { 28 SkSVGLengthContext(const SkSize& viewport, SkScalar dpi = 90) 68 const SkSVGLengthContext&, const SkSVGPresentationContext&, 76 const SkSVGLengthContext& lengthContext() const { return *fLengthContext; } in lengthContext() 77 SkSVGLengthContext* writableLengthContext() { return fLengthContext.writable(); } in writableLengthContext() 168 SkTCopyOnFirstWrite<SkSVGLengthContext> fLengthContext;
|
D | SkSVGShape.h | 14 class SkSVGLengthContext; variable 26 virtual void onDraw(SkCanvas*, const SkSVGLengthContext&, const SkPaint&,
|
D | SkSVGEllipse.h | 28 void onDraw(SkCanvas*, const SkSVGLengthContext&, const SkPaint&, 36 SkRect resolve(const SkSVGLengthContext&) const;
|
D | SkSVGCircle.h | 27 void onDraw(SkCanvas*, const SkSVGLengthContext&, const SkPaint&, 38 std::tuple<SkPoint, SkScalar> resolve(const SkSVGLengthContext&) const;
|
D | SkSVGLine.h | 28 void onDraw(SkCanvas*, const SkSVGLengthContext&, const SkPaint&, 37 std::tuple<SkPoint, SkPoint> resolve(const SkSVGLengthContext&) const;
|