/third_party/cups-filters/filter/pdftopdf/ |
D | qpdf_pdftopdf.cc | 82 : ctm{1,0,0,1,0,0} 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[3]=-ctm[3]; in rotate() 110 ctm[0]=-ctm[0]; in rotate() 111 ctm[3]=-ctm[3]; in rotate() 114 std::swap(ctm[0],ctm[2]); in rotate() 115 std::swap(ctm[1],ctm[3]); in rotate() [all …]
|
/third_party/skia/tests/ |
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.mapRect(&bounds); in check_xformed_bounds() [all …]
|
/third_party/flutter/skia/tests/ |
D | ShadowTest.cpp | 36 void tessellate_shadow(skiatest::Reporter* reporter, const SkPath& path, const SkMatrix& ctm, in tessellate_shadow() argument 39 auto verts = SkShadowTessellator::MakeAmbient(path, ctm, heightParams, true); in tessellate_shadow() 42 verts = SkShadowTessellator::MakeAmbient(path, ctm, heightParams, false); in tessellate_shadow() 45 verts = SkShadowTessellator::MakeSpot(path, ctm, heightParams, {0, 0, 128}, 128.f, true); in tessellate_shadow() 48 verts = SkShadowTessellator::MakeSpot(path, ctm, heightParams, {0, 0, 128}, 128.f, false); in tessellate_shadow() 117 void check_xformed_bounds(skiatest::Reporter* reporter, const SkPath& path, const SkMatrix& ctm) { in check_xformed_bounds() argument 127 SkDrawShadowMetrics::GetLocalBounds(path, rec, ctm, &bounds); in check_xformed_bounds() 128 ctm.mapRect(&bounds); in check_xformed_bounds() 130 auto verts = SkShadowTessellator::MakeAmbient(path, ctm, rec.fZPlaneParams, true); in check_xformed_bounds() 135 SkPoint mapXY = ctm.mapXY(rec.fLightPos.fX, rec.fLightPos.fY); in check_xformed_bounds() [all …]
|
/third_party/skia/gm/ |
D | pictureshader.cpp | 81 SkMatrix ctm, localMatrix; in onDraw() local 82 ctm.setTranslate(fSceneSize * 2.1f, fSceneSize * 13.8f); in onDraw() 83 ctm.preScale(-1, -1); in onDraw() 85 this->drawScene(canvas, ctm, localMatrix, 0); in onDraw() 87 ctm.setTranslate(fSceneSize * 2.4f, fSceneSize * 12.8f); in onDraw() 89 this->drawScene(canvas, ctm, localMatrix, 0); in onDraw() 91 ctm.setTranslate(fSceneSize * 4.8f, fSceneSize * 12.3f); in onDraw() 92 ctm.preScale(2, 2); in onDraw() 93 this->drawScene(canvas, ctm, localMatrix, 0); in onDraw() 95 ctm.setTranslate(fSceneSize * 13.8f, fSceneSize * 14.3f); in onDraw() [all …]
|
D | rasterhandleallocator.cpp | 80 void updateHandle(Handle hndl, const SkMatrix& ctm, const SkIRect& clip) override { in updateHandle() argument 85 canvas->concat(ctm); in updateHandle() 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 { in updateHandle() argument 148 CGContextConcatCTM(cg, matrix_to_transform(cg, ctm)); in updateHandle() 244 void updateHandle(Handle handle, const SkMatrix& ctm, const SkIRect& clip_bounds) override { in updateHandle() argument 248 xf.eM11 = ctm[SkMatrix::kMScaleX]; in updateHandle() 249 xf.eM21 = ctm[SkMatrix::kMSkewX]; in updateHandle() 250 xf.eDx = ctm[SkMatrix::kMTransX]; in updateHandle() [all …]
|
/third_party/flutter/skia/gm/ |
D | pictureshader.cpp | 76 SkMatrix ctm, localMatrix; in onDraw() local 77 ctm.setTranslate(fSceneSize * 2.1f, fSceneSize * 13.8f); in onDraw() 78 ctm.preScale(-1, -1); in onDraw() 80 this->drawScene(canvas, ctm, localMatrix, 0); in onDraw() 82 ctm.setTranslate(fSceneSize * 2.4f, fSceneSize * 12.8f); in onDraw() 84 this->drawScene(canvas, ctm, localMatrix, 0); in onDraw() 86 ctm.setTranslate(fSceneSize * 4.8f, fSceneSize * 12.3f); in onDraw() 87 ctm.preScale(2, 2); in onDraw() 88 this->drawScene(canvas, ctm, localMatrix, 0); in onDraw() 90 ctm.setTranslate(fSceneSize * 13.8f, fSceneSize * 14.3f); in onDraw() [all …]
|
D | rasterhandleallocator.cpp | 81 void updateHandle(Handle hndl, const SkMatrix& ctm, const SkIRect& clip) override { in updateHandle() argument 86 canvas->concat(ctm); in updateHandle() 110 static CGAffineTransform matrix_to_transform(CGContextRef cg, const SkMatrix& ctm) { in matrix_to_transform() argument 114 matrix.preConcat(ctm); in matrix_to_transform() 143 void updateHandle(Handle hndl, const SkMatrix& ctm, const SkIRect& clip) override { in updateHandle() argument 149 CGContextConcatCTM(cg, matrix_to_transform(cg, ctm)); in updateHandle() 245 void updateHandle(Handle handle, const SkMatrix& ctm, const SkIRect& clip_bounds) override { in updateHandle() argument 249 xf.eM11 = ctm[SkMatrix::kMScaleX]; in updateHandle() 250 xf.eM21 = ctm[SkMatrix::kMSkewX]; in updateHandle() 251 xf.eDx = ctm[SkMatrix::kMTransX]; in updateHandle() [all …]
|
/third_party/flutter/skia/modules/sksg/src/ |
D | SkSGRenderNode.cpp | 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() [all …]
|
D | SkSGTransform.cpp | 37 SkRect onRevalidate(InvalidationController* ic, const SkMatrix& ctm) override { in onRevalidate() argument 38 fA->revalidate(ic, ctm); in onRevalidate() 39 fB->revalidate(ic, ctm); in onRevalidate() 82 SkRect onRevalidate(InvalidationController* ic, const SkMatrix& ctm) override { in onRevalidate() argument 83 fT->revalidate(ic, ctm); in onRevalidate() 166 SkRect TransformEffect::onRevalidate(InvalidationController* ic, const SkMatrix& ctm) { in onRevalidate() argument 170 fTransform->revalidate(ic, ctm); in onRevalidate() 173 auto bounds = this->INHERITED::onRevalidate(ic, SkMatrix::Concat(ctm, m)); in onRevalidate()
|
D | SkSGRenderEffect.cpp | 31 SkRect MaskFilter::onRevalidate(InvalidationController* ic, const SkMatrix& ctm) { in onRevalidate() argument 58 SkRect MaskFilterEffect::onRevalidate(InvalidationController* ic, const SkMatrix& ctm) { in onRevalidate() argument 59 auto bounds = this->INHERITED::onRevalidate(ic, ctm); in onRevalidate() 62 fMaskFilter->revalidate(ic, ctm); in onRevalidate() 109 SkRect ShaderEffect::onRevalidate(InvalidationController* ic, const SkMatrix& ctm) { in onRevalidate() argument 111 fShader->revalidate(ic, ctm); in onRevalidate() 114 return this->INHERITED::onRevalidate(ic, ctm); in onRevalidate() 151 SkRect ImageFilterEffect::onRevalidate(InvalidationController* ic, const SkMatrix& ctm) { in onRevalidate() argument 153 fImageFilter->revalidate(ic, ctm); in onRevalidate() 158 const auto content_bounds = this->INHERITED::onRevalidate(ic, ctm); in onRevalidate()
|
/third_party/skia/modules/sksg/src/ |
D | SkSGRenderNode.cpp | 59 const SkMatrix& ctm) { in LocalShader() argument 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() 156 RenderNode::ScopedRenderContext::modulateMaskShader(sk_sp<SkShader> ms, const SkMatrix& ctm) { in modulateMaskShader() argument 166 const auto relative_transform = SkMatrix::Concat(invMaskCTM, ctm); in modulateMaskShader() 173 fCtx.fMaskCTM = ctm; in modulateMaskShader() 186 RenderNode::ScopedRenderContext::setIsolation(const SkRect& bounds, const SkMatrix& ctm, in setIsolation() argument 190 fCtx.modulatePaint(ctm, &layer_paint, /*is_layer_paint = */true); in setIsolation() [all …]
|
/third_party/flutter/skia/src/core/ |
D | SkImageFilter.cpp | 61 SkIRect SkImageFilter::filterBounds(const SkIRect& src, const SkMatrix& ctm, in filterBounds() argument 64 SkIRect bounds = as_IFB(this)->onFilterNodeBounds(src, ctm, direction, inputRect); in filterBounds() 65 return as_IFB(this)->onFilterBounds(bounds, ctm, direction, &bounds); in filterBounds() 68 SkIRect bounds = as_IFB(this)->onFilterBounds(src, ctm, direction, nullptr); in filterBounds() 69 bounds = as_IFB(this)->onFilterNodeBounds(bounds, ctm, direction, nullptr); in filterBounds() 72 bounds, ctm, as_IFB(this)->affectsTransparentBlack(), &dst); in filterBounds() 212 SkImageFilterCacheKey key(fUniqueID, context.ctm(), context.clipBounds(), srcGenID, srcSubset); in filterImage() 254 void SkImageFilter::CropRect::applyTo(const SkIRect& imageBounds, const SkMatrix& ctm, in applyTo() argument 259 ctm.mapRect(&devCropR, fRect); in applyTo() 292 SkIRect tmpDst = this->onFilterNodeBounds(srcBounds, ctx.ctm(), kForward_MapDirection, nullptr); in applyCropRect() [all …]
|
D | SkDrawLooper.cpp | 15 void SkDrawLooper::Context::Info::applyToCTM(SkMatrix* ctm) const { in applyToCTM() 17 ctm->postTranslate(fTranslate.fX, fTranslate.fY); in applyToCTM() 19 ctm->preTranslate(fTranslate.fX, fTranslate.fY); in applyToCTM() 25 SkMatrix ctm = canvas->getTotalMatrix(); in applyToCanvas() local 26 ctm.postTranslate(fTranslate.fX, fTranslate.fY); in applyToCanvas() 27 canvas->setMatrix(ctm); in applyToCanvas() 98 SkMatrix ctm = canvas->getTotalMatrix(); in apply() local 99 ctm.postTranslate(info.fTranslate.fX, info.fTranslate.fY); in apply() 100 canvas->setMatrix(ctm); in apply()
|
D | SkDrawShadowInfo.cpp | 21 const SkMatrix& ctm, const SkPoint3& zPlaneParams, in GetSpotShadowTransform() argument 28 if (!ctm.hasPerspective()) { in GetSpotShadowTransform() 34 shadowTransform->preConcat(ctm); in GetSpotShadowTransform() 42 ctm.mapRectToQuad(pts, pathBounds); in GetSpotShadowTransform() 116 void GetLocalBounds(const SkPath& path, const SkDrawShadowRec& rec, const SkMatrix& ctm, in GetLocalBounds() argument 135 if (ctm.hasPerspective()) { in GetLocalBounds() 137 ctm.mapRect(&ambientBounds); in GetLocalBounds() 144 ctm.mapPoints(&devLightPos, 1); in GetLocalBounds() 149 SkScalar devToSrcScale = SkScalarInvert(ctm.getMinScale()); in GetLocalBounds() 181 if (ctm.hasPerspective()) { in GetLocalBounds() [all …]
|
D | SkDevice.cpp | 49 void SkBaseDevice::setGlobalCTM(const SkMatrix& ctm) { in setGlobalCTM() argument 50 fCTM = ctm; in setGlobalCTM() 86 const SkMatrix& ctm = this->ctm(); in drawRegion() local 87 bool isNonTranslate = ctm.getType() & ~(SkMatrix::kTranslate_Mask); in drawRegion() 90 bool antiAlias = paint.isAntiAlias() && (!is_int(ctm.getTranslateX()) || in drawRegion() 91 !is_int(ctm.getTranslateY())); in drawRegion() 128 SkISize lod = SkPatchUtils::GetLevelOfDetail(cubics, &this->ctm()); in drawPatch() 273 const SkMatrix baseCTM = this->ctm(); in drawEdgeAAImageSet() 366 const SkMatrix originalCTM = this->ctm(); in drawGlyphRunRSXform() 387 SkMatrix ctm; in drawGlyphRunRSXform() local [all …]
|
/third_party/flutter/engine/flutter/flow/ |
D | raster_cache.h | 61 static SkIRect GetDeviceBounds(const SkRect& rect, const SkMatrix& ctm) { in GetDeviceBounds() argument 63 ctm.mapRect(&device_rect, rect); in GetDeviceBounds() 69 static SkMatrix GetIntegralTransCTM(const SkMatrix& ctm) { in GetIntegralTransCTM() argument 70 SkMatrix result = ctm; in GetIntegralTransCTM() 71 result[SkMatrix::kMTransX] = SkScalarRoundToScalar(ctm.getTranslateX()); in GetIntegralTransCTM() 72 result[SkMatrix::kMTransY] = SkScalarRoundToScalar(ctm.getTranslateY()); in GetIntegralTransCTM() 91 void Prepare(PrerollContext* context, Layer* layer, const SkMatrix& ctm); 93 RasterCacheResult Get(const SkPicture& picture, const SkMatrix& ctm) const; 95 RasterCacheResult Get(Layer* layer, const SkMatrix& ctm) const;
|
D | raster_cache.cc | 97 const SkMatrix& ctm, in Rasterize() argument 103 SkIRect cache_rect = RasterCache::GetDeviceBounds(logical_rect, ctm); in Rasterize() 120 canvas->concat(ctm); in Rasterize() 132 const SkMatrix& ctm, in RasterizePicture() argument 135 return Rasterize(context, ctm, dst_color_space, checkerboard, in RasterizePicture() 154 const SkMatrix& ctm) { in Prepare() argument 155 LayerRasterCacheKey cache_key(layer->unique_id(), ctm); in Prepare() 160 entry.image = Rasterize(context->gr_context, ctm, context->dst_color_space, in Prepare() 227 const SkMatrix& ctm) const { in Get() 228 PictureRasterCacheKey cache_key(picture.uniqueID(), ctm); in Get() [all …]
|
/third_party/flutter/skia/src/gpu/ |
D | SkGpuDevice.cpp | 171 SkMatrix matrix = this->ctm(); in filterTexture() 276 this->ctm(), &grPaint)) { in drawPaint() 280 fRenderTargetContext->drawPaint(this->clip(), std::move(grPaint), this->ctm()); in drawPaint() 308 this->ctm(), &grPaint)) { in drawPoints() 316 this->ctm(), path, style); in drawPoints() 321 bool isHairline = (0 == width) || (1 == width && this->ctm().getMinMaxScales(scales) && in drawPoints() 330 draw.fMatrix = &this->ctm(); in drawPoints() 338 const SkMatrix* viewMatrix = &this->ctm(); in drawPoints() 378 this->clip(), paint, this->ctm(), shape); in drawRect() 384 this->ctm(), &grPaint)) { in drawRect() [all …]
|
D | SkGpuDevice_drawTexture.cpp | 174 static void draw_texture(GrRenderTargetContext* rtc, const GrClip& clip, const SkMatrix& ctm, in draw_texture() argument 226 ctm, std::move(textureXform)); in draw_texture() 229 dstRect, aa, aaFlags, constraint, ctm, std::move(textureXform)); in draw_texture() 235 const GrClip& clip, const SkMatrix& ctm, in draw_texture_producer() argument 248 draw_texture(rtc, clip, ctm, paint, src, dst, dstClip, aa, aaFlags, constraint, in draw_texture_producer() 269 producer->width(), producer->height(), paint.getFilterQuality(), ctm, srcToDst, in draw_texture_producer() 290 combinedMatrix.setConcat(ctm, srcToDst); in draw_texture_producer() 313 if (!SkPaintToGrPaintWithTexture(context, rtc->colorSpaceInfo(), paint, ctm, in draw_texture_producer() 328 rtc->fillQuadWithEdgeAA(clip, std::move(grPaint), aa, aaFlags, ctm, dstClip, srcClip); in draw_texture_producer() 331 rtc->fillRectWithEdgeAA(clip, std::move(grPaint), aa, aaFlags, ctm, dst, in draw_texture_producer() [all …]
|
/third_party/skia/src/gpu/ops/ |
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()
|
/third_party/flutter/engine/flutter/flow/layers/ |
D | picture_layer.cc | 27 SkMatrix ctm = matrix; in Preroll() local 28 ctm.postTranslate(offset_.x(), offset_.y()); in Preroll() 30 ctm = RasterCache::GetIntegralTransCTM(ctm); in Preroll() 32 cache->Prepare(context->gr_context, sk_picture, ctm, in Preroll() 61 const SkMatrix& ctm = context.leaf_nodes_canvas->getTotalMatrix(); in Paint() local 62 RasterCacheResult result = context.raster_cache->Get(*picture(), ctm); in Paint()
|
D | opacity_layer.cc | 55 SkMatrix ctm = child_matrix; in Preroll() local 57 ctm = RasterCache::GetIntegralTransCTM(ctm); in Preroll() 59 context->raster_cache->Prepare(context, child, ctm); in Preroll() 87 const SkMatrix& ctm = context.leaf_nodes_canvas->getTotalMatrix(); in Paint() local 89 context.raster_cache->Get(layers()[0].get(), ctm); in Paint()
|
/third_party/skia/src/effects/imagefilters/ |
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()
|
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()
|
/third_party/skia/src/core/ |
D | SkDrawShadowInfo.cpp | 34 const SkMatrix& ctm, const SkPoint3& zPlaneParams, in GetSpotShadowTransform() argument 43 if (!ctm.hasPerspective() || directional) { in GetSpotShadowTransform() 56 shadowTransform->preConcat(ctm); in GetSpotShadowTransform() 64 ctm.mapRectToQuad(pts, pathBounds); in GetSpotShadowTransform() 138 void GetLocalBounds(const SkPath& path, const SkDrawShadowRec& rec, const SkMatrix& ctm, in GetLocalBounds() argument 157 if (ctm.hasPerspective()) { in GetLocalBounds() 159 ctm.mapRect(&ambientBounds); in GetLocalBounds() 171 ctm.mapPoints(&devLightPos, 1); in GetLocalBounds() 177 SkScalar devToSrcScale = SkScalarInvert(ctm.getMinScale()); in GetLocalBounds() 190 if (ctm.invert(&inverse)) { in GetLocalBounds() [all …]
|