Lines Matching refs:viewMatrix
355 const SkMatrixProvider& viewMatrix, in drawGlyphRunListNoCache() argument
361 SkMatrix drawMatrix = viewMatrix.localToDevice(); in drawGlyphRunListNoCache()
366 GrSubRunNoCachePainter painter{this, alloc, clip, viewMatrix, glyphRunList, paint}; in drawGlyphRunListNoCache()
378 const SkMatrixProvider& viewMatrix, in drawGlyphRunListWithCache() argument
381 SkMatrix drawMatrix(viewMatrix.localToDevice()); in drawGlyphRunListWithCache()
420 subRun.draw(clip, viewMatrix, glyphRunList, paint, this); in drawGlyphRunListWithCache()
427 const SkMatrixProvider& viewMatrix, in drawGlyphRunList() argument
446 this->drawGlyphRunListNoCache(clip, viewMatrix, glyphRunList, paint); in drawGlyphRunList()
448 this->drawGlyphRunListWithCache(clip, viewMatrix, glyphRunList, paint); in drawGlyphRunList()
454 const SkMatrix& viewMatrix) { in drawPaint() argument
465 if (!viewMatrix.invert(&localMatrix)) { in drawPaint()
664 const SkMatrix& viewMatrix, in drawTexture() argument
686 this->fillRectToRect(clip, std::move(paint), GrAA::kYes, viewMatrix, dstRect, srcRect); in drawTexture()
692 DrawQuad quad{GrQuad::MakeFromRect(dstRect, viewMatrix), GrQuad(srcRect), edgeAA}; in drawTexture()
742 const SkMatrix& viewMatrix, in drawRect() argument
761 this->fillRectToRect(clip, std::move(paint), aa, viewMatrix, rect, rect); in drawRect()
770 fContext, std::move(paint), aaType, viewMatrix, rect, stroke); in drawRect()
779 this->drawShapeUsingPathRenderer(clip, std::move(paint), aa, viewMatrix, in drawRect()
786 const SkMatrix& viewMatrix, in fillRectToRect() argument
789 DrawQuad quad{GrQuad::MakeFromRect(rectToDraw, viewMatrix), GrQuad(localRect), in fillRectToRect()
807 if (clip && viewMatrix.isScaleTranslate() && quad.fDevice.asRect(&croppedRect) && in fillRectToRect()
812 if (!viewMatrix.invert(&inverse)) { in fillRectToRect()
827 if (auto op = GrFillRRectOp::Make(fContext, std::move(paint), viewMatrix, in fillRectToRect()
842 const SkMatrix& viewMatrix, in drawQuadSet() argument
847 GrFillRectOp::AddFillRectOps(this, clip, fContext, std::move(paint), aaType, viewMatrix, in drawQuadSet()
915 const SkMatrix& viewMatrix, in stencilPath() argument
925 canDrawArgs.fViewMatrix = &viewMatrix; in stencilPath()
943 args.fViewMatrix = &viewMatrix; in stencilPath()
959 const SkMatrix& viewMatrix, in drawTextureSet() argument
974 mode, aaType, constraint, viewMatrix, std::move(texXform)); in drawTextureSet()
1003 const SkMatrix& viewMatrix, in drawAtlas() argument
1016 GrOp::Owner op = GrDrawAtlasOp::Make(fContext, std::move(paint), viewMatrix, in drawAtlas()
1026 const SkMatrix& viewMatrix, in drawRRect() argument
1054 rrect.transform(viewMatrix, &devRRect)) { in drawRRect()
1092 viewMatrix.rectStaysRect() && viewMatrix.isSimilarity()) { in drawRRect()
1097 fContext, std::move(paint), viewMatrix, rrect, stroke, this->caps()->shaderCaps()); in drawRRect()
1101 op = GrFillRRectOp::Make(fContext, std::move(paint), viewMatrix, rrect, rrect.rect(), in drawRRect()
1107 fContext, std::move(paint), viewMatrix, rrect, stroke, this->caps()->shaderCaps()); in drawRRect()
1115 this->drawShapeUsingPathRenderer(clip, std::move(paint), aa, viewMatrix, in drawRRect()
1122 const SkMatrix& viewMatrix, in drawFastShadow() argument
1136 if (tiltZPlane || skipAnalytic || !viewMatrix.rectStaysRect() || !viewMatrix.isSimilarity()) { in drawFastShadow()
1172 viewMatrix.mapPoints((SkPoint*)&devLightPos.fX, 1); in drawFastShadow()
1176 SkScalar devToSrcScale = viewMatrix.isScaleTranslate() ? in drawFastShadow()
1177 SkScalarInvert(SkScalarAbs(viewMatrix[SkMatrix::kMScaleX])) : in drawFastShadow()
1178 sk_float_rsqrt(viewMatrix[SkMatrix::kMScaleX] * viewMatrix[SkMatrix::kMScaleX] + in drawFastShadow()
1179 viewMatrix[SkMatrix::kMSkewX] * viewMatrix[SkMatrix::kMSkewX]); in drawFastShadow()
1210 viewMatrix, in drawFastShadow()
1237 spotOffset.fX += spotScale*viewMatrix[SkMatrix::kMTransX]; in drawFastShadow()
1238 spotOffset.fY += spotScale*viewMatrix[SkMatrix::kMTransY]; in drawFastShadow()
1241 if (viewMatrix.invert(&ctmInverse)) { in drawFastShadow()
1315 viewMatrix, in drawFastShadow()
1332 const SkMatrix& viewMatrix, in drawRegion() argument
1344 if (!SkToBool(viewMatrix.getType() & ~(SkMatrix::kTranslate_Mask)) && in drawRegion()
1345 SkScalarIsInt(viewMatrix.getTranslateX()) && in drawRegion()
1346 SkScalarIsInt(viewMatrix.getTranslateY())) { in drawRegion()
1356 return this->drawPath(clip, std::move(paint), aa, viewMatrix, path, style); in drawRegion()
1360 GrOp::Owner op = GrRegionOp::Make(fContext, std::move(paint), viewMatrix, region, in drawRegion()
1368 const SkMatrix& viewMatrix, in drawOval() argument
1383 this->drawRect(clip, std::move(paint), aa, viewMatrix, oval, &style); in drawOval()
1400 viewMatrix.isSimilarity()) { in drawOval()
1404 op = GrOvalOpFactory::MakeCircleOp(fContext, std::move(paint), viewMatrix, oval, style, in drawOval()
1414 op = GrFillRRectOp::Make(fContext, std::move(paint), viewMatrix, SkRRect::MakeOval(oval), in drawOval()
1419 op = GrOvalOpFactory::MakeOvalOp(fContext, std::move(paint), viewMatrix, oval, style, in drawOval()
1428 this->drawShapeUsingPathRenderer(clip, std::move(paint), aa, viewMatrix, in drawOval()
1436 const SkMatrix& viewMatrix, in drawArc() argument
1454 viewMatrix, in drawArc()
1467 this->drawShapeUsingPathRenderer(clip, std::move(paint), aa, viewMatrix, in drawArc()
1474 const SkMatrix& viewMatrix, in drawImageLattice() argument
1489 GrLatticeOp::MakeNonAA(fContext, std::move(paint), viewMatrix, std::move(view), in drawImageLattice()
1539 const SkMatrix& viewMatrix, in drawPath() argument
1548 this->drawShape(clip, std::move(paint), aa, viewMatrix, std::move(shape)); in drawPath()
1554 const SkMatrix& viewMatrix, in drawShape() argument
1563 this->drawPaint(clip, std::move(paint), viewMatrix); in drawShape()
1571 this->drawShapeUsingPathRenderer(clip, std::move(paint), aa, viewMatrix, std::move(shape), in drawShape()
1584 const SkMatrix& viewMatrix, in drawAndStencilPath() argument
1617 canDrawArgs.fViewMatrix = &viewMatrix; in drawAndStencilPath()
1638 &viewMatrix, in drawAndStencilPath()
1659 GrAA aa, const SkMatrix& viewMatrix, in drawStrokedLine() argument
1699 this->fillQuadWithEdgeAA(clip, std::move(paint), aa, edgeAA, viewMatrix, corners, nullptr); in drawStrokedLine()
1703 const SkMatrix& viewMatrix, const GrStyledShape& shape) { in drawSimpleShape() argument
1721 !SkDrawTreatAAStrokeAsHairline(shape.style().strokeRec().getWidth(), viewMatrix, in drawSimpleShape()
1723 this->drawStrokedLine(clip, std::move(*paint), aa, viewMatrix, linePts, in drawSimpleShape()
1729 this->drawRect(clip, std::move(*paint), aa, viewMatrix, rrect.rect(), in drawSimpleShape()
1733 this->drawOval(clip, std::move(*paint), aa, viewMatrix, rrect.rect(), in drawSimpleShape()
1737 this->drawRRect(clip, std::move(*paint), aa, viewMatrix, rrect, shape.style()); in drawSimpleShape()
1740 viewMatrix.rectStaysRect()) { in drawSimpleShape()
1747 fContext, std::move(*paint), viewMatrix, rects); in drawSimpleShape()
1762 const SkMatrix& viewMatrix, in drawShapeUsingPathRenderer() argument
1769 if (!viewMatrix.isFinite() || !shape.bounds().isFinite()) { in drawShapeUsingPathRenderer()
1780 canDrawArgs.fViewMatrix = &viewMatrix; in drawShapeUsingPathRenderer()
1814 if (this->drawSimpleShape(clip, &paint, aa, viewMatrix, shape)) { in drawShapeUsingPathRenderer()
1824 SkScalar styleScale = GrStyle::MatrixToScaleFactor(viewMatrix); in drawShapeUsingPathRenderer()
1868 &viewMatrix, in drawShapeUsingPathRenderer()