/external/skia/src/animator/ |
SkDrawMatrix.cpp | 56 fMatrix.reset(); 81 copy->fMatrix = fMatrix; 99 if (fMatrix.isIdentity()) { 104 result = fMatrix[SkMatrix::kMScaleX]; 107 result = fMatrix.getScaleY(); 110 result = fMatrix.getSkewX(); 113 result = fMatrix.getSkewY(); 116 result = fMatrix.getTranslateX(); 119 result = fMatrix.getTranslateY() [all...] |
SkDrawMatrix.h | 46 fMatrix.preRotate(degrees, center.fX, center.fY); 50 fMatrix.preConcat(src); 54 fMatrix.preScale(scaleX, scaleY, center.fX, center.fY); 58 fMatrix.preSkew(skewX, skewY, center.fX, center.fY); 62 fMatrix.preTranslate(x, y); 67 SkMatrix fMatrix;
|
SkMatrixParts.cpp | 16 SkMatrixPart::SkMatrixPart() : fMatrix(nullptr) { 20 fMatrix->dirty(); 24 return fMatrix; 31 fMatrix = (SkDrawMatrix*) parent; 52 fMatrix->rotate(degrees, center); 74 fMatrix->scale(x, y, center); 96 fMatrix->skew(x, y, center); 116 fMatrix->translate(x, y); 153 fMatrix->set(result); 182 fMatrix->set(temp) [all...] |
/external/skia/src/core/ |
SkTextMapStateProc.h | 17 : fMatrix(matrix) 20 , fScaleX(fMatrix.getScaleX()) { 23 unsigned mtype = fMatrix.getType(); 29 fOffset.set(SkScalarMul(offset.x(), fMatrix.getScaleX()) + fMatrix.getTranslateX(), 30 SkScalarMul(offset.y(), fMatrix.getScaleY()) + fMatrix.getTranslateY()); 46 const SkMatrix& fMatrix; 61 fProc(fMatrix, pos[0] + fOffset.x(), pos[1] + fOffset.y(), loc); 72 fProc(fMatrix, *pos + fOffset.x(), fOffset.y(), loc) [all...] |
SkImageFilterCacheKey.h | 15 , fMatrix(matrix) 23 fMatrix.getType(); // force initialization of type, so hashes match 27 SkMatrix fMatrix; 34 fMatrix == other.fMatrix &&
|
SkPictureImageGenerator.cpp | 35 SkMatrix fMatrix; 56 fMatrix = *matrix; 58 fMatrix.reset(); 79 canvas.drawPicture(fPicture, &fMatrix, fPaint.getMaybeNull()); 117 matrix.preConcat(fMatrix); 147 SkMatrix matrix = fMatrix;
|
SkColorMatrixFilterRowMajor255.cpp | 37 transpose_to_pmorder(fTranspose, fMatrix); 39 const float* array = fMatrix; 55 memcpy(fMatrix, array, 20 * sizeof(SkScalar)); 152 SkASSERT(sizeof(fMatrix)/sizeof(SkScalar) == 20); 153 buffer.writeScalarArray(fMatrix, 20); 166 memcpy(matrix, fMatrix, 20 * sizeof(SkScalar)); 229 set_concat(concat, fMatrix, innerMatrix); 290 const float* m = cme.fMatrix; 315 memcpy(fMatrix, matrix, sizeof(SkScalar) * 20); 330 return 0 == memcmp(fMatrix, cme.fMatrix, sizeof(fMatrix)) [all...] |
SkColorMatrixFilterRowMajor255.h | 40 SkScalar fMatrix[20];
|
SkMultiPictureDraw.cpp | 25 fCanvas->drawPicture(fPicture, &fMatrix, fPaint); 33 fMatrix = *matrix; 35 fMatrix.setIdentity(); 133 initialMatrix.preConcat(data.fMatrix); 167 SkAutoCanvasMatrixPaint acmp(canvas, &data.fMatrix, data.fPaint, picture->cullRect()); 194 canvas->drawPicture(picture, &data.fMatrix, data.fPaint);
|
/external/skia/bench/ |
MatrixBench.cpp | 116 fMatrix.setAll(fArray[0], fArray[1], fArray[2], 121 junk ^= (fMatrix.getType()); 122 fMatrix.dirtyMatrixTypeCache(); 123 junk ^= (fMatrix.getType()); 124 fMatrix.dirtyMatrixTypeCache(); 125 junk ^= (fMatrix.getType()); 126 fMatrix.dirtyMatrixTypeCache(); 127 junk ^= (fMatrix.getType()); 128 fMatrix.dirtyMatrixTypeCache(); 129 junk ^= (fMatrix.getType()) [all...] |
DrawBitmapAABench.cpp | 21 : fMatrix(matrix) 41 canvas->concat(fMatrix); 49 SkMatrix fMatrix;
|
BitmapScaleBench.cpp | 33 SkMatrix fMatrix; 65 fMatrix.setScale( scale(), scale() ); 97 canvas.concat(fMatrix);
|
/external/skia/gm/ |
shadertext2.cpp | 38 SkMatrix fMatrix; 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...] |
filterindiabox.cpp | 55 fMatrix[0].setScale(horizScale, vertScale); 56 fMatrix[1].setRotate(30, cx, cy); fMatrix[1].postScale(horizScale, vertScale); 61 SkMatrix fMatrix[2]; 83 for (size_t i = 0; i < SK_ARRAY_COUNT(fMatrix); ++i) { 84 SkSize size = computeSize(fBM, fMatrix[i]); 88 draw_row(canvas, fBM, fMatrix[i], size.fWidth);
|
filterbitmap.cpp | 55 fMatrix[0].setScale(scale, scale); 56 fMatrix[1].setRotate(30, cx, cy); fMatrix[1].postScale(scale, scale); 59 fMatrix[2].setScale(0.7f, 1.05f); 64 SkMatrix fMatrix[3]; 88 for (size_t i = 0; i < SK_ARRAY_COUNT(fMatrix); ++i) { 89 SkSize size = computeSize(fBM, fMatrix[i]); 93 draw_row(canvas, fBM, fMatrix[i], size.fWidth);
|
/external/skia/src/views/animated/ |
SkImageView.cpp | 19 fMatrix = nullptr; 30 if (fMatrix) 31 sk_free(fMatrix); 74 if (fMatrix) 76 SkASSERT(!fMatrix->isIdentity()); 78 *matrix = *fMatrix; 95 if (fMatrix == nullptr) 96 fMatrix = (SkMatrix*)sk_malloc_throw(sizeof(SkMatrix)); 97 *fMatrix = *matrix; 102 if (fMatrix) [all...] |
/external/skia/src/effects/ |
Sk2DPathEffect.cpp | 17 Sk2DPathEffect::Sk2DPathEffect(const SkMatrix& mat) : fMatrix(mat) { 74 buffer.writeMatrix(fMatrix); 80 fMatrix[SkMatrix::kMScaleX], fMatrix[SkMatrix::kMSkewX], fMatrix[SkMatrix::kMTransX], 81 fMatrix[SkMatrix::kMSkewY], fMatrix[SkMatrix::kMScaleY], fMatrix[SkMatrix::kMTransY], 82 fMatrix[SkMatrix::kMPersp0], fMatrix[SkMatrix::kMPersp1], fMatrix[SkMatrix::kMPersp2]) [all...] |
/external/skia/include/gpu/ |
GrCoordTransform.h | 94 fMatrix = that.fMatrix; 106 return &fMatrix; 111 fMatrix.cheapEqualTo(that.fMatrix) && 119 const SkMatrix& getMatrix() const { return fMatrix; } 134 SkMatrix fMatrix;
|
/external/skia/src/fonts/ |
SkGScalerContext.cpp | 30 SkMatrix fMatrix; 62 fRec.getSingleMatrix(&fMatrix); 63 fMatrix.preScale(SK_Scalar1 / STD_SIZE, SK_Scalar1 / STD_SIZE); 80 fMatrix.mapXY(SkFixedToScalar(glyph->fAdvanceX), 90 fMatrix.mapXY(SkFixedToScalar(glyph->fAdvanceX), 97 path.transform(fMatrix); 126 canvas.concat(fMatrix); 135 path->transform(fMatrix); 141 SkScalar scale = fMatrix.getScaleY();
|
SkTestScalerContext.cpp | 188 fRec.getSingleMatrix(&fMatrix); 209 const SkVector advance = fMatrix.mapXY(SkFixedToScalar(glyph->fAdvanceX), 218 const SkVector advance = fMatrix.mapXY(SkFixedToScalar(glyph->fAdvanceX), 225 path.transform(fMatrix); 252 canvas.concat(fMatrix); 260 path->transform(fMatrix); 266 SkScalar scale = fMatrix.getScaleY(); 281 SkMatrix fMatrix;
|
/external/skia/src/gpu/ |
GrDefaultGeoProcFactory.h | 110 LocalCoords(Type type) : fType(type), fMatrix(nullptr) {} 111 LocalCoords(Type type, const SkMatrix* matrix) : fType(type), fMatrix(matrix) { 114 bool hasLocalMatrix() const { return nullptr != fMatrix; } 117 const SkMatrix* fMatrix;
|
GrCoordTransform.cpp | 19 fMatrix = m; 61 fMatrix = m;
|
SkGpuDevice.cpp | 364 if (!SkPaintToGrPaint(this->context(), paint, *draw.fMatrix, &grPaint)) { 368 fDrawContext->drawPaint(fClip, grPaint, *draw.fMatrix); 415 if (!SkPaintToGrPaint(this->context(), paint, *draw.fMatrix, &grPaint)) { 422 fDrawContext->drawPath(fClip, grPaint, *draw.fMatrix, path, strokeInfo); 435 if (!SkPaintToGrPaint(this->context(), paint, *draw.fMatrix, &grPaint)) { 441 *draw.fMatrix, 482 *draw.fMatrix, nullptr, 488 if (!SkPaintToGrPaint(this->context(), paint, *draw.fMatrix, &grPaint)) { 494 fDrawContext->drawRect(fClip, grPaint, *draw.fMatrix, rect, &strokeInfo); 507 if (!SkPaintToGrPaint(this->context(), paint, *draw.fMatrix, &grPaint)) [all...] |
/external/skia/include/views/animated/ |
SkImageView.h | 51 SkMatrix* fMatrix; // null or copy of caller's matrix ,,,,,
|
/external/skia/src/views/ |
SkWindow.cpp | 23 fMatrix.reset(); 39 if (fMatrix != matrix) { 40 fMatrix = matrix; 47 m.setConcat(fMatrix, matrix); 53 m.setConcat(matrix, fMatrix); 80 if (!fMatrix.invert(&inverse)) { 83 fMatrix.mapRect(&devR, *localR); 117 canvas->concat(fMatrix);
|