Searched refs:ctm (Results 1 - 25 of 82) sorted by relevance

1234

/external/skia/gm/
H A Dpictureshader.cpp66 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 Dreveal.cpp34 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 DShadowUtilsTest.cpp15 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 DSkShadowTessellator.h28 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 DSkShadowTessellator.cpp55 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 DGrSmallPathRenderer.h41 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 DSkComposeImageFilter.cpp40 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 DSkDropShadowImageFilter.cpp91 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 DSkPictureImageFilter.cpp113 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 DSkOffsetImageFilter.cpp38 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 DSkMaskFilter.h81 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 DSkImageFilter.h55 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 DSampleBigGradient.cpp107 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 DSkMatrixImageFilter.cpp58 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 DSkDevice.h100 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 DSkClipStackDevice.cpp31 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 DSkImageFilter.cpp62 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 DSkNormalSource.h52 @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 DSkRasterClipStack.h101 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 DSkColorShader.h70 const SkMatrix& ctm, const SkPaint&, const SkMatrix*) const override;
125 const SkMatrix& ctm, const SkPaint&, const SkMatrix*) const override;
H A DSkLocalMatrixShader.cpp68 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 DSkLocalMatrixImageFilter.cpp48 Context localCtx(SkMatrix::Concat(ctx.ctm(), fLocalM), ctx.clipBounds(), ctx.cache(),
/external/pdfium/core/fpdfapi/render/
H A Dcpdf_devicebuffer.cpp46 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 DSkImageShader.h40 const SkMatrix& ctm, const SkPaint&, const SkMatrix*) const override;
/external/skia/src/gpu/
H A DSkGpuDevice.cpp184 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...]

Completed in 3417 milliseconds

1234