/external/skia/gm/ |
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 | reveal.cpp | 34 virtual bool asDevSpaceRRect(const SkMatrix& ctm, SkRRect* rr) const = 0; 50 bool asDevSpaceRRect(const SkMatrix& ctm, SkRRect* rr) const override { 51 if (!ctm.isSimilarity()) { // the corners have to remain circular 56 if (!ctm.getMinMaxScales(scales)) { 63 ctm.mapRect(&devRect, fRRect.rect()); 110 bool asDevSpaceRRect(const SkMatrix& ctm, SkRRect* rr) const override { 166 bool asDevSpaceRRect(const SkMatrix& ctm, SkRRect* rr) const override { 167 if (!ctm.isSimilarity()) { // circles have to remain circles 172 ctm.mapRect(&devRect, fRRect.rect()); 214 bool asDevSpaceRRect(const SkMatrix& ctm, SkRRec [all...] |
/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/skia/src/utils/ |
H A D | SkShadowTessellator.h | 28 sk_sp<SkVertices> MakeAmbient(const SkPath& path, const SkMatrix& ctm, 36 sk_sp<SkVertices> MakeSpot(const SkPath& path, const SkMatrix& ctm, HeightFunc heightFunc,
|
H A D | SkShadowTessellator.cpp | 55 bool setTransformedHeightFunc(const SkMatrix& ctm); 265 bool SkBaseShadowTessellator::setTransformedHeightFunc(const SkMatrix& ctm) { argument 266 if (!ctm.hasPerspective()) { 272 if (!ctm.invert(&ctmInverse)) { 293 fPartialDeterminants[0] = ctm[SkMatrix::kMSkewY] * ctm[SkMatrix::kMPersp1] - 294 ctm[SkMatrix::kMScaleY] * ctm[SkMatrix::kMPersp0]; 295 fPartialDeterminants[1] = ctm[SkMatrix::kMPersp0] * ctm[SkMatri 353 SkAmbientShadowTessellator(const SkPath& path, const SkMatrix& ctm, SkShadowTessellator::HeightFunc heightFunc, SkScalar ambientAlpha, bool transparent) argument 694 SkSpotShadowTessellator(const SkPath& path, const SkMatrix& ctm, SkShadowTessellator::HeightFunc heightFunc, const SkPoint3& lightPos, SkScalar lightRadius, SkScalar spotAlpha, bool transparent) argument 908 computeClipAndPathPolygons(const SkPath& path, const SkMatrix& ctm, const SkMatrix& shadowTransform) argument 1280 MakeAmbient(const SkPath& path, const SkMatrix& ctm, HeightFunc heightFunc, SkScalar ambientAlpha, bool transparent) argument 1287 MakeSpot(const SkPath& path, const SkMatrix& ctm, HeightFunc heightFunc, const SkPoint3& lightPos, SkScalar lightRadius, SkScalar spotAlpha, bool transparent) argument [all...] |
/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/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 | 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 | SkPictureImageFilter.cpp | 113 ctx.ctm().mapRect(&floatBounds, fCropRect); 132 0 == (ctx.ctm().getType() & ~SkMatrix::kTranslate_Mask)) { 147 canvas->concat(ctx.ctm()); 156 if (!ctx.ctm().invert(&inverseCtm)) { 190 canvas->concat(ctx.ctm());
|
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);
|
/external/skia/include/core/ |
H A D | SkMaskFilter.h | 81 virtual bool asFragmentProcessor(GrFragmentProcessor**, GrTexture*, const SkMatrix& ctm) const; 111 const SkMatrix& ctm, 147 const SkMatrix& ctm, 233 bool filterPath(const SkPath& devPath, const SkMatrix& ctm, const SkRasterClip&, SkBlitter*, 240 bool filterRRect(const SkRRect& devRRect, const SkMatrix& ctm, const SkRasterClip&,
|
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/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...] |
/external/skia/src/core/ |
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 | SkDevice.h | 100 void restore(const SkMatrix& ctm) { argument 102 this->setGlobalCTM(ctm); 121 const SkMatrix& ctm() const { return fCTM; } function in class:SkBaseDevice 122 void setCTM(const SkMatrix& ctm) { argument 123 fCTM = ctm; 125 void setGlobalCTM(const SkMatrix& ctm); 365 void setOrigin(const SkMatrix& ctm, int x, int y); 389 SkAutoDeviceCTMRestore(SkBaseDevice* device, const SkMatrix& ctm) argument 391 , fPrevCTM(device->ctm()) 393 fDevice->setCTM(ctm); [all...] |
H A D | SkClipStackDevice.cpp | 31 fClipStack.clipRect(rect, this->ctm(), op, aa); 35 fClipStack.clipRRect(rrect, this->ctm(), op, aa); 39 fClipStack.clipPath(path, this->ctm(), op, aa);
|
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 | SkNormalSource.h | 52 @param ctm the current canvas' total matrix, used to rotate normals when necessary. 65 static sk_sp<SkNormalSource> MakeFromNormalMap(sk_sp<SkShader> map, const SkMatrix& ctm);
|
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 | SkColorShader.h | 70 const SkMatrix& ctm, const SkPaint&, const SkMatrix*) const override; 125 const SkMatrix& ctm, const SkPaint&, const SkMatrix*) const override;
|
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 | SkLocalMatrixImageFilter.cpp | 48 Context localCtx(SkMatrix::Concat(ctx.ctm(), fLocalM), ctx.clipBounds(), ctx.cache(),
|
/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/image/ |
H A D | SkImageShader.h | 40 const SkMatrix& ctm, const SkPaint&, const SkMatrix*) const override;
|
/external/skia/src/gpu/ |
H A D | SkGpuDevice.cpp | 184 SkMatrix matrix = this->ctm(); 283 if (!SkPaintToGrPaint(this->context(), fRenderTargetContext.get(), paint, this->ctm(), 288 fRenderTargetContext->drawPaint(this->clip(), std::move(grPaint), this->ctm()); 339 if (!SkPaintToGrPaint(this->context(), fRenderTargetContext.get(), paint, this->ctm(), 348 GrBoolToAA(paint.isAntiAlias()), this->ctm(), path, style); 353 bool isHairline = (0 == width) || (1 == width && this->ctm().getMinMaxScales(scales) && 359 (paint.isAntiAlias() && needs_antialiasing(mode, count, pts, this->ctm()))) 364 draw.fMatrix = &this->ctm(); 372 const SkMatrix* viewMatrix = &this->ctm(); 417 this->clip(), path, paint, this->ctm(), nullpt [all...] |