/third_party/cups-filters/filter/pdftopdf/ |
H A D | qpdf_pdftopdf.cc | 82 : ctm{1,0,0,1,0,0} in Matrix() 90 throw std::runtime_error("Not a ctm matrix"); in Matrix() 93 ctm[iA]=ar.getArrayItem(iA).getNumericValue(); in Matrix() 104 std::swap(ctm[0],ctm[2]); in rotate() 105 std::swap(ctm[1],ctm[3]); in rotate() 106 ctm[2]=-ctm[2]; in rotate() 107 ctm[ in rotate() [all...] |
/third_party/skia/tests/ |
H A D | ShadowTest.cpp | 37 void tessellate_shadow(skiatest::Reporter* reporter, const SkPath& path, const SkMatrix& ctm, in tessellate_shadow() argument 40 auto verts = SkShadowTessellator::MakeAmbient(path, ctm, heightParams, true); in tessellate_shadow() 43 verts = SkShadowTessellator::MakeAmbient(path, ctm, heightParams, false); in tessellate_shadow() 46 verts = SkShadowTessellator::MakeSpot(path, ctm, heightParams, {0, 0, 128}, 128.f, true, false); in tessellate_shadow() 49 verts = SkShadowTessellator::MakeSpot(path, ctm, heightParams, {0, 0, 128}, 128.f, false, in tessellate_shadow() 53 verts = SkShadowTessellator::MakeSpot(path, ctm, heightParams, {0, 0, 128}, 128.f, true, true); in tessellate_shadow() 56 verts = SkShadowTessellator::MakeSpot(path, ctm, heightParams, {0, 0, 128}, 128.f, false, true); in tessellate_shadow() 125 void check_xformed_bounds(skiatest::Reporter* reporter, const SkPath& path, const SkMatrix& ctm) { in check_xformed_bounds() argument 136 SkDrawShadowMetrics::GetLocalBounds(path, rec, ctm, &bounds); in check_xformed_bounds() 137 ctm in check_xformed_bounds() 175 SkMatrix ctm; check_bounds() local [all...] |
/third_party/skia/gm/ |
H A D | pictureshader.cpp | 81 SkMatrix ctm, localMatrix; variable 82 ctm.setTranslate(fSceneSize * 2.1f, fSceneSize * 13.8f); 83 ctm.preScale(-1, -1); 85 this->drawScene(canvas, ctm, localMatrix, 0); 87 ctm.setTranslate(fSceneSize * 2.4f, fSceneSize * 12.8f); 89 this->drawScene(canvas, ctm, localMatrix, 0); 91 ctm.setTranslate(fSceneSize * 4.8f, fSceneSize * 12.3f); 92 ctm.preScale(2, 2); 93 this->drawScene(canvas, ctm, localMatrix, 0); 95 ctm 106 SkMatrix ctm, localMatrix; drawSceneColumn() local [all...] |
H A D | rasterhandleallocator.cpp | 80 void updateHandle(Handle hndl, const SkMatrix& ctm, const SkIRect& clip) override { 85 canvas->concat(ctm); 109 static CGAffineTransform matrix_to_transform(CGContextRef cg, const SkMatrix& ctm) { in matrix_to_transform() argument 113 matrix.preConcat(ctm); in matrix_to_transform() 142 void updateHandle(Handle hndl, const SkMatrix& ctm, const SkIRect& clip) override { 148 CGContextConcatCTM(cg, matrix_to_transform(cg, ctm)); 244 void updateHandle(Handle handle, const SkMatrix& ctm, const SkIRect& clip_bounds) override { 248 xf.eM11 = ctm[SkMatrix::kMScaleX]; 249 xf.eM21 = ctm[SkMatrix::kMSkewX]; 250 xf.eDx = ctm[SkMatri [all...] |
/third_party/skia/modules/sksg/src/ |
H A D | SkSGRenderNode.cpp | 59 const SkMatrix& ctm) { in LocalShader() 64 // baseCTM x T = ctm in LocalShader() 66 // => T = Inv(baseCTM) x ctm in LocalShader() 68 // => Inv(T) = Inv(Inv(baseCTM) x ctm) in LocalShader() 70 // => Inv(T) = Inv(ctm) x baseCTM in LocalShader() 73 if (base != ctm && ctm.invert(&lm)) { in LocalShader() 94 void RenderNode::RenderContext::modulatePaint(const SkMatrix& ctm, SkPaint* paint, in modulatePaint() argument 99 paint->setShader(LocalShader(fShader, fShaderCTM, ctm)); in modulatePaint() 109 LocalShader(fMaskShader, fMaskCTM, ctm), in modulatePaint() 57 LocalShader(const sk_sp<SkShader> shader, const SkMatrix& base, const SkMatrix& ctm) LocalShader() argument 156 modulateMaskShader(sk_sp<SkShader> ms, const SkMatrix& ctm) modulateMaskShader() argument 186 setIsolation(const SkRect& bounds, const SkMatrix& ctm, bool isolation) setIsolation() argument 209 setFilterIsolation(const SkRect& bounds, const SkMatrix& ctm, sk_sp<SkImageFilter> filter) setFilterIsolation() argument [all...] |
H A D | SkSGTransform.cpp | 55 SkRect onRevalidate(InvalidationController* ic, const SkMatrix& ctm) override { 56 fA->revalidate(ic, ctm); 57 fB->revalidate(ic, ctm); 100 SkRect onRevalidate(InvalidationController* ic, const SkMatrix& ctm) override { 101 fT->revalidate(ic, ctm); 193 SkRect TransformEffect::onRevalidate(InvalidationController* ic, const SkMatrix& ctm) { in onRevalidate() argument 197 fTransform->revalidate(ic, ctm); in onRevalidate() 201 auto bounds = this->INHERITED::onRevalidate(ic, SkMatrix::Concat(ctm, m)); in onRevalidate()
|
H A D | SkSGNode.cpp | 132 const SkRect& Node::revalidate(InvalidationController* ic, const SkMatrix& ctm) { in revalidate() argument 143 fBounds = this->onRevalidate(ic, ctm); in revalidate() 149 fBounds = this->onRevalidate(ic_override, ctm); in revalidate() 151 ic->inval(prev_bounds, ctm); in revalidate() 153 ic->inval(fBounds, ctm); in revalidate()
|
H A D | SkSGInvalidationController.cpp | 17 void InvalidationController::inval(const SkRect& r, const SkMatrix& ctm) { in inval() argument 24 if (!ctm.isIdentity()) { in inval() 25 ctm.mapRect(rect.writable()); in inval()
|
H A D | SkSGClipEffect.cpp | 40 SkRect ClipEffect::onRevalidate(InvalidationController* ic, const SkMatrix& ctm) { in onRevalidate() argument 43 const auto clipBounds = fClipNode->revalidate(ic, ctm); in onRevalidate() 44 auto childBounds = this->INHERITED::onRevalidate(ic, ctm); in onRevalidate()
|
/third_party/skia/src/gpu/ops/ |
H A D | SmallPathShapeData.cpp | 25 SmallPathShapeDataKey::SmallPathShapeDataKey(const GrStyledShape& shape, const SkMatrix& ctm) { in SmallPathShapeDataKey() argument 31 SkScalar sx = ctm.get(SkMatrix::kMScaleX); in SmallPathShapeDataKey() 32 SkScalar sy = ctm.get(SkMatrix::kMScaleY); in SmallPathShapeDataKey() 33 SkScalar kx = ctm.get(SkMatrix::kMSkewX); in SmallPathShapeDataKey() 34 SkScalar ky = ctm.get(SkMatrix::kMSkewY); in SmallPathShapeDataKey() 35 SkScalar tx = ctm.get(SkMatrix::kMTransX); in SmallPathShapeDataKey() 36 SkScalar ty = ctm.get(SkMatrix::kMTransY); in SmallPathShapeDataKey()
|
H A D | SmallPathRenderer.cpp | 168 const SkMatrix& ctm = fShapes[0].fViewMatrix; variable 171 // Still need to key off of ctm to pick the right shader for the transformed quad 172 flags |= ctm.isScaleTranslate() ? kScaleOnly_DistanceFieldEffectFlag : 0; 173 flags |= ctm.isSimilarity() ? kSimilarity_DistanceFieldEffectFlag : 0; 178 if (ctm.hasPerspective()) { 179 matrix = &ctm; 181 if (!ctm.invert(&invert)) { 195 if (!ctm.invert(&invert)) { 450 const SkMatrix& ctm) const { in addBMPathToAtlas() 455 SkMatrix drawMatrix(ctm); in addBMPathToAtlas() 515 writePathVertices(VertexWriter& vertices, const GrVertexColor& color, const SkMatrix& ctm, const skgpu::v1::SmallPathShapeData* shapeData) const writePathVertices() argument [all...] |
/third_party/skia/src/effects/imagefilters/ |
H A D | SkComposeImageFilter.cpp | 28 SkIRect onFilterBounds(const SkIRect&, const SkMatrix& ctm, 79 innerClipBounds = this->getInput(0)->filterBounds(ctx.clipBounds(), ctx.ctm(), in onFilterImage() 91 SkMatrix outerMatrix(ctx.ctm()); in onFilterImage() 113 SkIRect SkComposeImageFilter::onFilterBounds(const SkIRect& src, const SkMatrix& ctm, in onFilterBounds() argument 122 const SkIRect outerRect = outer->filterBounds(src, ctm, dir, inputRect); in onFilterBounds() 123 return inner->filterBounds(outerRect, ctm, dir); in onFilterBounds() 127 const SkIRect innerRect = inner->filterBounds(src, ctm, dir); in onFilterBounds() 128 return outer->filterBounds(innerRect, ctm, dir); in onFilterBounds()
|
H A D | SkImageImageFilter.cpp | 38 SkIRect onFilterNodeBounds(const SkIRect&, const SkMatrix& ctm, 105 const SkRect dstBounds = ctx.ctm().mapRect(fDstRect); in onFilterImage() 114 const bool passthroughTransform = ctx.ctm().isScaleTranslate() && in onFilterImage() 115 ctx.ctm().getScaleX() > 0.f && in onFilterImage() 116 ctx.ctm().getScaleY() > 0.f; in onFilterImage() 148 canvas->concat(ctx.ctm()); in onFilterImage() 162 SkIRect SkImageImageFilter::onFilterNodeBounds(const SkIRect& src, const SkMatrix& ctm, in onFilterNodeBounds() argument 166 return INHERITED::onFilterNodeBounds(src, ctm, direction, inputRect); in onFilterNodeBounds() 170 ctm.mapRect(&dstRect); in onFilterNodeBounds()
|
H A D | SkPictureImageFilter.cpp | 39 SkIRect onFilterNodeBounds(const SkIRect&, const SkMatrix& ctm, 94 ctx.ctm().mapRect(&floatBounds, fCropRect); in onFilterImage() 118 canvas->concat(ctx.ctm()); in onFilterImage() 130 SkIRect SkPictureImageFilter::onFilterNodeBounds(const SkIRect& src, const SkMatrix& ctm, in onFilterNodeBounds() argument 134 return INHERITED::onFilterNodeBounds(src, ctm, direction, inputRect); in onFilterNodeBounds() 138 ctm.mapRect(&dstRect); in onFilterNodeBounds()
|
H A D | SkOffsetImageFilter.cpp | 34 SkIRect onFilterNodeBounds(const SkIRect&, const SkMatrix& ctm, 78 static SkIPoint map_offset_vector(const SkMatrix& ctm, const SkVector& offset) { in map_offset_vector() argument 79 SkVector vec = ctm.mapVector(offset.fX, offset.fY); in map_offset_vector() 91 SkIPoint vec = map_offset_vector(ctx.ctm(), fOffset); in onFilterImage() 136 const SkIRect& src, const SkMatrix& ctm, MapDirection dir, const SkIRect* inputRect) const { in onFilterNodeBounds() 137 SkIPoint vec = map_offset_vector(ctm, fOffset); in onFilterNodeBounds() 135 onFilterNodeBounds( const SkIRect& src, const SkMatrix& ctm, MapDirection dir, const SkIRect* inputRect) const onFilterNodeBounds() argument
|
H A D | SkTileImageFilter.cpp | 31 SkIRect onFilterBounds(const SkIRect& src, const SkMatrix& ctm, 33 SkIRect onFilterNodeBounds(const SkIRect&, const SkMatrix& ctm, 103 ctx.ctm().mapRect(&dstRect, fDstRect); in onFilterImage() 115 ctx.ctm().mapRect(&srcRect, fSrcRect); in onFilterImage() 173 const SkIRect& src, const SkMatrix& ctm, MapDirection dir, const SkIRect* inputRect) const { in onFilterNodeBounds() 175 ctm.mapRect(&rect); in onFilterNodeBounds() 172 onFilterNodeBounds( const SkIRect& src, const SkMatrix& ctm, MapDirection dir, const SkIRect* inputRect) const onFilterNodeBounds() argument
|
/third_party/skia/src/core/ |
H A D | SkDrawShadowInfo.cpp | 34 const SkMatrix& ctm, const SkPoint3& zPlaneParams, in GetSpotShadowTransform() 43 if (!ctm.hasPerspective() || directional) { in GetSpotShadowTransform() 56 shadowTransform->preConcat(ctm); in GetSpotShadowTransform() 64 ctm.mapRectToQuad(pts, pathBounds); in GetSpotShadowTransform() 141 void GetLocalBounds(const SkPath& path, const SkDrawShadowRec& rec, const SkMatrix& ctm, in GetLocalBounds() argument 160 if (ctm.hasPerspective()) { in GetLocalBounds() 162 ctm.mapRect(&ambientBounds); in GetLocalBounds() 174 ctm.mapPoints(&devLightPos, 1); in GetLocalBounds() 180 SkScalar devToSrcScale = SkScalarInvert(ctm.getMinScale()); in GetLocalBounds() 193 if (ctm in GetLocalBounds() 33 GetSpotShadowTransform(const SkPoint3& lightPos, SkScalar lightRadius, const SkMatrix& ctm, const SkPoint3& zPlaneParams, const SkRect& pathBounds, bool directional, SkMatrix* shadowTransform, SkScalar* radius, bool isLimitElevation) GetSpotShadowTransform() argument [all...] |
H A D | SkRasterClipStack.h | 53 void clipRect(const SkMatrix& ctm, const SkRect& rect, SkClipOp op, bool aa) { in clipRect() argument 54 this->writable_rc().op(rect, ctm, op, this->finalAA(aa)); in clipRect() 58 void clipRRect(const SkMatrix& ctm, const SkRRect& rrect, SkClipOp op, bool aa) { in clipRRect() argument 59 this->writable_rc().op(rrect, ctm, op, this->finalAA(aa)); in clipRRect() 63 void clipPath(const SkMatrix& ctm, const SkPath& path, SkClipOp op, bool aa) { in clipPath() argument 64 this->writable_rc().op(path, ctm, op, this->finalAA(aa)); in clipPath()
|
H A D | SkPathEffect.cpp | 22 const SkRect* bounds, const SkMatrix& ctm) const { in filterPath() 27 if (as_PEB(this)->onFilterPath(tmpDst, src, rec, bounds, ctm)) { in filterPath() 102 const SkRect* cullRect, const SkMatrix& ctm) const override { 106 if (fPE1->filterPath(&tmp, src, rec, cullRect, ctm)) { 109 return fPE0->filterPath(dst, *ptr, rec, cullRect, ctm); 163 const SkRect* cullRect, const SkMatrix& ctm) const override { 165 bool filteredFirst = fPE0->filterPath(dst, src, rec, cullRect, ctm); 166 bool filteredSecond = fPE1->filterPath(dst, src, rec, cullRect, ctm);
|
H A D | SkImageFilterTypes.cpp | 29 bool Mapping::decomposeCTM(const SkMatrix& ctm, const SkImageFilter* filter, in decomposeCTM() argument 38 remainder = ctm; in decomposeCTM() 40 } else if (ctm.isScaleTranslate() || capability == MatrixCapability::kComplex) { in decomposeCTM() 42 // ctm is. In both cases, the layer space can be equivalent to device space. in decomposeCTM() 44 layer = ctm; in decomposeCTM() 45 } else if (ctm.decomposeScale(&decomposed, &remainder)) { in decomposeCTM() 52 SkScalar scale = SkMatrixPriv::DifferentialAreaScale(ctm, SkPoint(representativePt)); in decomposeCTM() 63 remainder = ctm; in decomposeCTM()
|
H A D | SkMatrixImageFilter.cpp | 75 if (!ctx.ctm().invert(&matrix)) { in onFilterImage() 79 matrix.postConcat(ctx.ctm()); in onFilterImage() 121 SkIRect SkMatrixImageFilter::onFilterNodeBounds(const SkIRect& src, const SkMatrix& ctm, in onFilterNodeBounds() argument 124 if (!ctm.invert(&matrix)) { in onFilterNodeBounds() 136 matrix.postConcat(ctm); in onFilterNodeBounds()
|
H A D | SkMaskFilterBase.h | 109 const SkMatrix& ctm, 135 const SkMatrix& ctm, 236 bool filterPath(const SkPath& devPath, const SkMatrix& ctm, const SkRasterClip&, SkBlitter*, 243 bool filterRRect(const SkRRect& devRRect, const SkMatrix& ctm, const SkRasterClip&,
|
/third_party/skia/samplecode/ |
H A D | SampleGlyphTransform.cpp | 44 SkMatrix ctm; variable 45 ctm.setRotate(fRotate); // d3 rotate takes degrees 46 ctm.postScale(fScale * 4, fScale * 4); 47 ctm.postTranslate(fTranslate.fX + this->width() * 0.8, fTranslate.fY + baseline); 48 canvas->concat(ctm);
|
/third_party/skia/src/utils/ |
H A D | SkShadowTessellator.cpp | 894 SkAmbientShadowTessellator(const SkPath& path, const SkMatrix& ctm, 898 bool computePathPolygon(const SkPath& path, const SkMatrix& ctm); 904 const SkMatrix& ctm, in SkAmbientShadowTessellator() 916 if (!this->computePathPolygon(path, ctm)) { in SkAmbientShadowTessellator() 940 bool SkAmbientShadowTessellator::computePathPolygon(const SkPath& path, const SkMatrix& ctm) { in computePathPolygon() argument 956 this->handleLine(ctm, &pts[1]); in computePathPolygon() 959 this->handleQuad(ctm, pts); in computePathPolygon() 962 this->handleCubic(ctm, pts); in computePathPolygon() 965 this->handleConic(ctm, pts, iter.conicWeight()); in computePathPolygon() 988 SkSpotShadowTessellator(const SkPath& path, const SkMatrix& ctm, 903 SkAmbientShadowTessellator(const SkPath& path, const SkMatrix& ctm, const SkPoint3& zPlaneParams, bool transparent) SkAmbientShadowTessellator() argument 1000 SkSpotShadowTessellator(const SkPath& path, const SkMatrix& ctm, const SkPoint3& zPlaneParams, const SkPoint3& lightPos, SkScalar lightRadius, bool transparent, bool directional, bool isLimitElevation) SkSpotShadowTessellator() argument 1049 computeClipAndPathPolygons(const SkPath& path, const SkMatrix& ctm, const SkMatrix& shadowTransform) computeClipAndPathPolygons() argument 1147 MakeAmbient(const SkPath& path, const SkMatrix& ctm, const SkPoint3& zPlane, bool transparent) MakeAmbient() argument 1156 MakeSpot(const SkPath& path, const SkMatrix& ctm, const SkPoint3& zPlane, const SkPoint3& lightPos, SkScalar lightRadius, bool transparent, bool directional, bool isLimitElevation) MakeSpot() argument [all...] |
/third_party/skia/experimental/xform/ |
H A D | XContext.cpp | 36 fCTM = parent->ctm(); in RasterXformResolver() 58 const SkMatrix& ctm() const { return fCTM; } in ctm() function in RasterXformResolver 112 fStack[i]->setCache(res.ctm(), res.snapCache()); 118 fStack[i]->setCache(res.ctm(), res.snapCache()); 152 fCanvas->concat(x->ctm());
|