Home
last modified time | relevance | path

Searched refs:fMat (Results 1 – 9 of 9) sorted by relevance

/external/skia/src/core/
DSkMatrix.cpp40 fMat[kMScaleX] = fMat[kMScaleY] = SK_Scalar1; in reset()
41 fMat[kMSkewX] = fMat[kMSkewY] = in reset()
42 fMat[kMTransX] = fMat[kMTransY] = in reset()
43 fMat[kMPersp0] = fMat[kMPersp1] = 0; in reset()
44 fMat[kMPersp2] = kMatrix22Elem; in reset()
74 if (SkScalarAs2sCompliment(fMat[kMPersp0]) | in computeTypeMask()
75 SkScalarAs2sCompliment(fMat[kMPersp1]) | in computeTypeMask()
76 (SkScalarAs2sCompliment(fMat[kMPersp2]) - kPersp1Int)) { in computeTypeMask()
80 if (SkScalarAs2sCompliment(fMat[kMTransX]) | in computeTypeMask()
81 SkScalarAs2sCompliment(fMat[kMTransY])) { in computeTypeMask()
[all …]
/external/skia/src/utils/
DSkColorMatrix.cpp10 memset(fMat, 0, sizeof(fMat)); in setIdentity()
11 fMat[kRScale] = fMat[kGScale] = fMat[kBScale] = fMat[kAScale] = SK_Scalar1; in setIdentity()
17 memset(fMat, 0, sizeof(fMat)); in setScale()
18 fMat[kRScale] = rScale; in setScale()
19 fMat[kGScale] = gScale; in setScale()
20 fMat[kBScale] = bScale; in setScale()
21 fMat[kAScale] = aScale; in setScale()
47 fMat[index[0]] = cosine; in setSinCos()
48 fMat[index[1]] = sine; in setSinCos()
49 fMat[index[2]] = -sine; in setSinCos()
[all …]
DSkCamera.cpp169 memset(fMat, 0, sizeof(fMat)); in reset()
170 fMat[0][0] = fMat[1][1] = fMat[2][2] = SK_Scalar1; in reset()
175 memset(fMat, 0, sizeof(fMat)); in setTranslate()
176 fMat[0][0] = x; in setTranslate()
177 fMat[1][1] = y; in setTranslate()
178 fMat[2][2] = z; in setTranslate()
216 fMat[i][3] += SkScalarDot(3, &fMat[i][0], 1, col, 1); in preTranslate()
250 c->fMat[i][j] = SkScalarDot(3, &a.fMat[i][0], 1, &b.fMat[0][j], 4); in setConcat()
251 c->fMat[i][3] = SkScalarDot(3, &a.fMat[i][0], 1, &b.fMat[0][3], 4) + a.fMat[i][3]; in setConcat()
260 SkScalar x = SkScalarDot(3, &fMat[0][0], 1, &src.fX, 1) + fMat[0][3]; in mapPoint()
[all …]
/external/skia/src/gl/
DSkGL.h193 SkGLScalar fMat[16]; member
196 sk_bzero(fMat, sizeof(fMat)); in reset()
197 fMat[0] = fMat[5] = fMat[10] = fMat[15] = SK_GLScalar1; in reset()
201 sk_bzero(fMat, sizeof(fMat)); in set()
202 fMat[0] = SkScalarToGL(m[SkMatrix::kMScaleX]); in set()
203 fMat[4] = SkScalarToGL(m[SkMatrix::kMSkewX]); in set()
204 fMat[12] = SkScalarToGL(m[SkMatrix::kMTransX]); in set()
206 fMat[1] = SkScalarToGL(m[SkMatrix::kMSkewY]); in set()
207 fMat[5] = SkScalarToGL(m[SkMatrix::kMScaleY]); in set()
208 fMat[13] = SkScalarToGL(m[SkMatrix::kMTransY]); in set()
[all …]
DSkGLDevice.cpp124 MAKE_GL(glLoadMatrix)(fGLMatrix.fMat); in updateMatrixClip()
130 SkDebugf("%g ", fGLMatrix.fMat[y*4 + x]); in updateMatrixClip()
/external/skia/include/core/
DSkMatrix.h88 return fMat[index];
93 return fMat[index]; in get()
96 SkScalar getScaleX() const { return fMat[kMScaleX]; } in getScaleX()
97 SkScalar getScaleY() const { return fMat[kMScaleY]; } in getScaleY()
98 SkScalar getSkewY() const { return fMat[kMSkewY]; } in getSkewY()
99 SkScalar getSkewX() const { return fMat[kMSkewX]; } in getSkewX()
100 SkScalar getTranslateX() const { return fMat[kMTransX]; } in getTranslateX()
101 SkScalar getTranslateY() const { return fMat[kMTransY]; } in getTranslateY()
102 SkScalar getPerspX() const { return fMat[kMPersp0]; } in getPerspX()
103 SkScalar getPerspY() const { return fMat[kMPersp1]; } in getPerspY()
[all …]
/external/skia/include/utils/
DSkCamera.h64 SkScalar fMat[3][4]; member
71 fMat[row][0] = a;
72 fMat[row][1] = b;
73 fMat[row][2] = c;
74 fMat[row][3] = d;
/external/skia/include/effects/
DSkColorMatrix.h24 SkScalar fMat[20];
/external/skia/src/effects/
DSkColorMatrixFilter.cpp211 this->setup(cm.fMat); in SkColorMatrixFilter()