/external/skia/bench/ |
D | MatrixBench.cpp | 115 fMatrix.setAll(fArray[0], fArray[1], fArray[2], in performTest() 120 junk ^= (fMatrix.getType()); in performTest() 121 fMatrix.dirtyMatrixTypeCache(); in performTest() 122 junk ^= (fMatrix.getType()); in performTest() 123 fMatrix.dirtyMatrixTypeCache(); in performTest() 124 junk ^= (fMatrix.getType()); in performTest() 125 fMatrix.dirtyMatrixTypeCache(); in performTest() 126 junk ^= (fMatrix.getType()); in performTest() 127 fMatrix.dirtyMatrixTypeCache(); in performTest() 128 junk ^= (fMatrix.getType()); in performTest() [all …]
|
D | QuickRejectBench.cpp | 42 SkMatrix fMatrix; member in ConcatBench 49 fMatrix.setScale(5.0f, 5.0f); in onDelayedSetup() 50 fMatrix.setTranslateX(10.0f); in onDelayedSetup() 51 fMatrix.setTranslateY(10.0f); in onDelayedSetup() 57 canvas->concat(fMatrix); in onDraw()
|
D | DrawBitmapAABench.cpp | 21 : fMatrix(matrix) in DrawBitmapAABench() 41 canvas->concat(fMatrix); in onDraw() 49 SkMatrix fMatrix; member in DrawBitmapAABench
|
D | ShapesBench.cpp | 154 fShapes[i].fMatrix.setTranslate(0.5f * pad + rand.nextF() * (kBenchWidth - pad), in onDelayedSetup() 156 fShapes[i].fMatrix.preRotate(rand.nextF() * 360.0f); in onDelayedSetup() 158 fShapes[i].fMatrix.setPerspX(0.00015f); in onDelayedSetup() 159 fShapes[i].fMatrix.setPerspY(-0.00015f); in onDelayedSetup() 214 canvas->setMatrix(fShapes[i].fMatrix); in onDraw() 228 SkMatrix fMatrix; member
|
D | BitmapScaleBench.cpp | 33 SkMatrix fMatrix; member in BitmapScaleBench 65 fMatrix.setScale( scale(), scale() ); in onDelayedSetup() 97 canvas.concat(fMatrix); in doScaleImage()
|
D | Matrix44Bench.cpp | 287 , fMatrix(SkMatrix44::kIdentity_Constructor) in GetTypeMatrix44Bench() 295 fMatrix.set(1, 2, 1); // to invalidate the type-cache in performTest() 296 fMatrix.getType(); in performTest() 300 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(offset.x() * fMatrix.getScaleX() + fMatrix.getTranslateX(), in SkTextMapStateProc() 30 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 | SkColorMatrixFilterRowMajor255.cpp | 39 transpose_and_scale01(fTranspose, fMatrix); in initState() 41 const float* array = fMatrix; in initState() 57 memcpy(fMatrix, array, 20 * sizeof(SkScalar)); in SkColorMatrixFilterRowMajor255() 161 SkASSERT(sizeof(fMatrix)/sizeof(SkScalar) == 20); in flatten() 162 buffer.writeScalarArray(fMatrix, 20); in flatten() 175 memcpy(matrix, fMatrix, 20 * sizeof(SkScalar)); in asColorMatrix() 265 set_concat(concat, fMatrix, innerMatrix); in makeComposed() 325 const float* m = cme.fMatrix; in onSetData() 351 memcpy(fMatrix, matrix, sizeof(SkScalar) * 20); in ColorMatrixEffect() 366 return 0 == memcmp(fMatrix, cme.fMatrix, sizeof(fMatrix)); in onIsEqual() [all …]
|
D | SkImageFilterCache.h | 21 , fMatrix(matrix) in SkImageFilterCacheKey() 29 fMatrix.getType(); // force initialization of type, so hashes match in SkImageFilterCacheKey() 33 SkMatrix fMatrix; member 40 fMatrix == other.fMatrix &&
|
D | SkColorSpace_A2B.h | 75 , fMatrix(SkMatrix44::kUninitialized_Constructor) in Element() 84 , fMatrix(SkMatrix44::kUninitialized_Constructor) in Element() 97 , fMatrix(SkMatrix44::kUninitialized_Constructor) in Element() 104 , fMatrix(matrix) in Element() 135 return fMatrix; in matrix() 147 SkMatrix44 fMatrix; variable
|
D | SkDraw.cpp | 102 if (!fMatrix->invert(&inverse)) { in computeConservativeLocalClipBounds() 263 SkAutoBlitterChoose blitter(fDst, *fMatrix, paint); in drawPaint() 536 if (!device && rec.init(mode, paint, fMatrix, fRC)) { in drawPoints() 537 SkAutoBlitterChoose blitter(fDst, *fMatrix, paint); in drawPoints() 540 const SkMatrix* matrix = fMatrix; in drawPoints() 617 *fMatrix, &cullRect)) { in drawPoints() 780 combinedMatrixStorage.setConcat(*fMatrix, *paintMatrix); in drawRect() 784 matrix = fMatrix; in drawRect() 788 RectType rtype = ComputeRectType(paint, *fMatrix, &strokeSize); in drawRect() 793 draw.fMatrix = matrix; in drawRect() [all …]
|
D | SkMultiPictureDraw.cpp | 15 fCanvas->drawPicture(fPicture, &fMatrix, fPaint); in draw() 23 fMatrix = *matrix; in init() 25 fMatrix.setIdentity(); in init() 104 canvas->drawPicture(picture, &data.fMatrix, data.fPaint); in draw()
|
D | SkPictureImageGenerator.cpp | 50 fMatrix = *matrix; in SkPictureImageGenerator() 52 fMatrix.reset(); in SkPictureImageGenerator() 73 canvas.drawPicture(fPicture.get(), &fMatrix, fPaint.getMaybeNull()); in onGetPixels() 110 SkMatrix matrix = fMatrix; in onGenerateTexture()
|
D | SkCanvas.cpp | 254 const SkMatrix* fMatrix; member 299 SkMatrix fMatrix; member in SkCanvas::MCRec 309 fMatrix.reset(); in MCRec() 316 MCRec(const MCRec& prev) : fRasterClip(prev.fRasterClip), fMatrix(prev.fMatrix), in MCRec() 336 fMatrix.reset(); in reset() 660 new (fDeviceCMStorage) DeviceCM(nullptr, nullptr, nullptr, fMCRec->fMatrix); in init() 1006 const SkMatrix& ctm = fMCRec->fMatrix; // this->getTotalMatrix() in clipRectBounds() 1075 draw.fMatrix = &SkMatrix::I(); in DrawDeviceWithFilter() 1115 SkMatrix stashedMatrix = fMCRec->fMatrix; in internalSaveLayer() 1204 fMCRec->fMatrix); in internalSaveLayer() [all …]
|
/external/skia/gm/ |
D | shadertext2.cpp | 39 SkMatrix fMatrix; member 50 matrices.append()->fMatrix.reset(); 52 matrices.append()->fMatrix.setScale(1.2f, 0.8f); 54 matrices.append()->fMatrix.setRotate(10.f); 56 matrices.append()->fMatrix.reset(); 57 matrices.top().fMatrix.setPerspX(-0.0015f); 58 matrices.top().fMatrix.setPerspY(+0.0015f); 62 localMatrices.append()->fMatrix.reset(); 64 localMatrices.append()->fMatrix.setScale(2.5f, 0.2f); 66 localMatrices.append()->fMatrix.setRotate(45.f); [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/effects/ |
D | Sk2DPathEffect.cpp | 16 Sk2DPathEffect::Sk2DPathEffect(const SkMatrix& mat) : fMatrix(mat) { in Sk2DPathEffect() 18 fMatrixIsInvertible = fMatrix.invert(&fInverse); 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/ |
D | GrCoordTransform.h | 86 fMatrix = m; 95 fMatrix = that.fMatrix; 109 return &fMatrix; in accessMatrix() 116 !fMatrix.cheapEqualTo(that.fMatrix)) { in hasSameEffectAs() 129 const SkMatrix& getMatrix() const { return fMatrix; } in getMatrix() 141 SkMatrix fMatrix; variable
|
/external/skia/src/fonts/ |
D | SkGScalerContext.cpp | 45 fRec.getSingleMatrix(&fMatrix); in SkGScalerContext() 46 fMatrix.preScale(SK_Scalar1 / STD_SIZE, SK_Scalar1 / STD_SIZE); in SkGScalerContext() 62 SkMatrix fMatrix; member in SkGScalerContext 77 fMatrix.mapXY(SkFloatToScalar(glyph->fAdvanceX), in generateAdvance() 87 fMatrix.mapXY(SkFloatToScalar(glyph->fAdvanceX), in generateMetrics() 94 path.transform(fMatrix); in generateMetrics() 123 canvas.concat(fMatrix); in generateImage() 132 path->transform(fMatrix); in generatePath() 137 SkPaintPriv::ScaleFontMetrics(metrics, fMatrix.getScaleY()); in generateFontMetrics()
|
D | SkTestScalerContext.cpp | 201 fRec.getSingleMatrix(&fMatrix); in SkTestScalerContext() 224 const SkVector advance = fMatrix.mapXY(SkFloatToScalar(glyph->fAdvanceX), in generateAdvance() 233 const SkVector advance = fMatrix.mapXY(SkFloatToScalar(glyph->fAdvanceX), in generateMetrics() 240 path.transform(fMatrix); in generateMetrics() 267 canvas.concat(fMatrix); in generateImage() 275 path->transform(fMatrix); in generatePath() 280 SkPaintPriv::ScaleFontMetrics(metrics, fMatrix.getScaleY()); in generateFontMetrics() 284 SkMatrix fMatrix; member in SkTestScalerContext
|
/external/skia/src/views/ |
D | SkWindow.cpp | 23 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/gpu/ |
D | GrDefaultGeoProcFactory.h | 100 LocalCoords(Type type) : fType(type), fMatrix(nullptr) {} in LocalCoords() 101 LocalCoords(Type type, const SkMatrix* matrix) : fType(type), fMatrix(matrix) { in LocalCoords() 104 bool hasLocalMatrix() const { return nullptr != fMatrix; } in hasLocalMatrix() 107 const SkMatrix* fMatrix; member
|
D | GrSWMaskHelper.cpp | 77 fMatrix = *matrix; in init() 79 fMatrix.setIdentity(); in init() 83 fMatrix.postTranslate(-SkIntToScalar(resultBounds.fLeft), -SkIntToScalar(resultBounds.fTop)); in init() 96 fDraw.fMatrix = &fMatrix; in init()
|
/external/skia/src/utils/ |
D | SkCamera.cpp | 310 fInitialRec.fMatrix.reset(); in Sk3DView() 326 rec->fMatrix = fRec->fMatrix; in save() 361 fRec->fMatrix.preTranslate(x, y, z); in translate() 365 fRec->fMatrix.preRotateX(deg); in rotateX() 369 fRec->fMatrix.preRotateY(deg); in rotateY() 373 fRec->fMatrix.preRotateZ(deg); in rotateZ() 378 patch.transform(fRec->fMatrix); in dotWithNormal() 385 patch.transform(fRec->fMatrix); in getMatrix()
|