/external/skia/src/animator/ |
D | SkDrawMatrix.cpp | 56 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 …]
|
D | SkMatrixParts.cpp | 16 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 …]
|
D | SkDrawMatrix.h | 46 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/ |
D | MatrixBench.cpp | 116 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 …]
|
D | BitmapScaleBench.cpp | 33 SkMatrix fMatrix; member in BitmapScaleBench 65 fMatrix.setScale( scale(), scale() ); in onPreDraw() 97 canvas.concat(fMatrix); in doScaleImage()
|
D | Matrix44Bench.cpp | 278 , fMatrix(SkMatrix44::kIdentity_Constructor) in GetTypeMatrix44Bench() 286 fMatrix.set(1, 2, 1); // to invalidate the type-cache in performTest() 287 fMatrix.getType(); in performTest() 291 SkMatrix44 fMatrix; member in GetTypeMatrix44Bench
|
/external/skia/src/core/ |
D | SkTextMapStateProc.h | 17 : 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()
|
D | SkMultiPictureDraw.cpp | 25 fCanvas->drawPicture(fPicture, &fMatrix, fPaint); in draw() 33 fMatrix = *matrix; in init() 35 fMatrix.setIdentity(); in init() 95 dd->fCanvas->drawPicture(dd->fPicture, &dd->fMatrix, dd->fPaint); in draw() 132 initialMatrix.preConcat(data.fMatrix); in draw() 166 SkAutoCanvasMatrixPaint acmp(canvas, &data.fMatrix, data.fPaint, picture->cullRect()); in draw() 193 canvas->drawPicture(picture, &data.fMatrix, data.fPaint); in draw()
|
D | SkDraw.cpp | 122 if (!fMatrix->invert(&inverse)) { in computeConservativeLocalClipBounds() 288 SkAutoBlitterChoose blitter(*fBitmap, *fMatrix, paint); in drawPaint() 557 if (!forceUseDevice && rec.init(mode, paint, fMatrix, fRC)) { in drawPoints() 558 SkAutoBlitterChoose blitter(*fBitmap, *fMatrix, paint); in drawPoints() 561 const SkMatrix* matrix = fMatrix; in drawPoints() 640 *fMatrix, &cullRect)) { in drawPoints() 804 combinedMatrixStorage.setConcat(*fMatrix, *paintMatrix); in drawRect() 808 matrix = fMatrix; in drawRect() 812 RectType rtype = ComputeRectType(paint, *fMatrix, &strokeSize); in drawRect() 817 draw.fMatrix = matrix; in drawRect() [all …]
|
/external/skia/gm/ |
D | shadertext2.cpp | 39 SkMatrix fMatrix; member 63 matrices.append()->fMatrix.reset(); in onDraw() 65 matrices.append()->fMatrix.setScale(1.2f, 0.8f); in onDraw() 67 matrices.append()->fMatrix.setRotate(10.f); in onDraw() 69 matrices.append()->fMatrix.reset(); in onDraw() 70 matrices.top().fMatrix.setPerspX(-0.0015f); in onDraw() 71 matrices.top().fMatrix.setPerspY(+0.0015f); in onDraw() 75 localMatrices.append()->fMatrix.reset(); in onDraw() 77 localMatrices.append()->fMatrix.setScale(2.5f, 0.2f); in onDraw() 79 localMatrices.append()->fMatrix.setRotate(45.f); in onDraw() [all …]
|
D | filterindiabox.cpp | 55 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()
|
D | filterbitmap.cpp | 55 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/ |
D | SkImageView.cpp | 19 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 …]
|
/external/skia/src/effects/ |
D | Sk2DPathEffect.cpp | 16 Sk2DPathEffect::Sk2DPathEffect(const SkMatrix& mat) : fMatrix(mat) { in Sk2DPathEffect() 73 buffer.writeMatrix(fMatrix); in flatten() 79 fMatrix[SkMatrix::kMScaleX], fMatrix[SkMatrix::kMSkewX], fMatrix[SkMatrix::kMTransX], in toString() 80 fMatrix[SkMatrix::kMSkewY], fMatrix[SkMatrix::kMScaleY], fMatrix[SkMatrix::kMTransY], in toString() 81 fMatrix[SkMatrix::kMPersp0], fMatrix[SkMatrix::kMPersp1], fMatrix[SkMatrix::kMPersp2]); in toString()
|
D | SkColorMatrixFilter.cpp | 229 SkColorMatrixFilter::SkColorMatrixFilter(const SkColorMatrix& cm) : fMatrix(cm) { in SkColorMatrixFilter() 234 memcpy(fMatrix.fMat, array, 20 * sizeof(SkScalar)); in SkColorMatrixFilter() 368 SkASSERT(sizeof(fMatrix.fMat)/sizeof(SkScalar) == 20); in flatten() 369 buffer.writeScalarArray(fMatrix.fMat, 20); in flatten() 382 memcpy(matrix, fMatrix.fMat, 20 * sizeof(SkScalar)); in asColorMatrix() 391 SkColorMatrix::SetConcat(concat, fMatrix.fMat, innerMatrix); in newComposed() 463 const float* m = cme.fMatrix.fMat; in setData() 487 ColorMatrixEffect(const SkColorMatrix& matrix) : fMatrix(matrix) { in ColorMatrixEffect() 493 return cme.fMatrix == fMatrix; in onIsEqual() 521 if (0 != fMatrix.fMat[kAlphaRowStartIdx + i]) { in onComputeInvariantOutput() [all …]
|
/external/skia/include/gpu/ |
D | GrCoordTransform.h | 94 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/fonts/ |
D | SkGScalerContext.cpp | 30 SkMatrix fMatrix; member in SkGScalerContext 62 fRec.getSingleMatrix(&fMatrix); in SkGScalerContext() 63 fMatrix.preScale(SK_Scalar1 / STD_SIZE, SK_Scalar1 / STD_SIZE); in SkGScalerContext() 82 fMatrix.mapXY(SkFixedToScalar(glyph->fAdvanceX), in generateAdvance() 92 fMatrix.mapXY(SkFixedToScalar(glyph->fAdvanceX), in generateMetrics() 99 path.transform(fMatrix); in generateMetrics() 128 canvas.concat(fMatrix); in generateImage() 137 path->transform(fMatrix); in generatePath() 143 SkScalar scale = fMatrix.getScaleY(); in generateFontMetrics()
|
D | SkTestScalerContext.cpp | 196 fRec.getSingleMatrix(&fMatrix); in SkTestScalerContext() 217 const SkVector advance = fMatrix.mapXY(SkFixedToScalar(glyph->fAdvanceX), in generateAdvance() 226 const SkVector advance = fMatrix.mapXY(SkFixedToScalar(glyph->fAdvanceX), in generateMetrics() 233 path.transform(fMatrix); in generateMetrics() 261 canvas.concat(fMatrix); in generateImage() 269 path->transform(fMatrix); in generatePath() 275 SkScalar scale = fMatrix.getScaleY(); in generateFontMetrics() 290 SkMatrix fMatrix; member in SkTestScalerContext
|
/external/skia/src/views/ |
D | SkWindow.cpp | 30 fMatrix.reset(); in SkWindow() 44 if (fMatrix != matrix) { in setMatrix() 45 fMatrix = matrix; in setMatrix() 52 m.setConcat(fMatrix, matrix); in preConcat() 58 m.setConcat(matrix, fMatrix); in postConcat() 86 if (!fMatrix.invert(&inverse)) { in handleInval() 89 fMatrix.mapRect(&devR, *localR); in handleInval() 141 canvas->concat(fMatrix); in update()
|
/external/skia/src/gpu/ |
D | SkGpuDevice.cpp | 356 if (!SkPaint2GrPaint(this->context(), fRenderTarget, paint, *draw.fMatrix, true, &grPaint)) { in drawPaint() 360 fContext->drawPaint(fRenderTarget, fClip, grPaint, *draw.fMatrix); in drawPaint() 383 if (!SkPaint2GrPaint(this->context(), fRenderTarget, paint, *draw.fMatrix, true, in drawPoints() 391 fContext->drawPath(fRenderTarget, fClip, grPaint, *draw.fMatrix, path, strokeInfo); in drawPoints() 403 if (!SkPaint2GrPaint(this->context(), fRenderTarget, paint, *draw.fMatrix, true, &grPaint)) { in drawPoints() 410 *draw.fMatrix, in drawPoints() 445 if (!usePath && paint.isAntiAlias() && !draw.fMatrix->rectStaysRect()) { in drawRect() 452 usePath = !draw.fMatrix->preservesRightAngles(); in drawRect() 477 if (!SkPaint2GrPaint(this->context(), fRenderTarget, paint, *draw.fMatrix, true, &grPaint)) { in drawRect() 481 fContext->drawRect(fRenderTarget, fClip, grPaint, *draw.fMatrix, rect, &strokeInfo); in drawRect() [all …]
|
D | GrCoordTransform.cpp | 19 fMatrix = m; in reset() 61 fMatrix = m; in reset()
|
D | GrSWMaskHelper.cpp | 165 fMatrix = *matrix; in init() 167 fMatrix.setIdentity(); in init() 171 fMatrix.postTranslate(-resultBounds.fLeft * SK_Scalar1, in init() 224 fDraw.fMatrix = &fMatrix; in init()
|
/external/skia/src/utils/ |
D | SkCamera.cpp | 286 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()
|
D | SkLayer.cpp | 27 fMatrix.reset(); in SkLayer() 44 fMatrix = src.fMatrix; in SkLayer() 78 fMatrix = matrix; in setMatrix()
|
/external/skia/src/utils/debugger/ |
D | SkDrawCommand.cpp | 255 fMatrix = matrix; in SkConcatCommand() 261 canvas->concat(fMatrix); in execute() 462 fMatrix.set(*matrix); in SkBeginDrawPictureCommand() 476 if (fMatrix.isValid()) { in execute() 477 fMatrix.get()->mapRect(&bounds); in execute() 482 if (fMatrix.isValid()) { in execute() 486 canvas->concat(*fMatrix.get()); in execute() 770 fMatrix = *matrix; in SkDrawTextOnPathCommand() 772 fMatrix.setIdentity(); in SkDrawTextOnPathCommand() 786 fMatrix.isIdentity() ? NULL : &fMatrix, in execute() [all …]
|