Lines Matching defs:const
65 SkMatrix& SkMatrix::set9(const SkScalar buffer[]) {
71 SkMatrix& SkMatrix::setAffine(const SkScalar buffer[]) {
94 static const int32_t kScalar1Int = 0x3f800000;
96 uint8_t SkMatrix::computePerspectiveTypeMask() const {
111 uint8_t SkMatrix::computeTypeMask() const {
174 bool operator==(const SkMatrix& a, const SkMatrix& b) {
175 const SkScalar* SK_RESTRICT ma = a.fMat;
176 const SkScalar* SK_RESTRICT mb = b.fMat;
194 bool SkMatrix::isSimilarity(SkScalar tol) const {
223 bool SkMatrix::preservesRightAngles(SkScalar tol) const {
278 const unsigned mask = this->getType();
394 const float invX = 1.f / divx;
395 const float invY = 1.f / divy;
412 const SkScalar oneMinusCosV = 1 - cosV;
429 SkMatrix& SkMatrix::setRSXform(const SkRSXform& xform) {
547 bool SkMatrix::setRectToRect(const SkRect& src, const SkRect& dst, ScaleToFit align) {
604 static inline float rowcol3(const float row[], const float col[]) {
612 SkMatrix& SkMatrix::setConcat(const SkMatrix& a, const SkMatrix& b) {
683 SkMatrix& SkMatrix::preConcat(const SkMatrix& mat) {
692 SkMatrix& SkMatrix::postConcat(const SkMatrix& mat) {
723 static double sk_determinant(const float mat[9], int isPerspective) {
742 static double sk_inv_determinant(const float mat[9], int isPerspective) {
764 bool SkMatrix::asAffine(SkScalar affine[6]) const {
779 void SkMatrix::mapPoints(SkPoint dst[], const SkPoint src[], int count) const {
786 void SkMatrix::mapXY(SkScalar x, SkScalar y, SkPoint* result) const {
791 void SkMatrix::ComputeInv(SkScalar dst[9], const SkScalar src[9], double invDet, bool isPersp) {
822 bool SkMatrix::invertNonIdentity(SkMatrix* inv) const {
896 void SkMatrix::Identity_pts(const SkMatrix& m, SkPoint dst[], const SkPoint src[], int count) {
904 void SkMatrix::Trans_pts(const SkMatrix& m, SkPoint dst[], const SkPoint src[], int count) {
932 void SkMatrix::Scale_pts(const SkMatrix& m, SkPoint dst[], const SkPoint src[], int count) {
963 void SkMatrix::Persp_pts(const SkMatrix& m, SkPoint dst[],
964 const SkPoint src[], int count) {
991 void SkMatrix::Affine_vpts(const SkMatrix& m, SkPoint dst[], const SkPoint src[], int count) {
1020 const SkMatrix::MapPtsProc SkMatrix::gMapPtsProcs[] = {
1034 void SkMatrixPriv::MapHomogeneousPointsWithStride(const SkMatrix& mx, SkPoint3 dst[],
1035 size_t dstStride, const SkPoint3 src[],
1050 src = reinterpret_cast<const SkPoint3*>(reinterpret_cast<const char*>(src) +
1061 src = reinterpret_cast<const SkPoint3*>(reinterpret_cast<const char*>(src) + srcStride);
1062 const SkScalar* mat = mx.fMat;
1074 void SkMatrix::mapHomogeneousPoints(SkPoint3 dst[], const SkPoint3 src[], int count) const {
1079 void SkMatrix::mapHomogeneousPoints(SkPoint3 dst[], const SkPoint src[], int count) const {
1105 void SkMatrix::mapVectors(SkPoint dst[], const SkPoint src[], int count) const {
1127 static Sk4f sort_as_rect(const Sk4f& ltrb) {
1136 void SkMatrix::mapRectScaleTranslate(SkRect* dst, const SkRect& src) const {
1149 bool SkMatrix::mapRect(SkRect* dst, const SkRect& src, SkApplyPerspectiveClip pc) const {
1178 SkScalar SkMatrix::mapRadius(SkScalar radius) const {
1194 void SkMatrix::Persp_xy(const SkMatrix& m, SkScalar sx, SkScalar sy,
1208 void SkMatrix::RotTrans_xy(const SkMatrix& m, SkScalar sx, SkScalar sy,
1221 void SkMatrix::Rot_xy(const SkMatrix& m, SkScalar sx, SkScalar sy,
1236 void SkMatrix::ScaleTrans_xy(const SkMatrix& m, SkScalar sx, SkScalar sy,
1245 void SkMatrix::Scale_xy(const SkMatrix& m, SkScalar sx, SkScalar sy,
1256 void SkMatrix::Trans_xy(const SkMatrix& m, SkScalar sx, SkScalar sy,
1264 void SkMatrix::Identity_xy(const SkMatrix& m, SkScalar sx, SkScalar sy,
1272 const SkMatrix::MapXYProc SkMatrix::gMapXYProcs[] = {
1289 bool SkMatrix::isFixedStepInX() const {
1293 SkVector SkMatrix::fixedStepInX(SkScalar y) const {
1311 bool SkMatrix::Poly2Proc(const SkPoint srcPt[], SkMatrix* dst) {
1327 bool SkMatrix::Poly3Proc(const SkPoint srcPt[], SkMatrix* dst) {
1343 bool SkMatrix::Poly4Proc(const SkPoint srcPt[], SkMatrix* dst) {
1399 typedef bool (*PolyMapProc)(const SkPoint[], SkMatrix*);
1403 bool SkMatrix::setPolyToPoly(const SkPoint src[], const SkPoint dst[], int count) {
1418 const PolyMapProc gPolyMapProcs[] = {
1447 const SkScalar m[9],
1540 SkScalar SkMatrix::getMinScale() const {
1549 SkScalar SkMatrix::getMaxScale() const {
1558 bool SkMatrix::getMinMaxScales(SkScalar scaleFactors[2]) const {
1562 const SkMatrix& SkMatrix::I() {
1568 const SkMatrix& SkMatrix::InvalidMatrix() {
1577 bool SkMatrix::decomposeScale(SkSize* scale, SkMatrix* remaining) const {
1582 const SkScalar sx = SkVector::Length(this->getScaleX(), this->getSkewY());
1583 const SkScalar sy = SkVector::Length(this->getSkewX(), this->getScaleY());
1601 size_t SkMatrix::writeToMemory(void* buffer) const {
1603 static const size_t sizeInMemory = 9 * sizeof(SkScalar);
1610 size_t SkMatrix::readFromMemory(const void* buffer, size_t length) {
1611 static const size_t sizeInMemory = 9 * sizeof(SkScalar);
1622 void SkMatrix::dump() const {
1630 void SkMatrix::dump(std::string& desc, int depth) const {
1647 bool SkTreatAsSprite(const SkMatrix& mat, const SkISize& size, const SkSamplingOptions& sampling,
1648 const SkPaint& paint) {
1656 static const unsigned kAntiAliasSubpixelBits = 4;
1658 const unsigned subpixelBits = paint.isAntiAlias() ? kAntiAliasSubpixelBits : 0;
1694 const float scale = 1 << subpixelBits;
1713 bool SkDecomposeUpper2x2(const SkMatrix& matrix,
1810 void SkRSXform::toQuad(SkScalar width, SkScalar height, SkPoint quad[4]) const {
1820 const SkScalar m00 = fSCos;
1821 const SkScalar m01 = -fSSin;
1822 const SkScalar m02 = fTx;
1823 const SkScalar m10 = -m01;
1824 const SkScalar m11 = m00;
1825 const SkScalar m12 = fTy;
1834 void SkRSXform::toTriStrip(SkScalar width, SkScalar height, SkPoint strip[4]) const {
1835 const SkScalar m00 = fSCos;
1836 const SkScalar m01 = -fSSin;
1837 const SkScalar m02 = fTx;
1838 const SkScalar m10 = -m01;
1839 const SkScalar m11 = m00;
1840 const SkScalar m12 = fTy;
1850 SkScalar SkMatrixPriv::DifferentialAreaScale(const SkMatrix& m, const SkPoint& p) {