/third_party/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 | TessellateBench.cpp | 94 : fPath(p), fMatrix(m) { in PathTessellateBenchmark() 122 const SkMatrix fMatrix; member in skgpu::PathTessellateBenchmark 147 fMatrix, 161 fMatrix, 182 benchmark_wangs_formula_cubic_log2(fMatrix, fPath); 187 benchmark_wangs_formula_cubic_log2(fMatrix, fPath); 192 benchmark_wangs_formula_cubic_log2(fMatrix, fPath); 224 benchmark_wangs_formula_conic(fMatrix, fPath); in DEF_PATH_TESS_BENCH() 228 benchmark_wangs_formula_conic_log2(fMatrix, fPath); in DEF_PATH_TESS_BENCH()
|
D | DrawBitmapAABench.cpp | 23 : fMatrix(matrix) in DrawBitmapAABench() 43 canvas->concat(fMatrix); in onDraw() 51 SkMatrix fMatrix; member in DrawBitmapAABench
|
/third_party/flutter/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 | 22 : fMatrix(matrix) in DrawBitmapAABench() 42 canvas->concat(fMatrix); in onDraw() 50 SkMatrix fMatrix; member in DrawBitmapAABench
|
/third_party/skia/src/gpu/effects/ |
D | GrMatrixEffect.cpp | 22 if (me->fMatrix.hasPerspective() || !matrix.hasPerspective()) { in Make() 23 me->fMatrix.preConcat(matrix); in Make() 48 m.preConcat(mtx.fMatrix); in onMakeProgramImpl() 51 pdman.setSkMatrix(fMatrixVar, mtx.fMatrix); in onMakeProgramImpl() 65 if (fMatrix != that.fMatrix) return false; in onIsEqual() 71 , fMatrix(src.fMatrix) {} in GrMatrixEffect()
|
/third_party/flutter/skia/src/gpu/ |
D | GrCoordTransform.h | 62 fMatrix = that.fMatrix; 75 return &fMatrix; in accessMatrix() 81 !fMatrix.cheapEqualTo(that.fMatrix)) { in hasSameEffectAs() 94 const SkMatrix& getMatrix() const { return fMatrix; } in getMatrix() 107 fMatrix = m; 118 SkMatrix fMatrix; variable
|
D | GrDefaultGeoProcFactory.h | 69 LocalCoords(Type type) : fType(type), fMatrix(nullptr) {} in LocalCoords() 70 LocalCoords(Type type, const SkMatrix* matrix) : fType(type), fMatrix(matrix) { in LocalCoords() 73 bool hasLocalMatrix() const { return nullptr != fMatrix; } in hasLocalMatrix() 76 const SkMatrix* fMatrix; member
|
/third_party/skia/src/core/ |
D | SkColorFilter_Matrix.cpp | 36 memcpy(fMatrix, array, 20 * sizeof(float)); in SkColorFilter_Matrix() 40 SkASSERT(sizeof(fMatrix)/sizeof(float) == 20); in flatten() 41 buffer.writeScalarArray(fMatrix, 20); in flatten() 60 memcpy(matrix, fMatrix, 20 * sizeof(float)); in onAsAColorMatrix() 72 if ( true) { p->append(SkRasterPipeline::matrix_4x5, fMatrix); } in onAppendStages() 96 const float b = fMatrix[4+j*5]; in onProgram() 101 return custom_mad(fMatrix[0+j*5], x, in onProgram() 102 custom_mad(fMatrix[1+j*5], y, in onProgram() 103 custom_mad(fMatrix[2+j*5], z, in onProgram() 104 custom_mad(fMatrix[3+j*5], w, bias)))); in onProgram() [all …]
|
D | SkImageFilterCache.h | 22 , fMatrix(matrix) in SkImageFilterCacheKey() 30 fMatrix.getType(); // force initialization of type, so hashes match in SkImageFilterCacheKey() 31 SkASSERT(fMatrix.isFinite()); // otherwise we can't rely on == self when comparing keys in SkImageFilterCacheKey() 35 SkMatrix fMatrix; member 42 fMatrix == other.fMatrix &&
|
D | SkPictureImageGenerator.cpp | 33 SkMatrix fMatrix; member in SkPictureImageGenerator 68 fMatrix = *matrix; in SkPictureImageGenerator() 70 fMatrix.reset(); in SkPictureImageGenerator() 86 canvas->drawPicture(fPicture, &fMatrix, fPaint.getMaybeNull()); in onGetPixels() 115 SkMatrix matrix = fMatrix; in onGenerateTexture()
|
/third_party/flutter/skia/src/core/ |
D | SkImageFilterCache.h | 22 , fMatrix(matrix) in SkImageFilterCacheKey() 30 fMatrix.getType(); // force initialization of type, so hashes match in SkImageFilterCacheKey() 31 SkASSERT(fMatrix.isFinite()); // otherwise we can't rely on == self when comparing keys in SkImageFilterCacheKey() 35 SkMatrix fMatrix; member 42 fMatrix == other.fMatrix &&
|
D | SkColorFilter_Matrix.cpp | 33 memcpy(fMatrix, array, 20 * sizeof(float)); in SkColorFilter_Matrix() 41 SkASSERT(sizeof(fMatrix)/sizeof(float) == 20); in flatten() 42 buffer.writeScalarArray(fMatrix, 20); in flatten() 62 memcpy(matrix, fMatrix, 20 * sizeof(float)); in onAsAColorMatrix() 74 if ( true) { p->append(SkRasterPipeline::matrix_4x5, fMatrix); } in onAppendStages() 90 return GrColorMatrixFragmentProcessor::Make(fMatrix, in asFragmentProcessor()
|
D | SkPictureImageGenerator.cpp | 35 SkMatrix fMatrix; member in SkPictureImageGenerator 70 fMatrix = *matrix; in SkPictureImageGenerator() 72 fMatrix.reset(); in SkPictureImageGenerator() 88 canvas->drawPicture(fPicture, &fMatrix, fPaint.getMaybeNull()); in onGetPixels() 114 SkMatrix matrix = fMatrix; in onGenerateTexture()
|
D | SkDraw.cpp | 59 if (!fMatrix->invert(&inverse)) { in computeConservativeLocalClipBounds() 358 if (!device && rec.init(mode, paint, fMatrix, fRC)) { in drawPoints() 362 const SkMatrix* matrix = fMatrix; in drawPoints() 446 *fMatrix, &cullRect)) { in drawPoints() 598 draw.fMatrix = matrix; in draw_rect_as_path() 618 combinedMatrixStorage.setConcat(*fMatrix, *paintMatrix); in drawRect() 622 matrix = fMatrix; in drawRect() 626 RectType rtype = ComputeRectType(paint, *fMatrix, &strokeSize); in drawRect() 636 fMatrix->mapPoints(rect_points(devRect), rect_points(paintRect), 2); in drawRect() 649 : compute_stroke_size(paint, *fMatrix); 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()
|
/third_party/skia/gm/ |
D | filterindiabox.cpp | 48 SkMatrix fMatrix[2]; member in __anon4b2d1d610111::FilterIndiaBoxGM 64 fMatrix[0].setScale(horizScale, vertScale); in onOnceBeforeDraw() 65 fMatrix[1].setRotate(30, cx, cy); fMatrix[1].postScale(horizScale, vertScale); in onOnceBeforeDraw() 74 for (size_t i = 0; i < SK_ARRAY_COUNT(fMatrix); ++i) { in onDraw() 75 SkSize size = computeSize(fBM, fMatrix[i]); in onDraw() 79 draw_row(canvas, fBM, fMatrix[i], size.fWidth); in onDraw()
|
/third_party/flutter/skia/gm/ |
D | filterindiabox.cpp | 51 SkMatrix fMatrix[2]; member in __anona479ff360111::FilterIndiaBoxGM 66 fMatrix[0].setScale(horizScale, vertScale); in onOnceBeforeDraw() 67 fMatrix[1].setRotate(30, cx, cy); fMatrix[1].postScale(horizScale, vertScale); in onOnceBeforeDraw() 76 for (size_t i = 0; i < SK_ARRAY_COUNT(fMatrix); ++i) { in onDraw() 77 SkSize size = computeSize(fBM, fMatrix[i]); in onDraw() 81 draw_row(canvas, fBM, fMatrix[i], size.fWidth); in onDraw()
|
D | filterbitmap.cpp | 66 fMatrix[0].setScale(scale, scale); in onOnceBeforeDraw() 67 fMatrix[1].setRotate(30, cx, cy); fMatrix[1].postScale(scale, scale); in onOnceBeforeDraw() 70 fMatrix[2].setScale(0.7f, 1.05f); in onOnceBeforeDraw() 75 SkMatrix fMatrix[3]; member in FilterBitmapGM 85 for (size_t i = 0; i < SK_ARRAY_COUNT(fMatrix); ++i) { in onDraw() 86 SkSize size = computeSize(fBM, fMatrix[i]); in onDraw() 90 draw_row(canvas, fBM, fMatrix[i], size.fWidth); in onDraw()
|
/third_party/flutter/skia/modules/sksg/include/ |
D | SkSGTransform.h | 62 SG_ATTRIBUTE(Matrix, T, fMatrix) in SG_ATTRIBUTE() argument 65 explicit Matrix(const T& m) : fMatrix(m) {} in SG_ATTRIBUTE() 73 SkMatrix asMatrix () const override { return fMatrix; } in asMatrix() 74 SkMatrix44 asMatrix44() const override { return fMatrix; } in asMatrix44() 77 T fMatrix;
|
/third_party/skia/src/gpu/ |
D | GrDefaultGeoProcFactory.h | 61 LocalCoords(Type type) : fType(type), fMatrix(nullptr) {} in LocalCoords() 62 LocalCoords(Type type, const SkMatrix* matrix) : fType(type), fMatrix(matrix) { in LocalCoords() 65 bool hasLocalMatrix() const { return nullptr != fMatrix; } in hasLocalMatrix() 68 const SkMatrix* fMatrix; member
|
/third_party/skia/src/utils/ |
D | SkCamera.cpp | 168 rec->fMatrix = fRec->fMatrix; in save() 203 fRec->fMatrix.preTranslate(x, y, z); in translate() 207 fRec->fMatrix.preConcat(SkM44::Rotate({1, 0, 0}, deg * SK_ScalarPI / 180)); in rotateX() 211 fRec->fMatrix.preConcat(SkM44::Rotate({0,-1, 0}, deg * SK_ScalarPI / 180)); in rotateY() 215 fRec->fMatrix.preConcat(SkM44::Rotate({0, 0, 1}, deg * SK_ScalarPI / 180)); in rotateZ() 220 patch.transform(fRec->fMatrix); in dotWithNormal() 227 patch.transform(fRec->fMatrix); in getMatrix()
|
/third_party/skia/src/shaders/ |
D | SkTransformShader.cpp | 28 fMatrix = uniforms->pushPtr(&fMatrixStorage); in applyMatrix() 34 return b->mad(x, b->arrayF(fMatrix, 3*row+0), in applyMatrix() 35 b->mad(y, b->arrayF(fMatrix, 3*row+1), in applyMatrix() 36 b->arrayF(fMatrix, 3*row+2))); in applyMatrix()
|