Home
last modified time | relevance | path

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

1234

/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 = fMatrix.getPerspX(); in dump()
[all …]
DSkMatrixParts.cpp16 SkMatrixPart::SkMatrixPart() : fMatrix(nullptr) { 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.cpp116 fMatrix.setAll(fArray[0], fArray[1], fArray[2], in performTest()
121 junk ^= (fMatrix.getType()); in performTest()
122 fMatrix.dirtyMatrixTypeCache(); in performTest()
123 junk ^= (fMatrix.getType()); in performTest()
124 fMatrix.dirtyMatrixTypeCache(); in performTest()
125 junk ^= (fMatrix.getType()); in performTest()
126 fMatrix.dirtyMatrixTypeCache(); in performTest()
127 junk ^= (fMatrix.getType()); in performTest()
128 fMatrix.dirtyMatrixTypeCache(); in performTest()
129 junk ^= (fMatrix.getType()); in performTest()
[all …]
DDrawBitmapAABench.cpp21 : fMatrix(matrix) in DrawBitmapAABench()
41 canvas->concat(fMatrix); in onDraw()
49 SkMatrix fMatrix; member in DrawBitmapAABench
DShapesBench.cpp155 fShapes[i].fMatrix.setTranslate(0.5f * pad + rand.nextF() * (kBenchWidth - pad), in onDelayedSetup()
157 fShapes[i].fMatrix.preRotate(rand.nextF() * 360.0f); in onDelayedSetup()
159 fShapes[i].fMatrix.setPerspX(0.00015f); in onDelayedSetup()
160 fShapes[i].fMatrix.setPerspY(-0.00015f); in onDelayedSetup()
215 canvas->setMatrix(fShapes[i].fMatrix); in onDraw()
229 SkMatrix fMatrix; member
/external/skia/src/core/
DSkTextMapStateProc.h17 : fMatrix(matrix) in SkTextMapStateProc()
20 , fScaleX(fMatrix.getScaleX()) { in SkTextMapStateProc()
23 unsigned mtype = fMatrix.getType(); in SkTextMapStateProc()
29 fOffset.set(SkScalarMul(offset.x(), fMatrix.getScaleX()) + fMatrix.getTranslateX(), in SkTextMapStateProc()
30 SkScalarMul(offset.y(), fMatrix.getScaleY()) + fMatrix.getTranslateY()); in SkTextMapStateProc()
46 const SkMatrix& fMatrix;
61 fProc(fMatrix, pos[0] + fOffset.x(), pos[1] + fOffset.y(), loc); in operator()
72 fProc(fMatrix, *pos + fOffset.x(), fOffset.y(), loc); in operator()
DSkColorMatrixFilterRowMajor255.cpp37 transpose_to_pmorder(fTranspose, fMatrix); in initState()
39 const float* array = fMatrix; in initState()
55 memcpy(fMatrix, array, 20 * sizeof(SkScalar)); in SkColorMatrixFilterRowMajor255()
152 SkASSERT(sizeof(fMatrix)/sizeof(SkScalar) == 20); in flatten()
153 buffer.writeScalarArray(fMatrix, 20); in flatten()
166 memcpy(matrix, fMatrix, 20 * sizeof(SkScalar)); in asColorMatrix()
229 set_concat(concat, fMatrix, innerMatrix); in newComposed()
290 const float* m = cme.fMatrix; in onSetData()
315 memcpy(fMatrix, matrix, sizeof(SkScalar) * 20); in ColorMatrixEffect()
330 return 0 == memcmp(fMatrix, cme.fMatrix, sizeof(fMatrix)); in onIsEqual()
[all …]
DSkImageFilterCacheKey.h15 , fMatrix(matrix) in Key()
23 fMatrix.getType(); // force initialization of type, so hashes match in Key()
27 SkMatrix fMatrix; member
34 fMatrix == other.fMatrix &&
DSkPictureImageGenerator.cpp35 SkMatrix fMatrix; member in SkPictureImageGenerator
56 fMatrix = *matrix; in SkPictureImageGenerator()
58 fMatrix.reset(); in SkPictureImageGenerator()
79 canvas.drawPicture(fPicture, &fMatrix, fPaint.getMaybeNull()); in onGetPixels()
117 matrix.preConcat(fMatrix); in onGenerateScaledPixels()
147 SkMatrix matrix = fMatrix; in onGenerateTexture()
DSkMultiPictureDraw.cpp25 fCanvas->drawPicture(fPicture, &fMatrix, fPaint); in draw()
33 fMatrix = *matrix; in init()
35 fMatrix.setIdentity(); in init()
133 initialMatrix.preConcat(data.fMatrix); in draw()
167 SkAutoCanvasMatrixPaint acmp(canvas, &data.fMatrix, data.fPaint, picture->cullRect()); in draw()
194 canvas->drawPicture(picture, &data.fMatrix, data.fPaint); in draw()
DSkDraw.cpp126 if (!fMatrix->invert(&inverse)) { in computeConservativeLocalClipBounds()
291 SkAutoBlitterChoose blitter(fDst, *fMatrix, paint); in drawPaint()
564 if (!forceUseDevice && rec.init(mode, paint, fMatrix, fRC)) { in drawPoints()
565 SkAutoBlitterChoose blitter(fDst, *fMatrix, paint); in drawPoints()
568 const SkMatrix* matrix = fMatrix; in drawPoints()
647 *fMatrix, &cullRect)) { in drawPoints()
811 combinedMatrixStorage.setConcat(*fMatrix, *paintMatrix); in drawRect()
815 matrix = fMatrix; in drawRect()
819 RectType rtype = ComputeRectType(paint, *fMatrix, &strokeSize); in drawRect()
824 draw.fMatrix = matrix; in drawRect()
[all …]
/external/skia/gm/
Dshadertext2.cpp38 SkMatrix fMatrix; member
49 matrices.append()->fMatrix.reset();
51 matrices.append()->fMatrix.setScale(1.2f, 0.8f);
53 matrices.append()->fMatrix.setRotate(10.f);
55 matrices.append()->fMatrix.reset();
56 matrices.top().fMatrix.setPerspX(-0.0015f);
57 matrices.top().fMatrix.setPerspY(+0.0015f);
61 localMatrices.append()->fMatrix.reset();
63 localMatrices.append()->fMatrix.setScale(2.5f, 0.2f);
65 localMatrices.append()->fMatrix.setRotate(45.f);
[all …]
Dfilterindiabox.cpp55 fMatrix[0].setScale(horizScale, vertScale); in onOnceBeforeDraw()
56 fMatrix[1].setRotate(30, cx, cy); fMatrix[1].postScale(horizScale, vertScale); in onOnceBeforeDraw()
61 SkMatrix fMatrix[2]; member in FilterIndiaBoxGM
83 for (size_t i = 0; i < SK_ARRAY_COUNT(fMatrix); ++i) { in onDraw()
84 SkSize size = computeSize(fBM, fMatrix[i]); in onDraw()
88 draw_row(canvas, fBM, fMatrix[i], size.fWidth); in onDraw()
Dfilterbitmap.cpp55 fMatrix[0].setScale(scale, scale); in onOnceBeforeDraw()
56 fMatrix[1].setRotate(30, cx, cy); fMatrix[1].postScale(scale, scale); in onOnceBeforeDraw()
59 fMatrix[2].setScale(0.7f, 1.05f); in onOnceBeforeDraw()
64 SkMatrix fMatrix[3]; member in FilterBitmapGM
88 for (size_t i = 0; i < SK_ARRAY_COUNT(fMatrix); ++i) { in onDraw()
89 SkSize size = computeSize(fBM, fMatrix[i]); in onDraw()
93 draw_row(canvas, fBM, fMatrix[i], size.fWidth); in onDraw()
/external/skia/src/views/animated/
DSkImageView.cpp19 fMatrix = nullptr; 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 == nullptr) in setImageMatrix()
96 fMatrix = (SkMatrix*)sk_malloc_throw(sizeof(SkMatrix)); in setImageMatrix()
97 *fMatrix = *matrix; in setImageMatrix()
102 if (fMatrix) in setImageMatrix()
[all …]
/external/skia/src/effects/
DSk2DPathEffect.cpp17 Sk2DPathEffect::Sk2DPathEffect(const SkMatrix& mat) : fMatrix(mat) { in Sk2DPathEffect()
74 buffer.writeMatrix(fMatrix); in flatten()
80 fMatrix[SkMatrix::kMScaleX], fMatrix[SkMatrix::kMSkewX], fMatrix[SkMatrix::kMTransX], in toString()
81 fMatrix[SkMatrix::kMSkewY], fMatrix[SkMatrix::kMScaleY], fMatrix[SkMatrix::kMTransY], in toString()
82 fMatrix[SkMatrix::kMPersp0], fMatrix[SkMatrix::kMPersp1], fMatrix[SkMatrix::kMPersp2]); in toString()
/external/skia/include/gpu/
DGrCoordTransform.h94 fMatrix = that.fMatrix;
106 return &fMatrix; in accessMatrix()
111 fMatrix.cheapEqualTo(that.fMatrix) &&
119 const SkMatrix& getMatrix() const { return fMatrix; } in getMatrix()
134 SkMatrix fMatrix; variable
/external/skia/src/gpu/
DSkGpuDevice.cpp364 if (!SkPaintToGrPaint(this->context(), paint, *draw.fMatrix, &grPaint)) { in drawPaint()
368 fDrawContext->drawPaint(fClip, grPaint, *draw.fMatrix); in drawPaint()
415 if (!SkPaintToGrPaint(this->context(), paint, *draw.fMatrix, &grPaint)) { in drawPoints()
422 fDrawContext->drawPath(fClip, grPaint, *draw.fMatrix, path, strokeInfo); in drawPoints()
435 if (!SkPaintToGrPaint(this->context(), paint, *draw.fMatrix, &grPaint)) { in drawPoints()
441 *draw.fMatrix, in drawPoints()
482 *draw.fMatrix, nullptr, in drawRect()
488 if (!SkPaintToGrPaint(this->context(), paint, *draw.fMatrix, &grPaint)) { in drawRect()
494 fDrawContext->drawRect(fClip, grPaint, *draw.fMatrix, rect, &strokeInfo); in drawRect()
507 if (!SkPaintToGrPaint(this->context(), paint, *draw.fMatrix, &grPaint)) { in drawRRect()
[all …]
DGrDefaultGeoProcFactory.h110 LocalCoords(Type type) : fType(type), fMatrix(nullptr) {} in LocalCoords()
111 LocalCoords(Type type, const SkMatrix* matrix) : fType(type), fMatrix(matrix) { in LocalCoords()
114 bool hasLocalMatrix() const { return nullptr != fMatrix; } in hasLocalMatrix()
117 const SkMatrix* fMatrix; member
/external/skia/src/fonts/
DSkGScalerContext.cpp30 SkMatrix fMatrix; member in SkGScalerContext
62 fRec.getSingleMatrix(&fMatrix); in SkGScalerContext()
63 fMatrix.preScale(SK_Scalar1 / STD_SIZE, SK_Scalar1 / STD_SIZE); in SkGScalerContext()
80 fMatrix.mapXY(SkFixedToScalar(glyph->fAdvanceX), in generateAdvance()
90 fMatrix.mapXY(SkFixedToScalar(glyph->fAdvanceX), in generateMetrics()
97 path.transform(fMatrix); in generateMetrics()
126 canvas.concat(fMatrix); in generateImage()
135 path->transform(fMatrix); in generatePath()
141 SkScalar scale = fMatrix.getScaleY(); in generateFontMetrics()
DSkTestScalerContext.cpp188 fRec.getSingleMatrix(&fMatrix); in SkTestScalerContext()
209 const SkVector advance = fMatrix.mapXY(SkFixedToScalar(glyph->fAdvanceX), in generateAdvance()
218 const SkVector advance = fMatrix.mapXY(SkFixedToScalar(glyph->fAdvanceX), in generateMetrics()
225 path.transform(fMatrix); in generateMetrics()
252 canvas.concat(fMatrix); in generateImage()
260 path->transform(fMatrix); in generatePath()
266 SkScalar scale = fMatrix.getScaleY(); in generateFontMetrics()
281 SkMatrix fMatrix; member in SkTestScalerContext
/external/skia/src/views/
DSkWindow.cpp23 fMatrix.reset(); in SkWindow()
39 if (fMatrix != matrix) { in setMatrix()
40 fMatrix = matrix; in setMatrix()
47 m.setConcat(fMatrix, matrix); in preConcat()
53 m.setConcat(matrix, fMatrix); in postConcat()
80 if (!fMatrix.invert(&inverse)) { in handleInval()
83 fMatrix.mapRect(&devR, *localR); in handleInval()
117 canvas->concat(fMatrix); in update()
/external/skia/src/utils/
DSkCamera.cpp286 fInitialRec.fMatrix.reset(); in Sk3DView()
302 rec->fMatrix = fRec->fMatrix; in save()
337 fRec->fMatrix.preTranslate(x, y, z); in translate()
341 fRec->fMatrix.preRotateX(deg); in rotateX()
345 fRec->fMatrix.preRotateY(deg); in rotateY()
349 fRec->fMatrix.preRotateZ(deg); in rotateZ()
354 patch.transform(fRec->fMatrix); in dotWithNormal()
361 patch.transform(fRec->fMatrix); in getMatrix()
DSkLayer.cpp27 fMatrix.reset(); in SkLayer()
44 fMatrix = src.fMatrix; in SkLayer()
78 fMatrix = matrix; in setMatrix()

1234