/third_party/skia/src/gpu/ops/ |
D | TessellationPathRenderer.cpp | 92 args.fViewMatrix->hasPerspective() || in onCanDrawPath() 118 const SkRect pathDevBounds = args.fViewMatrix->mapRect(args.fShape->bounds()); in onDrawPath() 138 inflationRadius = stroke.getInflationRadius() * args.fViewMatrix->getMaxScale(); in onDrawPath() 142 path = PreChopPathCurves(path, *args.fViewMatrix, viewport); in onDrawPath() 151 auto op = GrOp::Make<StrokeTessellateOp>(args.fContext, args.fAAType, *args.fViewMatrix, in onDrawPath() 161 *args.fViewMatrix); in onDrawPath() 172 *args.fViewMatrix, in onDrawPath() 189 *args.fViewMatrix, in onDrawPath() 204 args.fViewMatrix->mapRect(&pathDevBounds, args.fShape->bounds()); in onStencilPath() 214 path = PreChopPathCurves(path, *args.fViewMatrix, viewport); in onStencilPath() [all …]
|
D | SoftwarePathRenderer.cpp | 43 , fViewMatrix(viewMatrix) in SoftwarePathData() 48 const SkMatrix* getViewMatrix() const { return &fViewMatrix; } in getViewMatrix() 54 SkMatrix fViewMatrix; member in __anon46d5866d0111::SoftwarePathData 243 *args.fViewMatrix, nullptr); in onDrawPath() 248 bool useCache = fAllowCaching && !inverseFilled && args.fViewMatrix->preservesAxisAlignment() && in onDrawPath() 253 *args.fViewMatrix, &unclippedDevShapeBounds, in onDrawPath() 258 *args.fUserStencilSettings, args.fClip, *args.fViewMatrix, in onDrawPath() 284 SkScalar sx = args.fViewMatrix->get(SkMatrix::kMScaleX); in onDrawPath() 285 SkScalar sy = args.fViewMatrix->get(SkMatrix::kMScaleY); in onDrawPath() 286 SkScalar kx = args.fViewMatrix->get(SkMatrix::kMSkewX); in onDrawPath() [all …]
|
D | DrawVerticesOp.cpp | 65 key |= ProgramImpl::ComputeMatrixKey(caps, fViewMatrix) << 20; in addToKey() 82 SetTransform(pdman, shaderCaps, fViewMatrixUniform, vgp.fViewMatrix, &fViewMatrix); in setData() 137 gp.fViewMatrix, in onEmitCode() 149 SkMatrix fViewMatrix = SkMatrix::InvalidMatrix(); member in skgpu::v1::DrawVerticesOp::__anon2e467b300111::VerticesGP::Impl 166 , fViewMatrix(viewMatrix) in VerticesGP() 189 SkMatrix fViewMatrix; member in skgpu::v1::DrawVerticesOp::__anon2e467b300111::VerticesGP 256 SkMatrix fViewMatrix; member 326 mesh.fViewMatrix = matrixProvider.localToDevice(); in DrawVerticesOpImpl() 338 mesh.fViewMatrix, in DrawVerticesOpImpl() 377 const SkMatrix& vm = fMultipleViewMatrices ? SkMatrix::I() : fMeshes[0].fViewMatrix; in makeGP() [all …]
|
D | SmallPathRenderer.cpp | 168 const SkMatrix& ctm = fShapes[0].fViewMatrix; in onPrepareDraws() 233 if (args.fViewMatrix.hasPerspective()) { in onPrepareDraws() 236 args.fViewMatrix.mapRect(&xformedBounds, bounds); in onPrepareDraws() 240 maxScale = SkScalarAbs(args.fViewMatrix.getMaxScale()); in onPrepareDraws() 296 shapeData = atlasMgr->findOrCreate(args.fShape, args.fViewMatrix); in onPrepareDraws() 303 args.fViewMatrix)) { in onPrepareDraws() 314 args.fViewMatrix, shapeData); in onPrepareDraws() 604 const SkMatrix& thisCtm = this->fShapes[0].fViewMatrix; in onCombineIfPossible() 605 const SkMatrix& thatCtm = that->fShapes[0].fViewMatrix; in onCombineIfPossible() 647 SkMatrix fViewMatrix; member [all …]
|
D | StrokeTessellateOp.cpp | 46 , fViewMatrix(viewMatrix) in StrokeTessellateOp() 107 fViewMatrix != op->fViewMatrix || in onCombineIfPossible() 210 fViewMatrix, in prePrepareTessellator() 255 if (!fViewMatrix.getMinMaxScales(matrixMinMaxScales.data())) { in onPrepare() 259 fViewMatrix, in onPrepare()
|
D | TriangulatingPathRenderer.cpp | 201 , fViewMatrix(viewMatrix) in TriangulatingPathOp() 287 fViewMatrix, fShape.bounds()); in createNonAAMesh() 319 int vertexCount = Triangulate(&allocator, fViewMatrix, fShape, fDevClipBounds, tol, in createNonAAMesh() 353 path.transform(fViewMatrix); in createAAMesh() 395 localCoordsType, fViewMatrix); in onCreateProgramInfo() 398 fViewMatrix); in onCreateProgramInfo() 446 fViewMatrix, fShape.bounds()); in onPrePrepareDraws() 457 int vertexCount = Triangulate(&allocator, fViewMatrix, fShape, fDevClipBounds, tol, in onPrePrepareDraws() 528 SkMatrix fViewMatrix; member in __anon71c66a5b0111::TriangulatingPathOp 618 args.fContext, std::move(args.fPaint), *args.fShape, *args.fViewMatrix, in onDrawPath()
|
D | RegionOp.cpp | 57 , fViewMatrix(viewMatrix) { in RegionOpImpl() 95 GrGeometryProcessor* gp = make_gp(arena, fViewMatrix, fWideColor); in onCreateProgramInfo() 162 if (fViewMatrix != that->fViewMatrix) { in onCombineIfPossible() 190 SkMatrix fViewMatrix; member in skgpu::v1::RegionOp::__anon1c88d7210111::RegionOpImpl
|
D | AALinearizingConvexPathRenderer.cpp | 228 if (!tess.tessellate(args.fViewMatrix, args.fPath)) { in onPrepareDraws() 263 if (!args.fViewMatrix.invert(&ivm)) { in onPrepareDraws() 321 SkMatrix fViewMatrix; member 366 if (!args.fViewMatrix->isSimilarity()) { in onCanDrawPath() 369 SkScalar strokeWidth = args.fViewMatrix->getMaxScale() * stroke.getWidth(); in onCanDrawPath() 386 if (args.fViewMatrix->hasPerspective()) { in onCanDrawPath() 408 args.fContext, std::move(args.fPaint), *args.fViewMatrix, path, strokeWidth, in onDrawPath()
|
D | AtlasPathRenderer.cpp | 278 !args.fViewMatrix->hasPerspective() && in onCanDrawPath() 279 this->pathFitsInAtlas(args.fViewMatrix->mapRect(args.fShape->bounds()), in onCanDrawPath() 288 const SkRect pathDevBounds = args.fViewMatrix->mapRect(args.fShape->bounds()); in onDrawPath() 295 *args.fViewMatrix); in onDrawPath() 303 SkAssertResult(this->addPathToAtlas(args.fContext, *args.fViewMatrix, path, pathDevBounds, in onDrawPath() 315 fillBounds, *args.fViewMatrix, in onDrawPath()
|
D | DashLinePathRenderer.cpp | 25 if (!DashOp::CanDrawDashLine(pts, args.fShape->style(), *args.fViewMatrix)) { in onCanDrawPath() 53 *args.fViewMatrix, pts, aaMode, args.fShape->style(), in onDrawPath()
|
D | PathInnerTriangulateOp.h | 44 , fViewMatrix(viewMatrix) in PathInnerTriangulateOp() 70 const SkMatrix fViewMatrix; variable
|
D | FillRRectOp.cpp | 117 : fViewMatrix(viewMatrix), fRRect(rrect), fLocalRect(localRect), fColor(color) {} in Instance() 118 SkMatrix fViewMatrix; member 223 if (clipMatrix == fHeadInstance->fViewMatrix) { in clipToShape() 231 SkASSERT(!fHeadInstance->fViewMatrix.hasPerspective()); in clipToShape() 236 if (!fHeadInstance->fViewMatrix.invert(&clipToView)) { in clipToShape() 280 SkRect devISectBounds = fHeadInstance->fViewMatrix.mapRect(isectRRect.rect()); in clipToShape() 531 m.postConcat(i->fViewMatrix); in onPrepareDraws()
|
D | PathInnerTriangulateOp.cpp | 196 auto shader = GrPathTessellationShader::MakeSimpleTriangleShader(args.fArena, fViewMatrix, in pushFanStencilProgram() 204 auto shader = GrPathTessellationShader::MakeSimpleTriangleShader(args.fArena, fViewMatrix, in pushFanFillProgram() 256 fViewMatrix, in prePreparePrograms() 369 auto* hullShader = args.fArena->make<HullShader>(fViewMatrix, fColor, in prePreparePrograms()
|
D | StrokeRectOp.cpp | 133 fViewMatrix = viewMatrix; in NonAAStrokeRectOp() 158 this->setTransformedBounds(bounds, fViewMatrix, aaBloat, in NonAAStrokeRectOp() 191 fViewMatrix); in onCreateProgramInfo() 264 SkMatrix fViewMatrix; member in skgpu::v1::StrokeRectOp::__anonaae996630111::NonAAStrokeRectOp 429 , fViewMatrix(viewMatrix) { in AAStrokeRectOp() 475 , fViewMatrix(viewMatrix) { in AAStrokeRectOp() 559 const SkMatrix& viewMatrix() const { return fViewMatrix; } in viewMatrix() 577 SkMatrix fViewMatrix; member in skgpu::v1::StrokeRectOp::__anonaae996630111::AAStrokeRectOp
|
D | DefaultPathRenderer.cpp | 427 , fViewMatrix(viewMatrix) in DefaultPathOp() 562 const SkMatrix& viewMatrix() const { return fViewMatrix; } in viewMatrix() 574 SkMatrix fViewMatrix; member in __anoncbcfd3c70111::DefaultPathOp 775 args.fShape->style(), *args.fViewMatrix, nullptr); in onCanDrawPath() 800 args.fClip, *args.fViewMatrix, *args.fShape, false); in onDrawPath() 815 args.fClip, *args.fViewMatrix, *args.fShape, true); in onStencilPath()
|
D | LatticeOp.cpp | 165 patch.fViewMatrix = viewMatrix; in NonAALatticeOp() 265 bool isScaleTranslate = patch.fViewMatrix.isScaleTranslate(); in onPrepareDraws() 267 patch.fIter->mapDstScaleTranslate(patch.fViewMatrix); in onPrepareDraws() 299 patch.fViewMatrix.mapRectToQuad(mappedPts, dstR); in onPrepareDraws() 376 SkMatrix fViewMatrix; member
|
/third_party/skia/src/gpu/effects/ |
D | GrBezierEffect.cpp | 23 SetTransform(pdman, shaderCaps, fViewMatrixUniform, ce.fViewMatrix, &fViewMatrix); in setData() 40 SkMatrix fViewMatrix = SkMatrix::InvalidMatrix(); member in GrConicEffect::Impl 75 gp.fViewMatrix, in onEmitCode() 160 fViewMatrix, in addToKey() 174 , fViewMatrix(viewMatrix) in GrConicEffect() 211 SetTransform(pdman, shaderCaps, fViewMatrixUniform, qe.fViewMatrix, &fViewMatrix); in setData() 228 SkMatrix fViewMatrix = SkMatrix::InvalidMatrix(); member in GrQuadEffect::Impl 263 gp.fViewMatrix, in onEmitCode() 313 fViewMatrix, in addToKey() 327 , fViewMatrix(viewMatrix) in GrQuadEffect()
|
D | GrBezierEffect.h | 96 SkMatrix fViewMatrix; variable 158 SkMatrix fViewMatrix; variable
|
/third_party/skia/gm/ |
D | tessellation.cpp | 57 : GrGeometryProcessor(kTessellationTestTriShader_ClassID), fViewMatrix(viewMatrix) { in TessellationTestTriShader() 72 geomProc.cast<TessellationTestTriShader>().fViewMatrix); in setData() 170 const SkMatrix fViewMatrix; member in skiagm::TessellationTestTriShader 176 : GrGeometryProcessor(kTessellationTestTriShader_ClassID), fViewMatrix(viewMatrix) { in TessellationTestRectShader() 191 geomProc.cast<TessellationTestRectShader>().fViewMatrix); in setData() 286 const SkMatrix fViewMatrix; member in skiagm::TessellationTestRectShader 294 : GrDrawOp(ClassID()), fViewMatrix(viewMatrix), fTriPositions(triPositions) { in TessellationTestOp() 331 shader = std::make_unique<TessellationTestTriShader>(fViewMatrix); in onExecute() 336 shader = std::make_unique<TessellationTestRectShader>(fViewMatrix); in onExecute() 350 const SkMatrix fViewMatrix; member in skiagm::TessellationTestOp
|
D | fwidth_squircle.cpp | 79 , fViewMatrix(viewMatrix) { in FwidthSquircleTestProcessor() 83 const SkMatrix fViewMatrix; member in __anonebcb2e1b0111::FwidthSquircleTestProcessor 96 pdman.setSkMatrix(fViewMatrixHandle, proc.fViewMatrix); in makeProgramImpl() 161 , fViewMatrix(viewMatrix) { in FwidthSquircleTestOp() 179 GrGeometryProcessor* geomProc = FwidthSquircleTestProcessor::Make(arena, fViewMatrix); in createProgramInfo() 250 const SkMatrix fViewMatrix; member in __anonebcb2e1b0111::FwidthSquircleTestOp
|
/third_party/skia/src/gpu/tessellate/ |
D | StrokeIterator.h | 35 : fViewMatrix(viewMatrix), fStroke(stroke) { in StrokeIterator() 238 SkASSERT(!fViewMatrix->hasPerspective()); in finishOpenContour() 239 float a=fViewMatrix->getScaleX(), b=fViewMatrix->getSkewX(), in finishOpenContour() 240 c=fViewMatrix->getSkewY(), d=fViewMatrix->getScaleY(); in finishOpenContour() 315 lastTangent *= .5f / fViewMatrix->mapVector(lastTangent.fX, lastTangent.fY).length(); in fillSquareCapPoints() 338 -.5f / fViewMatrix->mapVector(firstTangent.fX, firstTangent.fY).length(); in fillSquareCapPoints() 344 const SkMatrix* const fViewMatrix; // For hairlines. variable
|
/third_party/skia/src/gpu/v1/ |
D | PathRenderer.h | 87 const SkMatrix* fViewMatrix; member 101 SkASSERT(fViewMatrix); in validate() 125 const SkMatrix* fViewMatrix; member 135 SkASSERT(fViewMatrix); in validate() 156 const SkMatrix* fViewMatrix; member
|
D | PathRenderer.cpp | 28 SkASSERT(fViewMatrix); in validate() 54 canArgs.fViewMatrix = args.fViewMatrix; in drawPath() 103 args.fViewMatrix, in onStencilPath()
|
/third_party/skia/src/gpu/tessellate/shaders/ |
D | GrTessellationShader.h | 26 , fViewMatrix(viewMatrix) in GrTessellationShader() 35 const SkMatrix& viewMatrix() const { return fViewMatrix; } in viewMatrix() 83 const SkMatrix fViewMatrix; variable
|
/third_party/skia/src/gpu/ |
D | GrDefaultGeoProcFactory.cpp | 59 fViewMatrix, in addToKey() 76 SetTransform(pdman, shaderCaps, fViewMatrixUniform, dgp.fViewMatrix, &fViewMatrixPrev); in setData() 146 gp.fViewMatrix, in onEmitCode() 209 , fViewMatrix(viewMatrix) in DefaultGeoProc() 234 SkMatrix fViewMatrix; member in DefaultGeoProc
|