Home
last modified time | relevance | path

Searched refs:fMatrix (Results 1 – 25 of 67) sorted by relevance

123

/external/skia/src/animator/
DSkDrawMatrix.cpp56 fMatrix.reset(); in SkDrawMatrix()
81 copy->fMatrix = fMatrix; in deepCopy()
99 if (fMatrix.isIdentity()) { in dump()
104 result = fMatrix[SkMatrix::kMScaleX]; in dump()
107 result = fMatrix.getScaleY(); in dump()
110 result = fMatrix.getSkewX(); in dump()
113 result = fMatrix.getSkewY(); in dump()
116 result = fMatrix.getTranslateX(); in dump()
119 result = fMatrix.getTranslateY(); in dump()
122 result = SkPerspToScalar(fMatrix.getPerspX()); in dump()
[all …]
DSkMatrixParts.cpp16 SkMatrixPart::SkMatrixPart() : fMatrix(NULL) { in SkMatrixPart()
20 fMatrix->dirty(); in dirty()
24 return fMatrix; in getParent()
31 fMatrix = (SkDrawMatrix*) parent; in setParent()
52 fMatrix->rotate(degrees, center); in add()
74 fMatrix->scale(x, y, center); in add()
96 fMatrix->skew(x, y, center); in add()
116 fMatrix->translate(x, y); in add()
153 fMatrix->set(result); in add()
182 fMatrix->set(temp); in add()
[all …]
DSkDrawMatrix.h46 fMatrix.preRotate(degrees, center.fX, center.fY); in rotate()
50 fMatrix.preConcat(src); in set()
54 fMatrix.preScale(scaleX, scaleY, center.fX, center.fY); in scale()
58 fMatrix.preSkew(skewX, skewY, center.fX, center.fY); in skew()
62 fMatrix.preTranslate(x, y); in translate()
67 SkMatrix fMatrix; variable
/external/skia/legacy/src/animator/
DSkDrawMatrix.cpp56 fMatrix.reset(); in SkDrawMatrix()
81 copy->fMatrix = fMatrix; in deepCopy()
99 if (fMatrix.isIdentity()) { in dump()
104 result = fMatrix[SkMatrix::kMScaleX]; in dump()
107 result = fMatrix.getScaleY(); in dump()
110 result = fMatrix.getSkewX(); in dump()
113 result = fMatrix.getSkewY(); in dump()
116 result = fMatrix.getTranslateX(); in dump()
119 result = fMatrix.getTranslateY(); in dump()
122 result = SkPerspToScalar(fMatrix.getPerspX()); in dump()
[all …]
DSkMatrixParts.cpp16 SkMatrixPart::SkMatrixPart() : fMatrix(NULL) { in SkMatrixPart()
20 fMatrix->dirty(); in dirty()
24 return fMatrix; in getParent()
31 fMatrix = (SkDrawMatrix*) parent; in setParent()
52 fMatrix->rotate(degrees, center); in add()
74 fMatrix->scale(x, y, center); in add()
96 fMatrix->skew(x, y, center); in add()
116 fMatrix->translate(x, y); in add()
153 fMatrix->set(result); in add()
182 fMatrix->set(temp); in add()
[all …]
DSkDrawMatrix.h46 fMatrix.preRotate(degrees, center.fX, center.fY); in rotate()
50 fMatrix.preConcat(src); in set()
54 fMatrix.preScale(scaleX, scaleY, center.fX, center.fY); in scale()
58 fMatrix.preSkew(skewX, skewY, center.fX, center.fY); in skew()
62 fMatrix.preTranslate(x, y); in translate()
67 SkMatrix fMatrix; variable
/external/skia/bench/
DMatrixBench.cpp241 fMatrix.setAll(fArray[0], fArray[1], fArray[2], in performTest()
244 always_do(fMatrix.getType()); in performTest()
245 fMatrix.dirtyMatrixTypeCache(); in performTest()
246 always_do(fMatrix.getType()); in performTest()
247 fMatrix.dirtyMatrixTypeCache(); in performTest()
248 always_do(fMatrix.getType()); in performTest()
249 fMatrix.dirtyMatrixTypeCache(); in performTest()
250 always_do(fMatrix.getType()); in performTest()
251 fMatrix.dirtyMatrixTypeCache(); in performTest()
252 always_do(fMatrix.getType()); in performTest()
[all …]
/external/skia/legacy/src/views/
DSkImageView.cpp19 fMatrix = NULL; in SkImageView()
30 if (fMatrix) in ~SkImageView()
31 sk_free(fMatrix); in ~SkImageView()
74 if (fMatrix) in getImageMatrix()
76 SkASSERT(!fMatrix->isIdentity()); in getImageMatrix()
78 *matrix = *fMatrix; in getImageMatrix()
95 if (fMatrix == NULL) in setImageMatrix()
96 fMatrix = (SkMatrix*)sk_malloc_throw(sizeof(SkMatrix)); in setImageMatrix()
97 *fMatrix = *matrix; in setImageMatrix()
102 if (fMatrix) in setImageMatrix()
[all …]
DSkWindow.cpp60 fMatrix.reset(); in SkWindow()
70 if (fMatrix != matrix) { in setMatrix()
71 fMatrix = matrix; in setMatrix()
78 m.setConcat(fMatrix, matrix); in preConcat()
84 m.setConcat(matrix, fMatrix); in postConcat()
127 if (!fMatrix.invert(&inverse)) { in handleInval()
130 fMatrix.mapRect(&devR, *localR); in handleInval()
188 canvas->concat(fMatrix); in update()
/external/skia/gm/
Dshadertext2.cpp47 SkMatrix fMatrix; member
71 matrices.append()->fMatrix.reset(); in onDraw()
73 matrices.append()->fMatrix.setScale(1.2f, 0.8f); in onDraw()
75 matrices.append()->fMatrix.setRotate(10.f); in onDraw()
77 matrices.append()->fMatrix.reset(); in onDraw()
78 matrices.top().fMatrix.setPerspX(-0.0015f); in onDraw()
79 matrices.top().fMatrix.setPerspY(+0.0015f); in onDraw()
83 localMatrices.append()->fMatrix.reset(); in onDraw()
85 localMatrices.append()->fMatrix.setScale(2.5f, 0.2f); in onDraw()
87 localMatrices.append()->fMatrix.setRotate(45.f); in onDraw()
[all …]
/external/skia/src/core/
DSkPictureStateTree.cpp22 fRoot->fMatrix = identity; in SK_DEFINE_INST_COUNT()
27 fCurrentState.fMatrix = identity; in SK_DEFINE_INST_COUNT()
60 fCurrentState.fMatrix = m; in appendTransform()
78 n->fMatrix = fCurrentState.fMatrix; in appendNode()
151 if (fCurrentMatrix != fNodes.top()->fMatrix) { in draw()
152 fCurrentMatrix = fNodes.top()->fMatrix; in draw()
153 SkMatrix tmp = *fNodes.top()->fMatrix; in draw()
168 if (fCurrentMatrix != draw->fMatrix) { in draw()
169 SkMatrix tmp = *draw->fMatrix; in draw()
172 fCurrentMatrix = draw->fMatrix; in draw()
DSkDraw.cpp131 if (!fMatrix->invert(&inverse)) { in computeConservativeLocalClipBounds()
307 SkAutoBlitterChoose blitter(*fBitmap, *fMatrix, paint); in drawPaint()
595 if (!bounder_points(fBounder, mode, count, pts, paint, *fMatrix)) { in drawPoints()
608 if (!forceUseDevice && rec.init(mode, paint, fMatrix, fRC)) { in drawPoints()
609 SkAutoBlitterChoose blitter(*fBitmap, *fMatrix, paint); in drawPoints()
612 const SkMatrix* matrix = fMatrix; in drawPoints()
691 *fMatrix, &cullRect)) { in drawPoints()
853 RectType rtype = ComputeRectType(paint, *fMatrix, &strokeSize); in drawRect()
863 const SkMatrix& matrix = *fMatrix; in drawRect()
929 paint.getMaskFilter()->filterMask(&dstM, srcM, *fMatrix, NULL)) { in drawDevMask()
[all …]
DSkCanvas.cpp142 const SkMatrix* fMatrix; member
171 fMatrix = &totalMatrix; in updateMC()
177 fMatrix = &fMatrixStorage; in updateMC()
191 fDevice->setMatrixClip(*fMatrix, fClip.forceGetBW(), clipStack); in updateMC()
216 SkMatrix* fMatrix; // points to either fMatrixStorage or prev MCRec member in SkCanvas::MCRec
232 fMatrixStorage = *prev->fMatrix; in MCRec()
233 fMatrix = &fMatrixStorage; in MCRec()
235 fMatrix = prev->fMatrix; in MCRec()
252 fMatrix = &fMatrixStorage; in MCRec()
297 fMatrix = rec->fMatrix; in next()
[all …]
/external/skia/src/effects/
DSkColorMatrixFilter.cpp206 SkColorMatrixFilter::SkColorMatrixFilter(const SkColorMatrix& cm) : fMatrix(cm) { in SkColorMatrixFilter()
211 memcpy(fMatrix.fMat, array, 20 * sizeof(SkScalar)); in SkColorMatrixFilter()
303 SkASSERT(sizeof(fMatrix.fMat)/sizeof(SkScalar) == 20); in flatten()
304 buffer.writeScalarArray(fMatrix.fMat, 20); in flatten()
310 buffer.readScalarArray(fMatrix.fMat); in SkColorMatrixFilter()
311 this->initState(fMatrix.fMat); in SkColorMatrixFilter()
316 memcpy(matrix, fMatrix.fMat, 20 * sizeof(SkScalar)); in asColorMatrix()
365 if (0 != fMatrix.fMat[kAlphaRowStartIdx + i]) { in getConstantColorComponents()
371 outputA += fMatrix.fMat[kAlphaRowStartIdx + i] * component; in getConstantColorComponents()
375 outputA += fMatrix.fMat[kAlphaRowTranslateIdx]; in getConstantColorComponents()
[all …]
DSk2DPathEffect.cpp15 Sk2DPathEffect::Sk2DPathEffect(const SkMatrix& mat) : fMatrix(mat) { in Sk2DPathEffect()
72 buffer.writeMatrix(fMatrix); in flatten()
76 buffer.readMatrix(&fMatrix); in Sk2DPathEffect()
77 fMatrixIsInvertible = fMatrix.invert(&fInverse); in Sk2DPathEffect()
/external/skia/src/gpu/effects/
DGrSingleTextureEffect.cpp12 , fMatrix(m) { in GrSingleTextureEffect()
18 , fMatrix(m) { in GrSingleTextureEffect()
26 , fMatrix(m) { in GrSingleTextureEffect()
/external/skia/src/views/
DSkWindow.cpp60 fMatrix.reset(); in SkWindow()
74 if (fMatrix != matrix) { in setMatrix()
75 fMatrix = matrix; in setMatrix()
82 m.setConcat(fMatrix, matrix); in preConcat()
88 m.setConcat(matrix, fMatrix); in postConcat()
131 if (!fMatrix.invert(&inverse)) { in handleInval()
134 fMatrix.mapRect(&devR, *localR); in handleInval()
187 canvas->concat(fMatrix); in update()
/external/skia/legacy/src/effects/
DSk2DPathEffect.cpp30 Sk2DPathEffect::Sk2DPathEffect(const SkMatrix& mat) : fMatrix(mat) { in Sk2DPathEffect()
69 uint32_t size = fMatrix.flatten(storage); in flatten()
79 fMatrix.unflatten(storage); in Sk2DPathEffect()
80 fMatrix.invert(&fInverse); in Sk2DPathEffect()
/external/skia/src/gpu/
DGrSWMaskHelper.cpp90 fMatrix = *matrix; in init()
92 fMatrix.setIdentity(); in init()
96 fMatrix.postTranslate(-resultBounds.fLeft * SK_Scalar1, in init()
111 fDraw.fMatrix = &fMatrix; in init()
/external/skia/legacy/src/core/
DSkCanvas.cpp70 const SkMatrix* fMatrix; member
102 fMatrix = &totalMatrix; in updateMC()
108 fMatrix = &fMatrixStorage; in updateMC()
122 fDevice->setMatrixClip(*fMatrix, fClip.forceGetBW(), clipStack); in updateMC()
138 fMVMatrixStorage.setConcat(extI, *fMatrix); in updateExternalMatrix()
157 SkMatrix* fMatrix; // points to either fMatrixStorage or prev MCRec member in SkCanvas::MCRec
173 fMatrixStorage = *prev->fMatrix; in MCRec()
174 fMatrix = &fMatrixStorage; in MCRec()
176 fMatrix = prev->fMatrix; in MCRec()
193 fMatrix = &fMatrixStorage; in MCRec()
[all …]
DSkDraw.cpp289 SkAutoBlitterChoose blitter(*fBitmap, *fMatrix, paint); in drawPaint()
556 if (!bounder_points(fBounder, mode, count, pts, paint, *fMatrix)) { in drawPoints()
569 if (!forceUseDevice && rec.init(mode, paint, fMatrix, fRC)) { in drawPoints()
570 SkAutoBlitterChoose blitter(*fBitmap, *fMatrix, paint); in drawPoints()
573 const SkMatrix* matrix = fMatrix; in drawPoints()
725 RectType rtype = ComputeRectType(paint, *fMatrix, &strokeSize); in drawRect()
741 const SkMatrix& matrix = *fMatrix; in drawRect()
810 paint.getMaskFilter()->filterMask(&dstM, srcM, *fMatrix, NULL)) { in drawDevMask()
821 SkAutoBlitterChoose blitterChooser(*fBitmap, *fMatrix, paint); in drawDevMask()
910 const SkMatrix* matrix = fMatrix; in drawPath()
[all …]
/external/skia/src/utils/
DSkLayer.cpp29 fMatrix.reset(); in SK_DEFINE_INST_COUNT()
46 fMatrix = src.fMatrix; in SkLayer()
80 fMatrix = matrix; in setMatrix()
DSkCamera.cpp338 fInitialRec.fMatrix.reset(); in Sk3DView()
354 rec->fMatrix = fRec->fMatrix; in save()
389 fRec->fMatrix.preTranslate(x, y, z); in translate()
393 fRec->fMatrix.preRotateX(deg); in rotateX()
397 fRec->fMatrix.preRotateY(deg); in rotateY()
401 fRec->fMatrix.preRotateZ(deg); in rotateZ()
406 patch.transform(fRec->fMatrix); in dotWithNormal()
413 patch.transform(fRec->fMatrix); in getMatrix()
/external/skia/legacy/src/utils/
DSkLayer.cpp27 fMatrix.reset(); in SkLayer()
44 fMatrix = src.fMatrix; in SkLayer()
78 fMatrix = matrix; in setMatrix()
DSkCamera.cpp338 fInitialRec.fMatrix.reset(); in Sk3DView()
354 rec->fMatrix = fRec->fMatrix; in save()
389 fRec->fMatrix.preTranslate(x, y, z); in translate()
393 fRec->fMatrix.preRotateX(deg); in rotateX()
397 fRec->fMatrix.preRotateY(deg); in rotateY()
401 fRec->fMatrix.preRotateZ(deg); in rotateZ()
406 patch.transform(fRec->fMatrix); in dotWithNormal()
413 patch.transform(fRec->fMatrix); in getMatrix()

123