/external/skia/tests/ |
H A D | ShadowUtilsTest.cpp | 15 void tessellate_shadow(skiatest::Reporter* reporter, const SkPath& path, const SkMatrix& ctm, argument 22 auto verts = SkShadowTessellator::MakeAmbient(path, ctm, heightFunc, kAmbientAlpha, true); 27 verts = SkShadowTessellator::MakeAmbient(path, ctm, heightFunc, kAmbientAlpha, false); 32 verts = SkShadowTessellator::MakeSpot(path, ctm, heightFunc, {0, 0, 128}, 128.f, 38 verts = SkShadowTessellator::MakeSpot(path, ctm, heightFunc, {0, 0, 128}, 128.f,
|
/external/pdfium/core/fpdfapi/render/ |
H A D | cpdf_devicebuffer.cpp | 46 CFX_Matrix ctm = m_pDevice->GetCTM(); local 47 m_Matrix.Concat(CFX_Matrix(FXSYS_fabs(ctm.a), 0, 0, FXSYS_fabs(ctm.d), 0, 0));
|
/external/skia/src/effects/ |
H A D | SkComposeImageFilter.cpp | 40 innerClipBounds = this->getInput(0)->filterBounds(ctx.clipBounds(), ctx.ctm()); 41 Context innerContext(ctx.ctm(), innerClipBounds, ctx.cache(), ctx.outputProperties()); 48 SkMatrix outerMatrix(ctx.ctm()); 64 SkIRect SkComposeImageFilter::onFilterBounds(const SkIRect& src, const SkMatrix& ctm, argument 69 return outer->filterBounds(inner->filterBounds(src, ctm, direction), ctm, direction);
|
H A D | SkOffsetImageFilter.cpp | 38 ctx.ctm().mapVectors(&vec, &fOffset, 1); 82 SkIRect SkOffsetImageFilter::onFilterNodeBounds(const SkIRect& src, const SkMatrix& ctm, argument 85 ctm.mapVectors(&vec, &fOffset, 1);
|
H A D | SkTileImageFilter.cpp | 52 ctx.ctm().mapRect(&dstRect, fDstRect); 63 ctx.ctm().mapRect(&srcRect, fSrcRect); 119 SkIRect SkTileImageFilter::onFilterNodeBounds(const SkIRect& src, const SkMatrix& ctm, argument 122 ctm.mapRect(&rect);
|
H A D | SkDropShadowImageFilter.cpp | 91 ctx.ctm().mapVectors(&sigma, 1); 101 ctx.ctm().mapVectors(&offsetVec, 1); 128 SkIRect SkDropShadowImageFilter::onFilterNodeBounds(const SkIRect& src, const SkMatrix& ctm, argument 134 ctm.mapVectors(&offsetVec, 1); 138 ctm.mapVectors(&sigma, 1);
|
H A D | SkDashPathEffect.cpp | 59 const SkMatrix& ctm, const SkRect* cullRect, 77 // defined by the ctm. We want our answer in the local coordinate system. 79 SkASSERT(ctm.rectStaysRect()); 81 if (!ctm.invert(&inv)) { 58 cull_line(SkPoint* pts, const SkStrokeRec& rec, const SkMatrix& ctm, const SkRect* cullRect, const SkScalar intervalLength) argument
|
/external/skia/src/core/ |
H A D | SkLocalMatrixShader.cpp | 68 const SkMatrix& ctm, 76 return fProxyShader->onAppendStages(p, dst, scratch, ctm, paint, 65 onAppendStages(SkRasterPipeline* p, SkColorSpace* dst, SkArenaAlloc* scratch, const SkMatrix& ctm, const SkPaint& paint, const SkMatrix* localM) const argument
|
H A D | SkMatrixImageFilter.cpp | 58 if (!ctx.ctm().invert(&matrix)) { 62 matrix.postConcat(ctx.ctm()); 105 SkIRect SkMatrixImageFilter::onFilterNodeBounds(const SkIRect& src, const SkMatrix& ctm, argument 108 if (!ctm.invert(&matrix)) { 120 matrix.postConcat(ctm);
|
H A D | SkBlurImageFilter.cpp | 69 static SkVector map_sigma(const SkSize& localSigma, const SkMatrix& ctm) { argument 71 ctm.mapVectors(&sigma, 1); 134 const SkVector sigma = map_sigma(fSigma, ctx.ctm()); 283 SkIRect SkBlurImageFilterImpl::onFilterNodeBounds(const SkIRect& src, const SkMatrix& ctm, argument 285 SkVector sigma = map_sigma(fSigma, ctm);
|
H A D | SkNormalMapSource.cpp | 241 sk_sp<SkNormalSource> SkNormalSource::MakeFromNormalMap(sk_sp<SkShader> map, const SkMatrix& ctm) { argument 244 if (!ctm.invert(&invCTM) || !map) {
|
H A D | SkRasterClip.cpp | 63 void SkConservativeClip::op(const SkRect& localRect, const SkMatrix& ctm, const SkIRect& devBounds, argument 74 ctm.mapRect(&devRect, localRect); 81 void SkConservativeClip::op(const SkRRect& rrect, const SkMatrix& ctm, const SkIRect& devBounds, argument 83 this->op(rrect.getBounds(), ctm, devBounds, op, doAA); 86 void SkConservativeClip::op(const SkPath& path, const SkMatrix& ctm, const SkIRect& devBounds, argument 97 ctm.mapRect(&bounds);
|
H A D | SkRasterClipStack.h | 101 void clipRect(const SkMatrix& ctm, const SkRect& rect, SkClipOp op, bool aa) { argument 102 this->writable_rc().op(rect, ctm, fRootBounds, (SkRegion::Op)op, aa); 107 void clipRRect(const SkMatrix& ctm, const SkRRect& rrect, SkClipOp op, bool aa) { argument 108 this->writable_rc().op(rrect, ctm, fRootBounds, (SkRegion::Op)op, aa); 113 void clipPath(const SkMatrix& ctm, const SkPath& path, SkClipOp op, bool aa) { argument 114 this->writable_rc().op(path, ctm, fRootBounds, (SkRegion::Op)op, aa);
|
H A D | SkRasterPipelineBlitter.cpp | 23 static SkBlitter* Create(const SkPixmap&, const SkPaint&, const SkMatrix& ctm, 73 const SkMatrix& ctm, 75 return SkRasterPipelineBlitter::Create(dst, paint, ctm, alloc); 90 const SkMatrix& ctm, 114 if (!shader->appendStages(pipeline, dst.colorSpace(), alloc, ctm, paint)) { 71 SkCreateRasterPipelineBlitter(const SkPixmap& dst, const SkPaint& paint, const SkMatrix& ctm, SkArenaAlloc* alloc) argument 88 Create(const SkPixmap& dst, const SkPaint& paint, const SkMatrix& ctm, SkArenaAlloc* alloc) argument
|
H A D | SkImageFilter.cpp | 62 const SkMatrix& ctm, 68 ctm.mapRect(&devCropR, fRect); 208 SkImageFilterCacheKey key(fUniqueID, context.ctm(), context.clipBounds(), srcGenID, srcSubset); 236 SkIRect SkImageFilter::filterBounds(const SkIRect& src, const SkMatrix& ctm, argument 239 SkIRect bounds = this->onFilterNodeBounds(src, ctm, direction); 240 return this->onFilterBounds(bounds, ctm, direction); 242 SkIRect bounds = this->onFilterBounds(src, ctm, direction); 243 bounds = this->onFilterNodeBounds(bounds, ctm, direction); 245 this->getCropRect().applyTo(bounds, ctm, this->affectsTransparentBlack(), &dst); 339 SkIRect temp = this->onFilterNodeBounds(srcBounds, ctx.ctm(), kForward_MapDirectio 61 applyTo(const SkIRect& imageBounds, const SkMatrix& ctm, bool embiggen, SkIRect* cropped) const argument 441 onFilterBounds(const SkIRect& src, const SkMatrix& ctm, MapDirection direction) const argument [all...] |
H A D | SkMaskFilter.cpp | 312 const SkMatrix& ctm, 340 const SkMatrix& ctm, 310 canFilterMaskGPU(const SkRRect& devRRect, const SkIRect& clipBounds, const SkMatrix& ctm, SkRect* maskRect) const argument 338 filterMaskGPU(GrContext*, sk_sp<GrTextureProxy> srcProxy, const SkMatrix& ctm, const SkIRect& maskRect) const argument
|
/external/skia/gm/ |
H A D | lightingshader.cpp | 99 const SkMatrix& ctm = canvas->getTotalMatrix(); local 107 ctm);
|
H A D | pictureshader.cpp | 66 SkMatrix ctm, localMatrix; variable 67 ctm.setTranslate(fSceneSize * 2.1f, fSceneSize * 13.8f); 68 ctm.preScale(-1, -1); 70 this->drawScene(canvas, ctm, localMatrix, 0); 72 ctm.setTranslate(fSceneSize * 2.4f, fSceneSize * 12.8f); 74 this->drawScene(canvas, ctm, localMatrix, 0); 76 ctm.setTranslate(fSceneSize * 4.8f, fSceneSize * 12.3f); 77 ctm.preScale(2, 2); 78 this->drawScene(canvas, ctm, localMatrix, 0); 80 ctm 91 SkMatrix ctm, localMatrix; local [all...] |
H A D | lightingshader2.cpp | 112 const SkMatrix& ctm = canvas->getTotalMatrix(); local 119 normalSource = SkNormalSource::MakeFromNormalMap(fNormalMapShader, ctm);
|
/external/skia/include/core/ |
H A D | SkImageFilter.h | 55 Context(const SkMatrix& ctm, const SkIRect& clipBounds, SkImageFilterCache* cache, argument 57 : fCTM(ctm) 63 const SkMatrix& ctm() const { return fCTM; } function in class:SkImageFilter::Context 149 SkIRect filterBounds(const SkIRect& src, const SkMatrix& ctm,
|
/external/skia/src/effects/shadows/ |
H A D | SkAmbientShadowMaskFilter.cpp | 35 const SkMatrix& ctm, 54 const SkMatrix& ctm, 132 const SkMatrix& ctm, 257 const SkMatrix& ctm, 130 canFilterMaskGPU(const SkRRect& devRRect, const SkIRect& clipBounds, const SkMatrix& ctm, SkRect* maskRect) const argument 255 filterMaskGPU(GrContext*, sk_sp<GrTextureProxy> srcProxy, const SkMatrix& ctm, const SkIRect& maskRect) const argument
|
/external/skia/src/gpu/ops/ |
H A D | GrSmallPathRenderer.h | 41 Key(const GrShape& shape, const SkMatrix& ctm) { this->set(shape, ctm); } argument 60 void set(const GrShape& shape, const SkMatrix& ctm) { argument 72 SkScalar sx = ctm.get(SkMatrix::kMScaleX); 73 SkScalar sy = ctm.get(SkMatrix::kMScaleY); 74 SkScalar kx = ctm.get(SkMatrix::kMSkewX); 75 SkScalar ky = ctm.get(SkMatrix::kMSkewY); 76 SkScalar tx = ctm.get(SkMatrix::kMTransX); 77 SkScalar ty = ctm.get(SkMatrix::kMTransY);
|
/external/skia/src/image/ |
H A D | SkImageShader.cpp | 214 const SkMatrix& ctm, const SkPaint& paint, 216 auto matrix = SkMatrix::Concat(ctm, this->getLocalMatrix()); 213 onAppendStages(SkRasterPipeline* p, SkColorSpace* dst, SkArenaAlloc* scratch, const SkMatrix& ctm, const SkPaint& paint, const SkMatrix* localM) const argument
|
/external/harfbuzz_ng/util/ |
H A D | helper-cairo.cc | 122 cairo_matrix_t ctm, font_matrix; local 125 cairo_matrix_init_identity (&ctm); 135 &ctm,
|
/external/skia/samplecode/ |
H A D | SampleBigGradient.cpp | 107 static CGAffineTransform matrix_to_transform(CGContextRef cg, const SkMatrix& ctm) { argument 111 matrix.preConcat(ctm); 140 void updateHandle(Handle hndl, const SkMatrix& ctm, const SkIRect& clip) override { 146 CGContextConcatCTM(cg, matrix_to_transform(cg, ctm)); 235 void updateHandle(Handle handle, const SkMatrix& ctm, const SkIRect& clip_bounds) override { 239 xf.eM11 = ctm[SkMatrix::kMScaleX]; 240 xf.eM21 = ctm[SkMatrix::kMSkewX]; 241 xf.eDx = ctm[SkMatrix::kMTransX]; 242 xf.eM12 = ctm[SkMatrix::kMSkewY]; 243 xf.eM22 = ctm[SkMatri [all...] |