Home
last modified time | relevance | path

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

123456

/third_party/skia/bench/
DMatrixBench.cpp115 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 …]
DQuickRejectBench.cpp42 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()
DTessellateBench.cpp94 : 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()
DDrawBitmapAABench.cpp23 : fMatrix(matrix) in DrawBitmapAABench()
43 canvas->concat(fMatrix); in onDraw()
51 SkMatrix fMatrix; member in DrawBitmapAABench
/third_party/flutter/skia/bench/
DMatrixBench.cpp115 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 …]
DQuickRejectBench.cpp42 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()
DDrawBitmapAABench.cpp22 : fMatrix(matrix) in DrawBitmapAABench()
42 canvas->concat(fMatrix); in onDraw()
50 SkMatrix fMatrix; member in DrawBitmapAABench
/third_party/skia/src/gpu/effects/
DGrMatrixEffect.cpp22 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/
DGrCoordTransform.h62 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
DGrDefaultGeoProcFactory.h69 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/
DSkColorFilter_Matrix.cpp36 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 …]
DSkImageFilterCache.h22 , 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 &&
DSkPictureImageGenerator.cpp33 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/
DSkImageFilterCache.h22 , 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 &&
DSkColorFilter_Matrix.cpp33 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()
DSkPictureImageGenerator.cpp35 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()
DSkDraw.cpp59 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 …]
DSkMultiPictureDraw.cpp15 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/
Dfilterindiabox.cpp48 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/
Dfilterindiabox.cpp51 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()
Dfilterbitmap.cpp66 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/
DSkSGTransform.h62 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/
DGrDefaultGeoProcFactory.h61 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/
DSkCamera.cpp168 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/
DSkTransformShader.cpp28 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()

123456