/third_party/flutter/skia/src/core/ |
D | SkMatrix44.cpp | 36 const SkMScalar* SK_RESTRICT a = &fMat[0][0]; in operator ==() 37 const SkMScalar* SK_RESTRICT b = &other.fMat[0][0]; in operator ==() 64 if (0 != perspX() || 0 != perspY() || 0 != perspZ() || 1 != fMat[3][3]) { in recomputeTypeMask() 78 if (0 != fMat[1][0] || 0 != fMat[0][1] || 0 != fMat[0][2] || in recomputeTypeMask() 79 0 != fMat[2][0] || 0 != fMat[1][2] || 0 != fMat[2][1]) { in recomputeTypeMask() 88 const SkMScalar* src = &fMat[0][0]; in asColMajorf() 99 dst[0] = fMat[0][0]; dst[1] = fMat[1][0]; dst[2] = fMat[2][0]; dst[3] = fMat[3][0]; in as3x4RowMajorf() 100 dst[4] = fMat[0][1]; dst[5] = fMat[1][1]; dst[6] = fMat[2][1]; dst[7] = fMat[3][1]; in as3x4RowMajorf() 101 dst[8] = fMat[0][2]; dst[9] = fMat[1][2]; dst[10] = fMat[2][2]; dst[11] = fMat[3][2]; in as3x4RowMajorf() 105 const SkMScalar* src = &fMat[0][0]; in asColMajord() [all …]
|
D | SkMatrix.cpp | 69 memcpy(fMat, buffer, 9 * sizeof(SkScalar)); in set9() 70 normalize_perspective(fMat); in set9() 76 fMat[kMScaleX] = buffer[kAScaleX]; in setAffine() 77 fMat[kMSkewX] = buffer[kASkewX]; in setAffine() 78 fMat[kMTransX] = buffer[kATransX]; in setAffine() 79 fMat[kMSkewY] = buffer[kASkewY]; in setAffine() 80 fMat[kMScaleY] = buffer[kAScaleY]; in setAffine() 81 fMat[kMTransY] = buffer[kATransY]; in setAffine() 82 fMat[kMPersp0] = 0; in setAffine() 83 fMat[kMPersp1] = 0; in setAffine() [all …]
|
D | SkDraw_vertices.cpp | 23 float fMat[12]; // column major member 26 return Sk4f::Load(&fMat[0]) * x + Sk4f::Load(&fMat[4]) * y + Sk4f::Load(&fMat[8]); in map() 30 fMat[ 0] = a.dot(0, b.getScaleX(), b.getSkewY()); in setConcat() 31 fMat[ 1] = a.dot(1, b.getScaleX(), b.getSkewY()); in setConcat() 32 fMat[ 2] = a.dot(2, b.getScaleX(), b.getSkewY()); in setConcat() 33 fMat[ 3] = a.dot(3, b.getScaleX(), b.getSkewY()); in setConcat() 35 fMat[ 4] = a.dot(0, b.getSkewX(), b.getScaleY()); in setConcat() 36 fMat[ 5] = a.dot(1, b.getSkewX(), b.getScaleY()); in setConcat() 37 fMat[ 6] = a.dot(2, b.getSkewX(), b.getScaleY()); in setConcat() 38 fMat[ 7] = a.dot(3, b.getSkewX(), b.getScaleY()); in setConcat() [all …]
|
D | SkColorFilter_Matrix.cpp | 112 return MakeMatrix(cm.fMat, SkColorFilter_Matrix::Domain::kRGBA); in Matrix()
|
/third_party/skia/src/core/ |
D | SkM44.cpp | 25 sk4f a0 = sk4f::Load(fMat + 0); in operator ==() 26 sk4f a1 = sk4f::Load(fMat + 4); in operator ==() 27 sk4f a2 = sk4f::Load(fMat + 8); in operator ==() 28 sk4f a3 = sk4f::Load(fMat + 12); in operator ==() 30 sk4f b0 = sk4f::Load(other.fMat + 0); in operator ==() 31 sk4f b1 = sk4f::Load(other.fMat + 4); in operator ==() 32 sk4f b2 = sk4f::Load(other.fMat + 8); in operator ==() 33 sk4f b3 = sk4f::Load(other.fMat + 12); in operator ==() 47 transpose_arrays(v, fMat); in getRowMajor() 51 sk4f c0 = sk4f::Load(a.fMat + 0); in setConcat() [all …]
|
D | SkMatrix.cpp | 30 if (0 == fMat[SkMatrix::kMPersp0] && 0 == fMat[SkMatrix::kMPersp1]) { in doNormalizePerspective() 31 SkScalar p2 = fMat[SkMatrix::kMPersp2]; in doNormalizePerspective() 35 fMat[i] = SkDoubleToScalar(fMat[i] * inv); in doNormalizePerspective() 37 fMat[SkMatrix::kMPersp2] = 1; in doNormalizePerspective() 66 memcpy(fMat, buffer, 9 * sizeof(SkScalar)); in set9() 72 fMat[kMScaleX] = buffer[kAScaleX]; in setAffine() 73 fMat[kMSkewX] = buffer[kASkewX]; in setAffine() 74 fMat[kMTransX] = buffer[kATransX]; in setAffine() 75 fMat[kMSkewY] = buffer[kASkewY]; in setAffine() 76 fMat[kMScaleY] = buffer[kAScaleY]; in setAffine() [all …]
|
D | SkDraw_vertices.cpp | 27 float fMat[12]; // column major member 30 return Sk4f::Load(&fMat[0]) * x + Sk4f::Load(&fMat[4]) * y + Sk4f::Load(&fMat[8]); in map() 37 fMat[ 0] = a.dot(0, b.getScaleX(), b.getSkewY()); in setConcat() 38 fMat[ 1] = a.dot(1, b.getScaleX(), b.getSkewY()); in setConcat() 39 fMat[ 2] = a.dot(2, b.getScaleX(), b.getSkewY()); in setConcat() 40 fMat[ 3] = a.dot(3, b.getScaleX(), b.getSkewY()); in setConcat() 42 fMat[ 4] = a.dot(0, b.getSkewX(), b.getScaleY()); in setConcat() 43 fMat[ 5] = a.dot(1, b.getSkewX(), b.getScaleY()); in setConcat() 44 fMat[ 6] = a.dot(2, b.getSkewX(), b.getScaleY()); in setConcat() 45 fMat[ 7] = a.dot(3, b.getSkewX(), b.getScaleY()); in setConcat() [all …]
|
D | SkMatrixPriv.h | 155 return &a == &b || 0 == memcmp(a.fMat, b.fMat, sizeof(a.fMat)); in CheapEqual() 158 static const SkScalar* M44ColMajor(const SkM44& m) { return m.fMat; } in M44ColMajor()
|
D | SkColorFilter_Matrix.cpp | 240 return MakeMatrix(cm.fMat.data(), SkColorFilter_Matrix::Domain::kRGBA); in Matrix() 248 return MakeMatrix(cm.fMat.data(), SkColorFilter_Matrix::Domain::kHSLA); in HSLAMatrix()
|
/third_party/flutter/skia/src/effects/ |
D | SkColorMatrix.cpp | 54 memset(fMat, 0, sizeof(fMat)); in setIdentity() 55 fMat[kR_Scale] = fMat[kG_Scale] = fMat[kB_Scale] = fMat[kA_Scale] = 1; in setIdentity() 59 memset(fMat, 0, sizeof(fMat)); in setScale() 60 fMat[kR_Scale] = rScale; in setScale() 61 fMat[kG_Scale] = gScale; in setScale() 62 fMat[kB_Scale] = bScale; in setScale() 63 fMat[kA_Scale] = aScale; in setScale() 67 fMat[kR_Trans] += dr; in postTranslate() 68 fMat[kG_Trans] += dg; in postTranslate() 69 fMat[kB_Trans] += db; in postTranslate() [all …]
|
/third_party/skia/src/effects/ |
D | SkColorMatrix.cpp | 13 SkColorMatrix_RGB2YUV(cs, m.fMat.data()); in RGBtoYUV() 19 SkColorMatrix_YUV2RGB(cs, m.fMat.data()); in YUVtoRGB() 66 fMat.fill(0.0f); in setIdentity() 67 fMat[kR_Scale] = fMat[kG_Scale] = fMat[kB_Scale] = fMat[kA_Scale] = 1; in setIdentity() 71 fMat.fill(0.0f); in setScale() 72 fMat[kR_Scale] = rScale; in setScale() 73 fMat[kG_Scale] = gScale; in setScale() 74 fMat[kB_Scale] = bScale; in setScale() 75 fMat[kA_Scale] = aScale; in setScale() 79 fMat[kR_Trans] += dr; in postTranslate() [all …]
|
/third_party/flutter/skia/include/effects/ |
D | SkColorMatrix.h | 20 memcpy(fMat, src, sizeof(fMat)); in setRowMajor() 24 memcpy(dst, fMat, sizeof(fMat)); in getRowMajor() 47 return 0 == memcmp(fMat, other.fMat, sizeof(fMat)); 53 memcpy(m, fMat, sizeof(fMat)); in get20() 57 memcpy(fMat, m, sizeof(fMat)); in set20() 61 float fMat[20];
|
/third_party/flutter/skia/include/core/ |
D | SkMatrix.h | 307 return fMat[index]; 319 return fMat[index]; in get() 327 SkScalar getScaleX() const { return fMat[kMScaleX]; } in getScaleX() 334 SkScalar getScaleY() const { return fMat[kMScaleY]; } in getScaleY() 342 SkScalar getSkewY() const { return fMat[kMSkewY]; } in getSkewY() 350 SkScalar getSkewX() const { return fMat[kMSkewX]; } in getSkewX() 357 SkScalar getTranslateX() const { return fMat[kMTransX]; } in getTranslateX() 364 SkScalar getTranslateY() const { return fMat[kMTransY]; } in getTranslateY() 370 SkScalar getPerspX() const { return fMat[kMPersp0]; } in getPerspX() 376 SkScalar getPerspY() const { return fMat[kMPersp1]; } in getPerspY() [all …]
|
D | SkMatrix44.h | 153 : fMat{{ 1, 0, 0, 0, }, in SkMatrix44() 160 : fMat{{ SK_MScalarNaN, SK_MScalarNaN, SK_MScalarNaN, SK_MScalarNaN }, in SkMatrix44() 260 return fMat[col][row]; in get() 272 fMat[col][row] = value; in set() 448 SkMScalar fMat[4][4]; 456 SkMScalar transX() const { return fMat[3][0]; } in transX() 457 SkMScalar transY() const { return fMat[3][1]; } in transY() 458 SkMScalar transZ() const { return fMat[3][2]; } in transZ() 460 SkMScalar scaleX() const { return fMat[0][0]; } in scaleX() 461 SkMScalar scaleY() const { return fMat[1][1]; } in scaleY() [all …]
|
/third_party/skia/include/core/ |
D | SkMatrix.h | 374 return fMat[index]; 386 return fMat[index]; in get() 399 return fMat[r*3 + c]; in rc() 407 SkScalar getScaleX() const { return fMat[kMScaleX]; } in getScaleX() 414 SkScalar getScaleY() const { return fMat[kMScaleY]; } in getScaleY() 422 SkScalar getSkewY() const { return fMat[kMSkewY]; } in getSkewY() 430 SkScalar getSkewX() const { return fMat[kMSkewX]; } in getSkewX() 437 SkScalar getTranslateX() const { return fMat[kMTransX]; } in getTranslateX() 444 SkScalar getTranslateY() const { return fMat[kMTransY]; } in getTranslateY() 450 SkScalar getPerspX() const { return fMat[kMPersp0]; } in getPerspX() [all …]
|
D | SkM44.h | 140 : fMat{1, 0, 0, 0, in SkM44() 159 : fMat{SK_ScalarNaN, SK_ScalarNaN, SK_ScalarNaN, SK_ScalarNaN, in SkM44() 173 : fMat{m0, m1, m2, m3, in SkM44() 241 memcpy(v, fMat, sizeof(fMat)); in getColMajor() 248 return fMat[c*4 + r]; in rc() 253 fMat[c*4 + r] = value; in setRC() 258 return {fMat[i + 0], fMat[i + 4], fMat[i + 8], fMat[i + 12]}; in row() 262 return {fMat[i*4 + 0], fMat[i*4 + 1], fMat[i*4 + 2], fMat[i*4 + 3]}; in col() 267 fMat[i + 0] = v.x; in setRow() 268 fMat[i + 4] = v.y; in setRow() [all …]
|
/third_party/flutter/skia/src/utils/ |
D | SkCamera.cpp | 96 memset(fMat, 0, sizeof(fMat)); in reset() 97 fMat[0][0] = fMat[1][1] = fMat[2][2] = SK_Scalar1; in reset() 101 memset(fMat, 0, sizeof(fMat)); in setTranslate() 102 fMat[0][0] = x; in setTranslate() 103 fMat[1][1] = y; in setTranslate() 104 fMat[2][2] = z; in setTranslate() 138 fMat[i][3] += SkScalarDot(3, &fMat[i][0], 1, col, 1); in preTranslate() 169 c->fMat[i][j] = SkScalarDot(3, &a.fMat[i][0], 1, &b.fMat[0][j], 4); in setConcat() 171 c->fMat[i][3] = SkScalarDot(3, &a.fMat[i][0], 1, in setConcat() 172 &b.fMat[0][3], 4) + a.fMat[i][3]; in setConcat() [all …]
|
/third_party/flutter/skia/src/gpu/ |
D | GrDistanceFieldGenFromVector.cpp | 100 return fMat[index]; in operator []() 105 return fMat[index]; in operator []() 110 fMat[0] = m11; in setAffine() 111 fMat[1] = m12; in setAffine() 112 fMat[2] = m13; in setAffine() 113 fMat[3] = m21; in setAffine() 114 fMat[4] = m22; in setAffine() 115 fMat[5] = m23; in setAffine() 121 fMat[0] = fMat[4] = 1.0; in reset() 122 fMat[1] = fMat[3] = in reset() [all …]
|
/third_party/skia/src/gpu/ |
D | GrDistanceFieldGenFromVector.cpp | 82 return fMat[index]; in operator []() 87 return fMat[index]; in operator []() 92 fMat[0] = m11; in setAffine() 93 fMat[1] = m12; in setAffine() 94 fMat[2] = m13; in setAffine() 95 fMat[3] = m21; in setAffine() 96 fMat[4] = m22; in setAffine() 97 fMat[5] = m23; in setAffine() 103 fMat[0] = fMat[4] = 1.0; in reset() 104 fMat[1] = fMat[3] = in reset() [all …]
|
/third_party/skia/include/effects/ |
D | SkColorMatrix.h | 27 : fMat { m00, m01, m02, m03, m04, in SkColorMatrix() 46 void setRowMajor(const float src[20]) { std::copy_n(src, 20, fMat.begin()); } in setRowMajor() 47 void getRowMajor(float dst[20]) const { std::copy_n(fMat.begin(), 20, dst); } in getRowMajor() 50 std::array<float, 20> fMat;
|
/third_party/flutter/skia/include/utils/ |
D | SkCamera.h | 39 SkScalar fMat[3][4]; member 45 fMat[row][0] = a; 46 fMat[row][1] = b; 47 fMat[row][2] = c; 48 fMat[row][3] = d;
|
/third_party/skia/src/sksl/ |
D | SkSLBuiltinTypes.h | 110 const std::unique_ptr<Type> fMat; variable
|
D | SkSLBuiltinTypes.cpp | 148 , fMat(Type::MakeGenericType("$mat", {fFloat2x2.get(), fFloat2x3.get(), fFloat2x4.get(),
|