Home
last modified time | relevance | path

Searched refs:lctx (Results 1 – 24 of 24) sorted by relevance

/third_party/skia/modules/svg/src/
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() argument
36 canvas->drawOval(this->resolve(lctx), paint); in onDraw()
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() argument
34 std::tie(p0, p1) = this->resolve(lctx); in onDraw()
DSkSVGMask.cpp38 SkSVGRenderContext lctx(ctx); in renderMask() local
39 this->onPrepareToRender(&lctx); in renderMask()
41 const auto ci = *lctx.presentationContext().fInherited.fColorInterpolation; in renderMask()
56 lctx.canvas()->saveLayer(nullptr, &mask_filter); in renderMask()
59 lctx.canvas()->translate(obbt.offset.x, obbt.offset.y); in renderMask()
60 lctx.canvas()->scale(obbt.scale.x, obbt.scale.y); in renderMask()
63 child->render(lctx); in renderMask()
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() argument
33 std::tie(pos, r) = this->resolve(lctx); in onDraw()
DSkSVGRadialGradient.cpp28 const SkSVGLengthContext lctx = in onMakeShader() local
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()
DSkSVGRect.cpp28 SkRRect SkSVGRect::resolve(const SkSVGLengthContext& lctx) const { in resolve()
29 const auto rect = lctx.resolveRect(fX, fY, fWidth, fHeight); 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() argument
66 canvas->drawRRect(this->resolve(lctx), paint); in onDraw()
DSkSVGLinearGradient.cpp27 const SkSVGLengthContext lctx = in onMakeShader() local
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()
DSkSVGImage.cpp81 const SkSVGLengthContext& lctx = ctx.lengthContext(); in onRender() local
82 const SkRect viewPort = lctx.resolveRect(fX, fY, fWidth, fHeight); in onRender()
98 const SkSVGLengthContext& lctx = ctx.lengthContext(); in onObjectBoundingBox() local
99 return lctx.resolveRect(fX, fY, fWidth, fHeight); in onObjectBoundingBox()
DSkSVGUse.cpp67 const SkSVGLengthContext& lctx = ctx.lengthContext(); in onObjectBoundingBox() local
68 const SkScalar x = lctx.resolve(fX, SkSVGLengthContext::LengthType::kHorizontal); in onObjectBoundingBox()
69 const SkScalar y = lctx.resolve(fY, SkSVGLengthContext::LengthType::kVertical); in onObjectBoundingBox()
DSkSVGSVG.cpp86 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()
DSkSVGRenderContext.cpp113 const SkSVGLengthContext& lctx) { in dash_effect() argument
122 intervals.push_back(lctx.resolve(dash, SkSVGLengthContext::LengthType::kOther)); in dash_effect()
134 const auto phase = lctx.resolve(*props.fStrokeDashOffset, in dash_effect()
150 const SkSVGLengthContext& lctx, in SkSVGRenderContext() argument
156 , fLengthContext(lctx) in SkSVGRenderContext()
488 SkTCopyOnFirstWrite<SkSVGLengthContext> lctx(fLengthContext); in resolveOBBRect() local
491 *lctx.writable() = SkSVGLengthContext({1,1}); in resolveOBBRect()
494 auto r = lctx->resolveRect(x, y, w, h); in resolveOBBRect()
DSkSVGText.cpp89 static std::vector<float> ResolveLengths(const SkSVGLengthContext& lctx, in ResolveLengths() argument
96 resolved.push_back(lctx.resolve(l, lt)); in ResolveLengths()
117 const SkSVGLengthContext& lctx, in ScopedPosResolver() argument
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() argument
135 : ScopedPosResolver(txt, lctx, tctx, tctx->fCurrentCharIndex) {} in ScopedPosResolver()
DSkSVGDOM.cpp439 SkSVGLengthContext lctx(fContainerSize); in render() local
441 fRoot->render(SkSVGRenderContext(canvas, fFontMgr, fResourceProvider, fIDMapper, lctx, pctx, in render()
/third_party/flutter/skia/experimental/svg/model/
DSkSVGEllipse.cpp58 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() argument
71 canvas->drawOval(this->resolve(lctx), paint); in onDraw()
DSkSVGLine.cpp58 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() argument
69 std::tie(p0, p1) = this->resolve(lctx); in onDraw()
DSkSVGCircle.cpp49 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() argument
60 std::tie(pos, r) = this->resolve(lctx); in onDraw()
DSkSVGRect.cpp77 SkRRect SkSVGRect::resolve(const SkSVGLengthContext& lctx) const { in resolve()
78 const SkRect rect = lctx.resolveRect(fX, fY, fWidth, fHeight); 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() argument
87 canvas->drawRRect(this->resolve(lctx), paint); in onDraw()
DSkSVGRadialGradient.cpp71 const auto& lctx = ctx.lengthContext(); in onMakeShader() local
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()
DSkSVGLinearGradient.cpp62 const auto& lctx = ctx.lengthContext(); in onMakeShader() local
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()
DSkSVGSVG.cpp100 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()
DSkSVGDOM.cpp493 SkSVGLengthContext lctx(fContainerSize); in render() local
495 fRoot->render(SkSVGRenderContext(canvas, fIDMapper, lctx, pctx)); in render()
505 const SkSVGLengthContext lctx(SkSize::Make(0, 0)); in intrinsicSize() local
506 return static_cast<const SkSVGSVG*>(fRoot.get())->intrinsicSize(lctx); in intrinsicSize()
DSkSVGRenderContext.cpp291 const SkSVGLengthContext& lctx, in SkSVGRenderContext() argument
294 , fLengthContext(lctx) in SkSVGRenderContext()
/third_party/skia/modules/svg/tests/
DText.cpp161 const SkSVGLengthContext lctx({0,0}); in DEF_TEST() local
166 const SkSVGRenderContext ctx(&canvas, fmgr, rp, mapper, lctx, pctx, {nullptr, nullptr}); in DEF_TEST()
169 SkSVGTextContext::ScopedPosResolver pa(*a, lctx, &tctx, tst.offseta); in DEF_TEST()
170 SkSVGTextContext::ScopedPosResolver pb(*b, lctx, &tctx, tst.offsetb); in DEF_TEST()
/third_party/ffmpeg/libavformat/
Dsbgdec.c846 int lctx = ectx - ctx; in parse_script() local
848 if (lctx > 0 && ctx[lctx - 1] == '\r') in parse_script()
849 lctx--; in parse_script()
850 if (lctx == 0) { in parse_script()
852 lctx = strlen(ctx); in parse_script()
856 sp.line_no, sp.err_msg, quote, lctx, ctx, quote); in parse_script()