/external/chromium_org/third_party/skia/gm/ |
pictureshader.cpp | 69 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, localMatrix, tileMode) [all...] |
/external/chromium_org/third_party/skia/include/core/ |
SkMaskFilter.h | 55 @param matrix the CTM 75 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&,
|
SkImageFilter.h | 52 // This cache maps from (filter's unique ID + CTM + clipBounds + src bitmap generation ID) to 66 Context(const SkMatrix& ctm, const SkIRect& clipBounds, Cache* cache) : 67 fCTM(ctm), fClipBounds(clipBounds), fCache(cache) { 69 const SkMatrix& ctm() const { return fCTM; } function in class:SkImageFilter::Context 112 bool filterBounds(const SkIRect& src, const SkMatrix& ctm, SkIRect* dst) const; 263 // coordinates (first parameter), and the CTM, compute (conservatively)
|
/external/chromium_org/third_party/WebKit/Source/core/paint/ |
BoxDecorationData.cpp | 32 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/ |
SkComposeImageFilter.cpp | 30 const SkMatrix& ctm, 36 return inner->filterBounds(src, ctm, &tmp) && outer->filterBounds(tmp, ctm, dst);
|
SkMatrixImageFilter.cpp | 76 if (!ctx.ctm().invert(&matrix)) { 80 matrix.postConcat(ctx.ctm()); 116 bool SkMatrixImageFilter::onFilterBounds(const SkIRect& src, const SkMatrix& ctm, 123 if (!ctm.invert(&matrix)) { 127 matrix.postConcat(ctm); 132 if (getInput(0) && !getInput(0)->filterBounds(bounds, ctm, &bounds)) {
|
SkOffsetImageFilter.cpp | 34 ctx.ctm().mapVectors(&vec, &fOffset, 1); 59 ctx.ctm().mapVectors(&vec, &fOffset, 1); 79 bool SkOffsetImageFilter::onFilterBounds(const SkIRect& src, const SkMatrix& ctm, 82 ctm.mapVectors(&vec, &fOffset, 1); 88 return getInput(0)->filterBounds(bounds, ctm, dst);
|
SkPictureImageFilter.cpp | 85 ctx.ctm().mapRect(&floatBounds, fCropRect); 105 canvas.concat(ctx.ctm()); 114 bool SkPictureImageFilter::onFilterBounds(const SkIRect& src, const SkMatrix& ctm,
|
SkTileImageFilter.cpp | 38 ctx.ctm().mapRect(&dstRect, fDstRect); 48 ctx.ctm().mapRect(&srcRect, fSrcRect); 86 bool SkTileImageFilter::onFilterBounds(const SkIRect& src, const SkMatrix& ctm, 89 ctm.mapRect(&srcRect, fSrcRect);
|
SkDropShadowImageFilter.cpp | 86 ctx.ctm().mapVectors(&sigma, 1); 97 ctx.ctm().mapVectors(&offsetVec, 1); 122 bool SkDropShadowImageFilter::onFilterBounds(const SkIRect& src, const SkMatrix& ctm, 126 ctm.mapVectors(&offsetVec, 1); 130 ctm.mapVectors(&sigma, 1); 134 if (getInput(0) && !getInput(0)->filterBounds(bounds, ctm, &bounds)) {
|
SkBitmapSource.cpp | 63 ctx.ctm().mapRect(&dstRect, fDstRect); 101 bool SkBitmapSource::onFilterBounds(const SkIRect& src, const SkMatrix& ctm,
|
SkBlurImageFilter.cpp | 26 static SkVector mapSigma(const SkSize& localSigma, const SkMatrix& ctm) { 28 ctm.mapVectors(&sigma, 1); 188 SkVector sigma = mapSigma(fSigma, ctx.ctm()); 258 bool SkBlurImageFilter::onFilterBounds(const SkIRect& src, const SkMatrix& ctm, 261 SkVector sigma = mapSigma(fSigma, ctm); 264 if (getInput(0) && !getInput(0)->filterBounds(bounds, ctm, &bounds)) { 284 SkVector sigma = mapSigma(fSigma, ctx.ctm());
|
/external/chromium_org/ash/touch/ |
touch_transformer_controller.cc | 79 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/skia/src/gpu/ |
GrLayerCache.h | 54 Key(uint32_t pictureID, int start, int stop, const SkIPoint& offset, const SkMatrix& ctm) 59 , fCTM(ctm) { 80 const SkMatrix& ctm() const { return fCTM; } function in struct:GrCachedLayer::Key 90 // The CTM applied to this layer in the picture 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, [all...] |
GrLayerCache.cpp | 123 const SkMatrix& ctm, 127 GrCachedLayer* layer = SkNEW_ARGS(GrCachedLayer, (pictureID, start, stop, offset, ctm, paint)); 135 const SkMatrix& ctm) { 137 return fLayerHash.find(GrCachedLayer::Key(pictureID, start, stop, offset, ctm)); 143 const SkMatrix& ctm, 146 GrCachedLayer* layer = fLayerHash.find(GrCachedLayer::Key(pictureID, start, stop, offset, ctm)); 148 layer = this->createLayer(pictureID, start, stop, offset, ctm, paint);
|
GrDistanceFieldTextContext.cpp | 127 const SkMatrix& ctm = fContext->getMatrix(); local 131 flags |= ctm.isSimilarity() ? kSimilarity_DistanceFieldEffectFlag : 0; 133 flags |= fUseLCDText && ctm.rectStaysRect() ? 317 SkMatrix ctm; local 318 ctm.setScale(fTextRatio, fTextRatio); 319 ctm.postTranslate(sx, sy); 321 am.setPreConcat(fContext, ctm, &tmpPaint); 451 const SkMatrix& ctm = fContext->getMatrix(); local 454 SkASSERT(!ctm.hasPerspective()); 455 SkScalar maxScale = ctm.getMaxScale() [all...] |
/external/chromium_org/third_party/WebKit/Source/core/svg/ |
SVGGraphicsElement.cpp | 48 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;
|
SVGSVGElement.cpp | 357 AffineTransform ctm = toSVGGraphicsElement(element).computeCTM(AncestorScope, DisallowStyleUpdate, this); 358 FloatRect mappedRepaintRect = ctm.mapRect(renderer->paintInvalidationRectInLocalCoordinates()); 676 AffineTransform ctm = SVGFitToViewBox::viewBoxToViewTransform(currentViewBoxRect(), m_viewSpec->preserveAspectRatio()->currentValue(), viewWidth, viewHeight); 679 return ctm; 683 ctm *= transform; 685 return ctm;
|
/external/chromium_org/third_party/skia/include/effects/ |
SkBitmapSource.h | 37 virtual bool onFilterBounds(const SkIRect& src, const SkMatrix& ctm, SkIRect* dst) const SK_OVERRIDE;
|
SkMorphologyImageFilter.h | 19 virtual bool onFilterBounds(const SkIRect& src, const SkMatrix& ctm, SkIRect* dst) const SK_OVERRIDE; 44 const Context& ctm, SkBitmap* result,
|
/external/chromium_org/third_party/WebKit/Source/core/rendering/svg/ |
RenderSVGResourceFilter.cpp | 161 // Scale the CTM so the primitive is drawn to filterRes. 168 // If the CTM contains rotation or shearing, apply the filter to 171 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); [all...] |
SVGRenderingContext.cpp | 200 AffineTransform ctm; local 203 calculateDeviceSpaceTransformation(renderer, ctm); 204 return narrowPrecisionToFloat(sqrt((pow(ctm.xScale(), 2) + pow(ctm.yScale(), 2)) / 2));
|
/external/chromium_org/third_party/WebKit/Source/core/html/canvas/ |
HitRegion.cpp | 96 void HitRegionManager::removeHitRegionsInRect(const FloatRect& rect, const AffineTransform& ctm) 100 clearArea.transform(ctm);
|
/external/chromium_org/third_party/skia/src/core/ |
SkImageFilter.cpp | 175 Cache::Key key(fUniqueID, context.ctm(), context.clipBounds(), srcGenID); 195 bool SkImageFilter::filterBounds(const SkIRect& src, const SkMatrix& ctm, 199 return this->onFilterBounds(src, ctm, dst); 270 SkMatrix matrix(ctx.ctm()); 292 ctx.ctm().mapRect(&cropRect, fCropRect.rect()); 313 ctx.ctm().mapRect(&cropRect, fCropRect.rect()); 342 bool SkImageFilter::onFilterBounds(const SkIRect& src, const SkMatrix& ctm, 352 if (filter && !filter->filterBounds(src, ctm, &rect)) {
|
/external/chromium_org/third_party/WebKit/Source/platform/graphics/skia/ |
NativeImageSkia.cpp | 212 AffineTransform ctm = context->getCTM(); local 213 SkScalar ctmScaleX = ctm.xScale(); 214 SkScalar ctmScaleY = ctm.yScale(); 261 // CTM * localMatrix to have identity scale. Since we 262 // can't modify CTM (or the rectangle will be drawn in the wrong 264 // CTM scale.
|