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

1234

/external/chromium_org/third_party/skia/gm/
H A Dpictureshader.cpp69 SkMatrix ctm, localMatrix; local
71 ctm.setTranslate(pos.x(), pos.y());
72 ctm.preScale(scale, scale);
74 this->drawScene(canvas, ctm, localMatrix, tileMode);
76 ctm.setTranslate(pos.x(), pos.y() + fSceneSize * 1.2f * scale);
77 ctm.preScale(scale, scale);
80 this->drawScene(canvas, ctm, localMatrix, tileMode);
82 ctm.setTranslate(pos.x(), pos.y() + fSceneSize * 2.4f * scale);
83 ctm.preScale(scale, scale);
86 this->drawScene(canvas, ctm, localMatri
[all...]
/external/skia/gm/
H A Dpictureshader.cpp71 SkMatrix ctm, localMatrix; local
73 ctm.setTranslate(pos.x(), pos.y());
74 ctm.preScale(scale, scale);
76 this->drawScene(canvas, ctm, localMatrix, tileMode);
78 ctm.setTranslate(pos.x(), pos.y() + fSceneSize * 1.2f * scale);
79 ctm.preScale(scale, scale);
82 this->drawScene(canvas, ctm, localMatrix, tileMode);
84 ctm.setTranslate(pos.x(), pos.y() + fSceneSize * 2.4f * scale);
85 ctm.preScale(scale, scale);
88 this->drawScene(canvas, ctm, localMatri
[all...]
/external/skia/src/effects/
H A DSkComposeImageFilter.cpp38 const SkMatrix& ctm,
48 return (outer ? outer : inner)->filterBounds(src, ctm, dst);
52 return inner->filterBounds(src, ctm, &tmp) &&
53 outer->filterBounds(tmp, ctm, dst);
37 onFilterBounds(const SkIRect& src, const SkMatrix& ctm, SkIRect* dst) const argument
H A DSkMatrixImageFilter.cpp64 if (!ctx.ctm().invert(&matrix)) {
68 matrix.postConcat(ctx.ctm());
104 bool SkMatrixImageFilter::onFilterBounds(const SkIRect& src, const SkMatrix& ctm, argument
111 if (!ctm.invert(&matrix)) {
115 matrix.postConcat(ctm);
120 if (getInput(0) && !getInput(0)->filterBounds(bounds, ctm, &bounds)) {
H A DSkTileImageFilter.cpp30 ctx.ctm().mapRect(&dstRect, fDstRect);
40 ctx.ctm().mapRect(&srcRect, fSrcRect);
78 bool SkTileImageFilter::onFilterBounds(const SkIRect& src, const SkMatrix& ctm, argument
81 ctm.mapRect(&srcRect, fSrcRect);
H A DSkOffsetImageFilter.cpp34 ctx.ctm().mapVectors(&vec, &fOffset, 1);
59 ctx.ctm().mapVectors(&vec, &fOffset, 1);
79 bool SkOffsetImageFilter::onFilterBounds(const SkIRect& src, const SkMatrix& ctm, argument
82 ctm.mapVectors(&vec, &fOffset, 1);
88 return getInput(0)->filterBounds(bounds, ctm, dst);
H A DSkPictureImageFilter.cpp70 ctx.ctm().mapRect(&floatBounds, fCropRect);
87 canvas.concat(ctx.ctm());
96 bool SkPictureImageFilter::onFilterBounds(const SkIRect& src, const SkMatrix& ctm, argument
H A DSkDropShadowImageFilter.cpp85 ctx.ctm().mapVectors(&sigma, 1);
96 ctx.ctm().mapVectors(&offsetVec, 1);
121 bool SkDropShadowImageFilter::onFilterBounds(const SkIRect& src, const SkMatrix& ctm, argument
124 if (getInput(0) && !getInput(0)->filterBounds(src, ctm, &bounds)) {
128 ctm.mapVectors(&offsetVec, 1);
132 ctm.mapVectors(&sigma, 1);
H A DSkBitmapSource.cpp51 ctx.ctm().mapRect(&dstRect, fDstRect);
89 bool SkBitmapSource::onFilterBounds(const SkIRect& src, const SkMatrix& ctm, argument
/external/chromium_org/ash/touch/
H A Dtouch_transformer_controller.cc79 gfx::Transform ctm; local
83 return ctm;
86 ctm.Scale(width / fb_size.width(), height / fb_size.height());
87 return ctm;
126 gfx::Transform ctm; local
128 return ctm;
146 return ctm;
155 ctm.Translate(0.0, (1.0 - mirror_ar / native_ar) * 0.5 * mirror_height);
156 ctm.Scale(1.0, mirror_ar / native_ar);
157 return ctm;
[all...]
/external/chromium_org/third_party/WebKit/Source/core/paint/
H A DBoxDecorationData.cpp32 AffineTransform ctm = context->getCTM();
33 FloatSize contextScaling(static_cast<float>(ctm.xScale()), static_cast<float>(ctm.yScale()));
/external/chromium_org/third_party/skia/src/effects/
H A DSkComposeImageFilter.cpp30 const SkMatrix& ctm,
36 return inner->filterBounds(src, ctm, &tmp) && outer->filterBounds(tmp, ctm, dst);
29 onFilterBounds(const SkIRect& src, const SkMatrix& ctm, SkIRect* dst) const argument
H A DSkMatrixImageFilter.cpp76 if (!ctx.ctm().invert(&matrix)) {
80 matrix.postConcat(ctx.ctm());
116 bool SkMatrixImageFilter::onFilterBounds(const SkIRect& src, const SkMatrix& ctm, argument
123 if (!ctm.invert(&matrix)) {
127 matrix.postConcat(ctm);
132 if (getInput(0) && !getInput(0)->filterBounds(bounds, ctm, &bounds)) {
H A DSkOffsetImageFilter.cpp34 ctx.ctm().mapVectors(&vec, &fOffset, 1);
59 ctx.ctm().mapVectors(&vec, &fOffset, 1);
79 bool SkOffsetImageFilter::onFilterBounds(const SkIRect& src, const SkMatrix& ctm, argument
82 ctm.mapVectors(&vec, &fOffset, 1);
88 return getInput(0)->filterBounds(bounds, ctm, dst);
H A DSkPictureImageFilter.cpp85 ctx.ctm().mapRect(&floatBounds, fCropRect);
105 canvas.concat(ctx.ctm());
114 bool SkPictureImageFilter::onFilterBounds(const SkIRect& src, const SkMatrix& ctm, argument
H A DSkTileImageFilter.cpp38 ctx.ctm().mapRect(&dstRect, fDstRect);
48 ctx.ctm().mapRect(&srcRect, fSrcRect);
86 bool SkTileImageFilter::onFilterBounds(const SkIRect& src, const SkMatrix& ctm, argument
89 ctm.mapRect(&srcRect, fSrcRect);
H A DSkDropShadowImageFilter.cpp86 ctx.ctm().mapVectors(&sigma, 1);
97 ctx.ctm().mapVectors(&offsetVec, 1);
122 bool SkDropShadowImageFilter::onFilterBounds(const SkIRect& src, const SkMatrix& ctm, argument
126 ctm.mapVectors(&offsetVec, 1);
130 ctm.mapVectors(&sigma, 1);
134 if (getInput(0) && !getInput(0)->filterBounds(bounds, ctm, &bounds)) {
H A DSkBitmapSource.cpp63 ctx.ctm().mapRect(&dstRect, fDstRect);
101 bool SkBitmapSource::onFilterBounds(const SkIRect& src, const SkMatrix& ctm, argument
/external/chromium_org/third_party/skia/include/core/
H A DSkMaskFilter.h75 virtual bool asFragmentProcessor(GrFragmentProcessor**, GrTexture*, const SkMatrix& ctm) const;
91 const SkMatrix& ctm,
120 const SkMatrix& ctm,
207 bool filterPath(const SkPath& devPath, const SkMatrix& ctm, const SkRasterClip&, SkBlitter*,
214 bool filterRRect(const SkRRect& devRRect, const SkMatrix& ctm, const SkRasterClip&,
/external/skia/include/core/
H A DSkMaskFilter.h77 const SkMatrix& ctm) const;
93 const SkMatrix& ctm,
122 const SkMatrix& ctm,
207 bool filterPath(const SkPath& devPath, const SkMatrix& ctm, const SkRasterClip&, SkBlitter*,
214 bool filterRRect(const SkRRect& devRRect, const SkMatrix& ctm, const SkRasterClip&,
H A DSkImageFilter.h64 Context(const SkMatrix& ctm, const SkIRect& clipBounds, Cache* cache) : argument
65 fCTM(ctm), fClipBounds(clipBounds), fCache(cache) {
67 const SkMatrix& ctm() const { return fCTM; } function in class:SkImageFilter::Context
110 bool filterBounds(const SkIRect& src, const SkMatrix& ctm, SkIRect* dst) const;
/external/chromium_org/third_party/skia/src/gpu/
H A DGrLayerCache.h54 Key(uint32_t pictureID, int start, int stop, const SkIPoint& offset, const SkMatrix& ctm) argument
59 , fCTM(ctm) {
80 const SkMatrix& ctm() const { return fCTM; } function in struct:GrCachedLayer::Key
101 const SkIPoint& offset, const SkMatrix& ctm,
103 : fKey(pictureID, start, stop, offset, ctm)
121 const SkMatrix& ctm() const { return fKey.ctm(); } function in struct:GrCachedLayer
191 const SkIPoint& offset, const SkMatrix& ctm);
195 const SkMatrix& ctm,
250 const SkIPoint& offset, const SkMatrix& ctm,
100 GrCachedLayer(uint32_t pictureID, int start, int stop, const SkIPoint& offset, const SkMatrix& ctm, const SkPaint* paint) argument
[all...]
/external/chromium_org/third_party/WebKit/Source/core/svg/
H A DSVGGraphicsElement.cpp48 AffineTransform ctm = getCTM(AllowStyleUpdate); local
56 ctm = targetCTM.inverse() * ctm;
59 return SVGMatrixTearOff::create(ctm);
76 AffineTransform ctm; local
84 ctm = toSVGElement(currentElement)->localCoordinateSpaceTransform(mode).multiply(ctm);
101 return ctm;
/external/chromium_org/third_party/WebKit/Source/core/rendering/svg/
H A DRenderSVGResourceFilter.cpp171 AffineTransform ctm = context->getCTM(); local
172 if (ctm.b() || ctm.c()) {
174 scaleAndTranslate.translate(ctm.e(), ctm.f());
175 scaleAndTranslate.scale(ctm.xScale(), ctm.yScale());
178 shearAndRotate.multiply(ctm);
H A DSVGRenderingContext.cpp200 AffineTransform ctm; local
203 calculateDeviceSpaceTransformation(renderer, ctm);
204 return narrowPrecisionToFloat(sqrt((pow(ctm.xScale(), 2) + pow(ctm.yScale(), 2)) / 2));

Completed in 977 milliseconds

1234