Home
last modified time | relevance | path

Searched refs:localToDevice (Results 1 – 25 of 42) sorted by relevance

12

/third_party/skia/src/core/
DSkMatrixProvider.h16 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()
31 const SkMatrix& localToDevice() const { return fLocalToDevice33; } in localToDevice() function
47 SkOverrideDeviceMatrixProvider(const SkMatrixProvider& parent, const SkMatrix& localToDevice) in SkOverrideDeviceMatrixProvider() argument
48 : SkMatrixProvider(localToDevice) in SkOverrideDeviceMatrixProvider()
108 SkSimpleMatrixProvider(const SkMatrix& localToDevice) in SkSimpleMatrixProvider() argument
[all …]
DSkDevice.h157 void restoreLocal(const SkM44& localToDevice) { in restoreLocal() argument
159 this->setLocalToDevice(localToDevice); in restoreLocal()
171 sh = as_SB(sh)->makeWithCTM(this->localToDevice()); in clipShader()
188 void setLocalToDevice(const SkM44& localToDevice) { in setLocalToDevice() argument
189 fLocalToDevice = localToDevice; in setLocalToDevice()
318 virtual void drawSpecial(SkSpecialImage*, const SkMatrix& localToDevice,
437 const SkM44& localToDevice,
564 SkAutoDeviceTransformRestore(SkBaseDevice* device, const SkMatrix& localToDevice) in SkAutoDeviceTransformRestore() argument
566 , fPrevLocalToDevice(device->localToDevice()) in SkAutoDeviceTransformRestore()
568 fDevice->setLocalToDevice(SkM44(localToDevice)); in SkAutoDeviceTransformRestore()
DSkDevice.cpp46 const SkM44& localToDevice, in setDeviceCoordinateSystem() argument
55 fLocalToDevice = localToDevice; in setDeviceCoordinateSystem()
121 const SkMatrix& localToDevice = this->localToDevice(); in drawRegion() local
122 bool isNonTranslate = localToDevice.getType() & ~(SkMatrix::kTranslate_Mask); in drawRegion()
125 bool antiAlias = paint.isAntiAlias() && (!is_int(localToDevice.getTranslateX()) || in drawRegion()
126 !is_int(localToDevice.getTranslateY())); in drawRegion()
163 SkISize lod = SkPatchUtils::GetLevelOfDetail(cubics, &this->localToDevice()); in drawPatch()
439 if (!this->localToDevice().isFinite()) { in drawGlyphRunList()
DSkClipStackDevice.cpp31 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()
DSkDraw.cpp63 if (!fMatrixProvider->localToDevice().invert(&inverse)) { in computeConservativeLocalClipBounds()
361 SkMatrix ctm = fMatrixProvider->localToDevice(); in drawPoints()
626 SkMatrix ctm = fMatrixProvider->localToDevice(); in drawRect()
713 ->filterMask(&dstM, srcM, fMatrixProvider->localToDevice(), nullptr)) { in drawDevMask()
775 SkMatrix ctm = fMatrixProvider->localToDevice(); in drawRRect()
825 ->filterPath(devPath, fMatrixProvider->localToDevice(), *fRC, blitter, style)) { in drawDevPath()
911 if (SkDrawTreatAsHairline(origPaint, matrixProvider->localToDevice(), &coverage)) { in drawPath()
941 fMatrixProvider->localToDevice()); in drawPath()
949 pathPtr->transform(matrixProvider->localToDevice(), devPathPtr); in drawPath()
969 SkMatrix ctm = fMatrixProvider->localToDevice(); in drawBitmapAsMask()
[all …]
DSkBitmapDevice.cpp94 fSrcBounds = dev->localToDevice().mapRect(*bounds).roundOut(); in SkDrawTiler()
591 const SkMatrix& localToDevice, in drawSpecial() argument
601 SkSimpleMatrixProvider matrixProvider(localToDevice); in drawSpecial()
648 fRCStack.clipRect(this->localToDevice(), rect, op, aa); in onClipRect()
652 fRCStack.clipRRect(this->localToDevice(), rrect, op, aa); in onClipRRect()
656 fRCStack.clipPath(this->localToDevice(), path, op, aa); in onClipPath()
DSkDraw_atlas.cpp172 mx.postConcat(fMatrixProvider->localToDevice()); in drawAtlas()
204 mx.postConcat(fMatrixProvider->localToDevice()); in drawAtlas()
DSkDraw_text.cpp137 glyphPainter->drawForBitmapDevice(glyphRunList, paint, fMatrixProvider->localToDevice(), this); in drawGlyphRunList()
/third_party/skia/experimental/graphite/src/
DDrawList.cpp39 const Transform& DrawList::deduplicateTransform(const Transform& localToDevice) { in deduplicateTransform() argument
42 if (fTransforms.empty() || fTransforms.back() != localToDevice) { in deduplicateTransform()
43 fTransforms.push_back(localToDevice); in deduplicateTransform()
48 void DrawList::stencilAndFillPath(const Transform& localToDevice, in stencilAndFillPath() argument
53 SkASSERT(localToDevice.valid()); in stencilAndFillPath()
56 this->deduplicateTransform(localToDevice), in stencilAndFillPath()
61 void DrawList::fillConvexPath(const Transform& localToDevice, in fillConvexPath() argument
66 SkASSERT(localToDevice.valid()); in fillConvexPath()
76 void DrawList::strokePath(const Transform& localToDevice, in strokePath() argument
82 SkASSERT(localToDevice.valid()); in strokePath()
DDrawContext.cpp52 void DrawContext::stencilAndFillPath(const Transform& localToDevice, in stencilAndFillPath() argument
58 fPendingDraws->stencilAndFillPath(localToDevice, shape, clip, order,paint); in stencilAndFillPath()
61 void DrawContext::fillConvexPath(const Transform& localToDevice, in fillConvexPath() argument
67 fPendingDraws->fillConvexPath(localToDevice, shape, clip, order, paint); in fillConvexPath()
70 void DrawContext::strokePath(const Transform& localToDevice, in strokePath() argument
77 fPendingDraws->strokePath(localToDevice, shape, stroke, clip, order, paint); in strokePath()
DDevice.cpp221 Transform localToDevice(this->localToDevice44()); in drawShape() local
222 if (!localToDevice.valid()) { in drawShape()
236 newStyle.setResScale(localToDevice.maxScaleFactor()); in drawShape()
239 nullptr, localToDevice)) { in drawShape()
272 auto [clip, clipOrder] = this->applyClipToDraw(localToDevice, shape, style, order.depth()); in drawShape()
301 fDC->strokePath(localToDevice, shape, stroke, clip, order, &shading); in drawShape()
313 fDC->stencilAndFillPath(localToDevice, shape, clip, order, &shading); in drawShape()
319 localToDevice.type() <= Transform::Type::kRectStaysRect; in drawShape()
332 std::pair<Clip, CompressedPaintersOrder> Device::applyClipToDraw(const Transform& localToDevice, in applyClipToDraw() argument
343 drawBounds = localToDevice.mapRect(drawBounds); in applyClipToDraw()
DDrawContext.h54 void stencilAndFillPath(const Transform& localToDevice,
60 void fillConvexPath(const Transform& localToDevice,
66 void strokePath(const Transform& localToDevice,
DDrawList.h165 void stencilAndFillPath(const Transform& localToDevice,
171 void fillConvexPath(const Transform& localToDevice,
177 void strokePath(const Transform& localToDevice,
DDevice.h108 void drawSpecial(SkSpecialImage*, const SkMatrix& localToDevice, in drawSpecial() argument
/third_party/skia/src/gpu/v1/
DDevice.cpp257 fClip.clipPath(this->localToDevice(), path, GrAA(aa), op); in onClipPath()
331 fSurfaceDrawContext->drawPaint(this->clip(), std::move(grPaint), this->localToDevice()); in drawPaint()
358 fSurfaceDrawContext->drawPath(this->clip(), std::move(grPaint), aa, this->localToDevice(), in drawPoints()
365 (1 == width && this->localToDevice().getMinMaxScales(scales) && in drawPoints()
433 fSurfaceDrawContext->chooseAA(paint), this->localToDevice(), rect, in drawRect()
458 this->localToDevice(), clip, nullptr); in drawEdgeAAQuad()
462 this->localToDevice(), rect); in drawEdgeAAQuad()
499 fSurfaceDrawContext->chooseAA(paint), this->localToDevice(), in drawRRect()
519 if (auto fp = make_inverse_rrect_fp(this->localToDevice(), inner, in drawDRRect()
531 this->localToDevice(), outer, GrStyle()); in drawDRRect()
[all …]
DDevice_v1.h130 void drawSpecial(SkSpecialImage*, const SkMatrix& localToDevice, const SkSamplingOptions&,
156 fClip.clipRect(this->localToDevice(), rect, GrAA(aa), op); in onClipRect()
160 fClip.clipRRect(this->localToDevice(), rrect, GrAA(aa), op); in onClipRRect()
DClipStack.h105 RawElement(const SkMatrix& localToDevice, const GrShape& shape, GrAA aa, SkClipOp op);
118 const SkMatrix& localToDevice() const { return fLocalToDevice; } in localToDevice() function
DDevice_drawTexture.cpp428 const SkMatrix& ctm(matrixProvider.localToDevice()); in draw_image()
709 const SkMatrix& localToDevice, in drawSpecial() argument
734 SkOverrideDeviceMatrixProvider matrixProvider(this->asMatrixProvider(), localToDevice); in drawSpecial()
779 const SkMatrix& ctm(matrixProvider.localToDevice()); in drawImageQuad()
904 this->localToDevice(), in drawEdgeAAImageSet()
/third_party/skia/src/pdf/
DSkPDFDevice.cpp248 : ScopedContentEntry(dev, &dev->cs(), dev->localToDevice(), paint, textScale) {} in ScopedContentEntry()
346 SkPoint p = this->localToDevice().mapXY(rect.x(), rect.y()); in drawAnnotation()
354 SkPath path = SkPath::Rect(rect).makeTransform(this->localToDevice()); in drawAnnotation()
380 if (!this->localToDevice().invert(&inverse)) { in drawPaint()
415 if (paint->getPathEffect() || this->localToDevice().hasPerspective()) { in drawPoints()
477 this->internalDrawPath(this->cs(), this->localToDevice(), SkPath::Rect(r), paint, true); in drawRect()
481 this->internalDrawPath(this->cs(), this->localToDevice(), SkPath::RRect(rrect), paint, true); in drawRRect()
485 this->internalDrawPath(this->cs(), this->localToDevice(), SkPath::Oval(oval), paint, true); in drawOval()
489 this->internalDrawPath(this->cs(), this->localToDevice(), path, paint, pathIsMutable); in drawPath()
638 src, dst, sampling, paint, this->localToDevice()); in drawImageRect()
[all …]
/third_party/skia/src/gpu/ops/
DDrawAtlasPathOp.h22 DrawAtlasPathOp(SkArenaAlloc* arena, const SkIRect& fillBounds, const SkMatrix& localToDevice, in DrawAtlasPathOp() argument
26 , fHeadInstance(arena->make<Instance>(fillBounds, localToDevice, paint.getColor4f(), in DrawAtlasPathOp()
/third_party/skia/tests/
DGrClipStackTest.cpp105 ElementsBuilder& localToDevice(const SkMatrix& m) { fLocalToDevice = m; return *this; } in localToDevice() function in __anon7be344a50111::ElementsBuilder
603 .actual().aa().intersect().localToDevice(lm) in DEF_TEST()
606 .expect().aa().intersect().localToDevice(lm) in DEF_TEST()
613 .actual().nonAA().intersect().localToDevice(lm) in DEF_TEST()
616 .expect().nonAA().intersect().localToDevice(lm) in DEF_TEST()
623 .actual().intersect().localToDevice(lm) in DEF_TEST()
672 .actual().aa().intersect().localToDevice(lm) in DEF_TEST()
675 .expect().aa().intersect().localToDevice(lm) in DEF_TEST()
680 .actual().nonAA().intersect().localToDevice(lm) in DEF_TEST()
683 .expect().nonAA().intersect().localToDevice(lm) in DEF_TEST()
[all …]
/third_party/skia/src/shaders/
DSkPictureShader.cpp284 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()
DSkTransformShader.cpp19 skvm::Coord newLocal = this->applyMatrix(b, matrices.localToDevice(), local, uniforms); in onProgram()
/third_party/skia/src/xps/
DSkXPSDevice.cpp1189 if (rect_must_be_pathed(paint, this->localToDevice())) { in internalDrawRect()
1214 HRV(this->shadePath(shadedPath.get(), paint, this->localToDevice(), &fill, &stroke)); in internalDrawRect()
1220 HRV(this->createXpsTransform(this->localToDevice(), &xpsTransform)); in internalDrawRect()
1239 this->localToDevice().mapPoints(points, SK_ARRAY_COUNT(points)); in internalDrawRect()
1513 SkMatrix matrix = this->localToDevice(); in drawPath()
1563 this->localToDevice(), in drawPath()
1912 text_must_be_pathed(paint, this->localToDevice())) { in onDrawGlyphRunList()
1960 this->localToDevice(), in onDrawGlyphRunList()
/third_party/skia/src/svg/
DSkSVGDevice.cpp244 MxCp(SkSVGDevice* device) : fMatrix(&device->localToDevice()), fClipStack(&device->cs()) {} in MxCp()
813 this->cs().clipRect(rect, this->localToDevice(), SkClipOp::kIntersect, true); in drawAnnotation()
976 cs->clipRect(dst, this->localToDevice(), SkClipOp::kIntersect, paint.isAntiAlias()); in drawImageRect()
979 SkMatrix adjustedMatrix = this->localToDevice() in drawImageRect()

12