Lines Matching refs:drawMatrix
145 const SkMatrix& initialMatrix, const SkMatrix& drawMatrix) { in check_integer_translate() argument
146 if (initialMatrix.getScaleX() != drawMatrix.getScaleX() || in check_integer_translate()
147 initialMatrix.getScaleY() != drawMatrix.getScaleY() || in check_integer_translate()
148 initialMatrix.getSkewX() != drawMatrix.getSkewX() || in check_integer_translate()
149 initialMatrix.getSkewY() != drawMatrix.getSkewY()) { in check_integer_translate()
157 SkVector translation = drawMatrix.mapXY(0, 0) - initialMatrix.mapXY(0, 0); in check_integer_translate()
179 bool canReuse(const SkPaint& paint, const SkMatrix& drawMatrix) const override;
267 bool PathSubRun::canReuse(const SkPaint& paint, const SkMatrix& drawMatrix) const { in canReuse()
456 bool canReuse(const SkPaint& paint, const SkMatrix& drawMatrix) const override;
460 size_t vertexStride(const SkMatrix& drawMatrix) const override;
481 SkRect deviceRect(const SkMatrix& drawMatrix, SkPoint drawOrigin) const;
566 DirectMaskSubRun::canReuse(const SkPaint& paint, const SkMatrix& drawMatrix) const { in canReuse()
567 auto [reuse, translation] = check_integer_translate(fBlob->initialMatrix(), drawMatrix); in canReuse()
640 const SkMatrix& drawMatrix = viewMatrix.localToDevice(); in makeAtlasTextOp() local
646 const SkRect subRunBounds = this->deviceRect(drawMatrix, drawOrigin); in makeAtlasTextOp()
672 drawMatrix, in makeAtlasTextOp()
804 SkRect DirectMaskSubRun::deviceRect(const SkMatrix& drawMatrix, SkPoint drawOrigin) const { in deviceRect() argument
808 SkVector offset = drawMatrix.mapPoint(drawOrigin) - fBlob->initialMatrix().mapOrigin(); in deviceRect()
848 bool canReuse(const SkPaint& paint, const SkMatrix& drawMatrix) const override;
869 size_t vertexStride(const SkMatrix& drawMatrix) const override;
874 SkRect deviceRect(const SkMatrix& drawMatrix, SkPoint drawOrigin) const;
942 bool TransformedMaskSubRun::canReuse(const SkPaint& paint, const SkMatrix& drawMatrix) const { in canReuse()
959 const SkMatrix& drawMatrix = viewMatrix.localToDevice(); in makeAtlasTextOp() local
966 drawMatrix, in makeAtlasTextOp()
979 this->deviceRect(drawMatrix, drawOrigin), in makeAtlasTextOp()
1048 size_t TransformedMaskSubRun::vertexStride(const SkMatrix& drawMatrix) const { in vertexStride()
1051 return drawMatrix.hasPerspective() ? sizeof(Mask3DVertex) : sizeof(Mask2DVertex); in vertexStride()
1053 return drawMatrix.hasPerspective() ? sizeof(ARGB3DVertex) : sizeof(ARGB2DVertex); in vertexStride()
1055 SkASSERT(!drawMatrix.hasPerspective()); in vertexStride()
1065 SkRect TransformedMaskSubRun::deviceRect(const SkMatrix& drawMatrix, SkPoint drawOrigin) const { in deviceRect() argument
1068 return drawMatrix.mapRect(outBounds); in deviceRect()
1104 bool canReuse(const SkPaint& paint, const SkMatrix& drawMatrix) const override;
1125 size_t vertexStride(const SkMatrix& drawMatrix) const override;
1130 SkRect deviceRect(const SkMatrix& drawMatrix, SkPoint drawOrigin) const;
1202 const SkMatrix& drawMatrix, in calculate_sdf_parameters() argument
1216 uint32_t DFGPFlags = drawMatrix.isSimilarity() ? kSimilarity_DistanceFieldEffectFlag : 0; in calculate_sdf_parameters()
1217 DFGPFlags |= drawMatrix.isScaleTranslate() ? kScaleOnly_DistanceFieldEffectFlag : 0; in calculate_sdf_parameters()
1239 const SkMatrix& drawMatrix = viewMatrix.localToDevice(); in makeAtlasTextOp() local
1245 calculate_sdf_parameters(*sdc, drawMatrix, fUseLCDText, fAntiAliased); in makeAtlasTextOp()
1249 drawMatrix, in makeAtlasTextOp()
1262 this->deviceRect(drawMatrix, drawOrigin), in makeAtlasTextOp()
1284 bool SDFTSubRun::canReuse(const SkPaint& paint, const SkMatrix& drawMatrix) const { in canReuse()
1289 SkScalar newMaxScale = drawMatrix.getMaxScale(); in canReuse()
1309 size_t SDFTSubRun::vertexStride(const SkMatrix& drawMatrix) const { in vertexStride()
1333 SkRect SDFTSubRun::deviceRect(const SkMatrix& drawMatrix, SkPoint drawOrigin) const { in deviceRect() argument
1336 return drawMatrix.mapRect(outBounds); in deviceRect()
1375 const SkMatrix& drawMatrix, in Make() argument
1420 key.fSetOfDrawingTypes |= control.drawingType(run.font(), paint, drawMatrix); in Make()
1426 SkPoint mappedOrigin = drawMatrix.mapOrigin(); in Make()
1427 key.fDrawMatrix = drawMatrix; in Make()
1487 const SkMatrix& drawMatrix, in Make() argument
1509 GrTextBlob(bytesNeededForSubRun, drawMatrix, initialLuminance)}; in Make()
1513 drawMatrix, in Make()
1529 bool GrTextBlob::canReuse(const SkPaint& paint, const SkMatrix& drawMatrix) const { in canReuse()
1534 fInitialMatrix != drawMatrix) in canReuse()
1548 if (!subRun.canReuse(paint, drawMatrix)) { in canReuse()
1594 const SkMatrix& drawMatrix, in GrTextBlob() argument
1598 , fInitialMatrix{drawMatrix}
1650 size_t vertexStride(const SkMatrix& drawMatrix) const override;
1758 const SkMatrix& drawMatrix = viewMatrix.localToDevice(); in makeAtlasTextOp() local
1791 drawMatrix, in makeAtlasTextOp()
1906 size_t vertexStride(const SkMatrix& drawMatrix) const override;
1911 SkRect deviceRect(const SkMatrix& drawMatrix, SkPoint drawOrigin) const;
1973 const SkMatrix& drawMatrix = viewMatrix.localToDevice(); in makeAtlasTextOp() local
1982 drawMatrix, in makeAtlasTextOp()
1996 this->deviceRect(drawMatrix, drawOrigin), in makeAtlasTextOp()
2065 size_t TransformedMaskSubRunNoCache::vertexStride(const SkMatrix& drawMatrix) const { in vertexStride()
2068 return drawMatrix.hasPerspective() ? sizeof(Mask3DVertex) : sizeof(Mask2DVertex); in vertexStride()
2070 return drawMatrix.hasPerspective() ? sizeof(ARGB3DVertex) : sizeof(ARGB2DVertex); in vertexStride()
2072 SkASSERT(!drawMatrix.hasPerspective()); in vertexStride()
2083 const SkMatrix& drawMatrix, SkPoint drawOrigin) const { in deviceRect() argument
2086 return drawMatrix.mapRect(outBounds); in deviceRect()
2128 size_t vertexStride(const SkMatrix& drawMatrix) const override;
2133 SkRect deviceRect(const SkMatrix& drawMatrix, SkPoint drawOrigin) const;
2208 const SkMatrix& drawMatrix = viewMatrix.localToDevice(); in makeAtlasTextOp() local
2214 calculate_sdf_parameters(*sdc, drawMatrix, fUseLCDText, fAntiAliased); in makeAtlasTextOp()
2218 drawMatrix, in makeAtlasTextOp()
2232 this->deviceRect(drawMatrix, drawOrigin), in makeAtlasTextOp()
2252 size_t SDFTSubRunNoCache::vertexStride(const SkMatrix& drawMatrix) const { in vertexStride()
2275 SkRect SDFTSubRunNoCache::deviceRect(const SkMatrix& drawMatrix, SkPoint drawOrigin) const { in deviceRect() argument
2278 return drawMatrix.mapRect(outBounds); in deviceRect()