Lines Matching refs:ctm
56 static SkMatrix ComputeDiffInverse(const SkMatrix& base, const SkMatrix& ctm) { in ComputeDiffInverse() argument
70 if (base != ctm && ctm.invert(&m)) { in ComputeDiffInverse()
87 void RenderNode::RenderContext::modulatePaint(const SkMatrix& ctm, SkPaint* paint) const { in modulatePaint() argument
91 paint->setShader(fShader->makeWithLocalMatrix(ComputeDiffInverse(fShaderCTM, ctm))); in modulatePaint()
94 paint->setMaskFilter(fMaskFilter->makeWithMatrix(ComputeDiffInverse(fMaskCTM, ctm))); in modulatePaint()
135 RenderNode::ScopedRenderContext::modulateMaskFilter(sk_sp<SkMaskFilter> mf, const SkMatrix& ctm) { in modulateMaskFilter() argument
145 const auto relative_transform = SkMatrix::Concat(invMaskCTM, ctm); in modulateMaskFilter()
151 fCtx.fMaskCTM = ctm; in modulateMaskFilter()
164 RenderNode::ScopedRenderContext::setIsolation(const SkRect& bounds, const SkMatrix& ctm, in setIsolation() argument
168 fCtx.modulatePaint(ctm, &layer_paint); in setIsolation()
182 RenderNode::ScopedRenderContext::setFilterIsolation(const SkRect& bounds, const SkMatrix& ctm, in setFilterIsolation() argument
185 fCtx.modulatePaint(ctm, &layer_paint); in setFilterIsolation()