Lines Matching defs:matrix
910 SkMatrix matrix;
912 matrix.setScale(SkScalarHalf(oval.width()), SkScalarHalf(oval.height()));
913 matrix.postTranslate(oval.centerX(), oval.centerY());
915 int count = SkConic::BuildUnitArc(start, stop, dir, &matrix, conics);
917 matrix.mapXY(stop.x(), stop.y(), singlePt);
1368 SkMatrix matrix;
1370 matrix.setTranslate(dx, dy);
1371 return this->addPath(path, matrix, mode);
1374 SkPath& SkPath::addPath(const SkPath& srcPath, const SkMatrix& matrix, AddPathMode mode) {
1386 if (kAppend_AddPathMode == mode && !matrix.hasPerspective()) {
1391 matrix.mapPoints(newPts, src->fPathRef->points(), src->countPoints());
1402 SkMatrixPriv::MapPtsProc mapPtsProc = SkMatrixPriv::GetMapPtsProc(matrix);
1408 mapPtsProc(matrix, mappedPts, &pts[0], 1);
1422 mapPtsProc(matrix, mappedPts, &pts[1], 1);
1426 mapPtsProc(matrix, mappedPts, &pts[1], 2);
1430 mapPtsProc(matrix, mappedPts, &pts[1], 2);
1434 mapPtsProc(matrix, mappedPts, &pts[1], 3);
1548 SkMatrix matrix;
1550 matrix.setTranslate(dx, dy);
1551 this->transform(matrix, dst);
1567 void SkPath::transform(const SkMatrix& matrix, SkPath* dst, SkApplyPerspectiveClip pc) const {
1568 if (matrix.isIdentity()) {
1580 if (matrix.hasPerspective()) {
1587 SkPathPriv::PerspectiveClip(*this, matrix, &clipped))
1607 SkConic::TransformW(pts, SK_Scalar1, matrix));
1611 SkConic::TransformW(pts, iter.conicWeight(), matrix));
1627 matrix.mapPoints(ed.writablePoints(), ed.pathRef()->countPoints());
1632 SkPathRef::CreateTransformedCopy(&dst->fPathRef, *fPathRef, matrix);
1646 (!matrix.isScaleTranslate() || !SkPathPriv::IsAxisAligned(*this))) {
1656 matrix.get(SkMatrix::kMScaleX) * matrix.get(SkMatrix::kMScaleY) -
1657 matrix.get(SkMatrix::kMSkewX) * matrix.get(SkMatrix::kMSkewY);
3826 bool SkPathPriv::PerspectiveClip(const SkPath& path, const SkMatrix& matrix, SkPath* clippedPath) {
3827 if (!matrix.hasPerspective()) {
3832 matrix[SkMatrix::kMPersp0],
3833 matrix[SkMatrix::kMPersp1],
3834 matrix[SkMatrix::kMPersp2] - kW0PlaneDistance