/external/skia/src/core/ |
D | SkMatrixProvider.h | 16 SkMatrixProvider(const SkMatrix& localToDevice) in SkMatrixProvider() argument 17 : fLocalToDevice(localToDevice) in SkMatrixProvider() 18 , fLocalToDevice33(localToDevice) {} in SkMatrixProvider() 20 SkMatrixProvider(const SkM44& localToDevice) in SkMatrixProvider() argument 21 : fLocalToDevice(localToDevice) in SkMatrixProvider() 22 , fLocalToDevice33(localToDevice.asM33()) {} in SkMatrixProvider() 28 const SkMatrix& localToDevice() const { return fLocalToDevice33; } in localToDevice() function 44 SkOverrideDeviceMatrixProvider(const SkMatrixProvider& parent, const SkMatrix& localToDevice) in SkOverrideDeviceMatrixProvider() argument 45 : SkMatrixProvider(localToDevice) in SkOverrideDeviceMatrixProvider() 105 SkSimpleMatrixProvider(const SkMatrix& localToDevice) in SkSimpleMatrixProvider() argument [all …]
|
D | SkDevice.h | 160 void restoreLocal(const SkM44& localToDevice) { in restoreLocal() argument 162 this->setLocalToDevice(localToDevice); in restoreLocal() 174 sh = as_SB(sh)->makeWithCTM(this->localToDevice()); in clipShader() 193 void setLocalToDevice(const SkM44& localToDevice) { in setLocalToDevice() argument 194 fLocalToDevice = localToDevice; in setLocalToDevice() 326 virtual void drawSpecial(SkSpecialImage*, const SkMatrix& localToDevice, 442 void setDeviceCoordinateSystem(const SkMatrix& deviceToGlobal, const SkM44& localToDevice, 566 SkAutoDeviceTransformRestore(SkBaseDevice* device, const SkMatrix& localToDevice) in SkAutoDeviceTransformRestore() argument 568 , fPrevLocalToDevice(device->localToDevice()) in SkAutoDeviceTransformRestore() 570 fDevice->setLocalToDevice(SkM44(localToDevice)); in SkAutoDeviceTransformRestore()
|
D | SkDevice.cpp | 45 const SkM44& localToDevice, in setDeviceCoordinateSystem() argument 52 fLocalToDevice = localToDevice; in setDeviceCoordinateSystem() 116 const SkMatrix& localToDevice = this->localToDevice(); in drawRegion() local 117 bool isNonTranslate = localToDevice.getType() & ~(SkMatrix::kTranslate_Mask); in drawRegion() 120 bool antiAlias = paint.isAntiAlias() && (!is_int(localToDevice.getTranslateX()) || in drawRegion() 121 !is_int(localToDevice.getTranslateY())); in drawRegion() 158 SkISize lod = SkPatchUtils::GetLevelOfDetail(cubics, &this->localToDevice()); in drawPatch() 436 if (!this->localToDevice().isFinite()) { in drawGlyphRunList() 523 this->writableClip().opRect(rect, this->localToDevice(), this->bounds(), (SkRegion::Op) op, aa); in onClipRect() 527 this->writableClip().opRRect(rrect, this->localToDevice(), this->bounds(), in onClipRRect() [all …]
|
D | SkClipStackDevice.cpp | 31 fClipStack.clipRect(rect, this->localToDevice(), op, aa); in onClipRect() 35 fClipStack.clipRRect(rrect, this->localToDevice(), op, aa); in onClipRRect() 39 fClipStack.clipPath(path, this->localToDevice(), op, aa); in onClipPath()
|
D | SkDraw.cpp | 62 if (!fMatrixProvider->localToDevice().invert(&inverse)) { in computeConservativeLocalClipBounds() 360 SkMatrix ctm = fMatrixProvider->localToDevice(); in drawPoints() 623 SkMatrix ctm = fMatrixProvider->localToDevice(); in drawRect() 710 ->filterMask(&dstM, srcM, fMatrixProvider->localToDevice(), nullptr)) { in drawDevMask() 772 SkMatrix ctm = fMatrixProvider->localToDevice(); in drawRRect() 835 ->filterPath(devPath, fMatrixProvider->localToDevice(), *fRC, blitter, style)) { in drawDevPath() 923 if (SkDrawTreatAsHairline(origPaint, matrixProvider->localToDevice(), &coverage)) { in drawPath() 952 ComputeResScaleForStroking(fMatrixProvider->localToDevice())); in drawPath() 960 pathPtr->transform(matrixProvider->localToDevice(), devPathPtr); in drawPath() 980 SkMatrix ctm = fMatrixProvider->localToDevice(); in drawBitmapAsMask() [all …]
|
D | SkBitmapDevice.cpp | 94 fSrcBounds = dev->localToDevice().mapRect(*bounds).roundOut(); in SkDrawTiler() 594 const SkMatrix& localToDevice, in drawSpecial() argument 604 SkSimpleMatrixProvider matrixProvider(localToDevice); in drawSpecial() 651 fRCStack.clipRect(this->localToDevice(), rect, op, aa); in onClipRect() 655 fRCStack.clipRRect(this->localToDevice(), rrect, op, aa); in onClipRRect() 659 fRCStack.clipPath(this->localToDevice(), path, op, aa); in onClipPath()
|
D | SkDraw_text.cpp | 137 glyphPainter->drawForBitmapDevice(glyphRunList, paint, fMatrixProvider->localToDevice(), this); in drawGlyphRunList()
|
D | SkDraw_atlas.cpp | 119 mx.postConcat(fMatrixProvider->localToDevice()); in drawAtlas()
|
D | SkDraw_vertices.cpp | 316 SkMatrix ctm = fMatrixProvider->localToDevice(); in draw_fixed_vertices() 428 SkMatrix ctm = fMatrixProvider->localToDevice(); in drawVertices()
|
/external/skia/src/gpu/ |
D | SkGpuDevice.cpp | 261 fClip.clipPath(this->localToDevice(), path, GrAA(aa), op); 334 fSurfaceDrawContext->drawPaint(this->clip(), std::move(grPaint), this->localToDevice()); 371 fSurfaceDrawContext->drawPath(this->clip(), std::move(grPaint), aa, this->localToDevice(), 378 (1 == width && this->localToDevice().getMinMaxScales(scales) && 443 fSurfaceDrawContext->chooseAA(paint), this->localToDevice(), rect, 466 this->localToDevice(), clip, nullptr); 470 this->localToDevice(), rect); 507 fSurfaceDrawContext->chooseAA(paint), this->localToDevice(), 541 if (auto fp = make_inverse_rrect_fp(this->localToDevice(), inner, 553 this->localToDevice(), outer, GrStyle()); [all …]
|
D | SkGpuDevice.h | 99 void drawSpecial(SkSpecialImage*, const SkMatrix& localToDevice, const SkSamplingOptions&, 129 fClip.clipRect(this->localToDevice(), rect, GrAA(aa), op); in onClipRect() 133 fClip.clipRRect(this->localToDevice(), rrect, GrAA(aa), op); in onClipRRect()
|
D | GrClipStack.h | 103 RawElement(const SkMatrix& localToDevice, const GrShape& shape, GrAA aa, SkClipOp op); 116 const SkMatrix& localToDevice() const { return fLocalToDevice; } in localToDevice() function
|
D | SkGpuDevice_drawTexture.cpp | 425 const SkMatrix& ctm(matrixProvider.localToDevice()); in draw_image() 682 const SkMatrix& localToDevice, in drawSpecial() argument 707 SkOverrideDeviceMatrixProvider matrixProvider(this->asMatrixProvider(), localToDevice); in drawSpecial() 770 const SkMatrix& ctm(matrixProvider.localToDevice()); in drawImageQuad() 895 this->localToDevice(), in drawEdgeAAImageSet()
|
D | SkGpuDevice_nga.h | 73 void drawSpecial(SkSpecialImage*, const SkMatrix& localToDevice, const SkSamplingOptions&,
|
D | SkGpuDevice_nga.cpp | 216 const SkMatrix& localToDevice, in drawSpecial() argument
|
/external/skia/src/pdf/ |
D | SkPDFDevice.cpp | 249 : ScopedContentEntry(dev, &dev->cs(), dev->localToDevice(), paint, textScale) {} in ScopedContentEntry() 347 SkPoint p = this->localToDevice().mapXY(rect.x(), rect.y()); in drawAnnotation() 355 SkPath path = SkPath::Rect(rect).makeTransform(this->localToDevice()); in drawAnnotation() 381 if (!this->localToDevice().invert(&inverse)) { in drawPaint() 478 this->internalDrawPath(this->cs(), this->localToDevice(), SkPath::Rect(r), paint, true); in drawRect() 482 this->internalDrawPath(this->cs(), this->localToDevice(), SkPath::RRect(rrect), paint, true); in drawRRect() 486 this->internalDrawPath(this->cs(), this->localToDevice(), SkPath::Oval(oval), paint, true); in drawOval() 490 this->internalDrawPath(this->cs(), this->localToDevice(), path, paint, pathIsMutable); in drawPath() 639 src, dst, sampling, paint, this->localToDevice()); in drawImageRect() 769 this->internalDrawPath(this->cs(), this->localToDevice(), path, runPaint, true); in drawGlyphRunAsPath() [all …]
|
/external/skia/tests/ |
D | GrClipStackTest.cpp | 100 ElementsBuilder& localToDevice(const SkMatrix& m) { fLocalToDevice = m; return *this; } in localToDevice() function in __anon593ab8390111::ElementsBuilder 569 .actual().aa().intersect().localToDevice(lm) in DEF_TEST() 572 .expect().aa().intersect().localToDevice(lm) in DEF_TEST() 579 .actual().nonAA().intersect().localToDevice(lm) in DEF_TEST() 582 .expect().nonAA().intersect().localToDevice(lm) in DEF_TEST() 589 .actual().intersect().localToDevice(lm) in DEF_TEST() 636 .actual().aa().intersect().localToDevice(lm) in DEF_TEST() 639 .expect().aa().intersect().localToDevice(lm) in DEF_TEST() 644 .actual().nonAA().intersect().localToDevice(lm) in DEF_TEST() 647 .expect().nonAA().intersect().localToDevice(lm) in DEF_TEST() [all …]
|
/external/skia/src/shaders/ |
D | SkPictureShader.cpp | 284 bitmapShader = this->rasterShader(rec.fMatrixProvider.localToDevice(), &lm, in onAppendStages() 305 bitmapShader = this->rasterShader(matrices.localToDevice(), &lm, in onProgram() 377 auto info = CachedImageInfo::Make(fTile, args.fMatrixProvider.localToDevice(), &lm, in asFragmentProcessor()
|
D | SkShader.cpp | 164 ContextRec cr(*opaquePaint, rec.fMatrixProvider.localToDevice(), rec.fLocalM, rec.fDstColorType, in onAppendStages()
|
D | SkImageShader.cpp | 479 if (!this->computeTotalInverse(rec.fMatrixProvider.localToDevice(), rec.fLocalM, &matrix)) { in doStages() 731 bool usePersp = rec.fMatrixProvider.localToDevice().hasPerspective(); in onAppendUpdatableStages() 742 if (!this->computeTotalInverse(matrices.localToDevice(), localM, &baseInv)) { in onProgram()
|
/external/skia/src/xps/ |
D | SkXPSDevice.cpp | 1186 if (rect_must_be_pathed(paint, this->localToDevice())) { in internalDrawRect() 1211 HRV(this->shadePath(shadedPath.get(), paint, this->localToDevice(), &fill, &stroke)); in internalDrawRect() 1217 HRV(this->createXpsTransform(this->localToDevice(), &xpsTransform)); in internalDrawRect() 1236 this->localToDevice().mapPoints(points, SK_ARRAY_COUNT(points)); in internalDrawRect() 1510 SkMatrix matrix = this->localToDevice(); in drawPath() 1560 this->localToDevice(), in drawPath() 1909 text_must_be_pathed(paint, this->localToDevice())) { in onDrawGlyphRunList() 1957 this->localToDevice(), in onDrawGlyphRunList()
|
/external/skia/src/svg/ |
D | SkSVGDevice.cpp | 245 MxCp(SkSVGDevice* device) : fMatrix(&device->localToDevice()), fClipStack(&device->cs()) {} in MxCp() 808 this->cs().clipRect(rect, this->localToDevice(), kIntersect_SkClipOp, true); in drawAnnotation() 971 cs->clipRect(dst, this->localToDevice(), kIntersect_SkClipOp, paint.isAntiAlias()); in drawImageRect() 974 SkMatrix adjustedMatrix = this->localToDevice() in drawImageRect()
|
/external/skia/src/utils/ |
D | SkCanvasStateUtils.cpp | 219 setup_MC_state(&layerState->mcState, device->localToDevice(), device->devClipBounds()); in CaptureCanvasState()
|
D | SkShadowUtils.cpp | 636 : this->localToDevice() * SkMatrix::Translate(tx, ty)); in drawShadow() 645 SkMatrix viewMatrix = this->localToDevice(); in drawShadow()
|
/external/skia/src/gpu/text/ |
D | GrTextBlob.cpp | 640 const SkMatrix& drawMatrix = viewMatrix.localToDevice(); in makeAtlasTextOp() 959 const SkMatrix& drawMatrix = viewMatrix.localToDevice(); in makeAtlasTextOp() 1236 SkASSERT(!viewMatrix.localToDevice().hasPerspective()); in makeAtlasTextOp() 1239 const SkMatrix& drawMatrix = viewMatrix.localToDevice(); in makeAtlasTextOp() 1758 const SkMatrix& drawMatrix = viewMatrix.localToDevice(); in makeAtlasTextOp() 1973 const SkMatrix& drawMatrix = viewMatrix.localToDevice(); in makeAtlasTextOp() 2208 const SkMatrix& drawMatrix = viewMatrix.localToDevice(); in makeAtlasTextOp()
|