/third_party/skia/bench/ |
H A D | MatrixBench.cpp | 115 fMatrix.setAll(fArray[0], fArray[1], fArray[2], 120 junk ^= (fMatrix.getType()); 121 fMatrix.dirtyMatrixTypeCache(); 122 junk ^= (fMatrix.getType()); 123 fMatrix.dirtyMatrixTypeCache(); 124 junk ^= (fMatrix.getType()); 125 fMatrix.dirtyMatrixTypeCache(); 126 junk ^= (fMatrix.getType()); 127 fMatrix.dirtyMatrixTypeCache(); 128 junk ^= (fMatrix 137 SkMatrix fMatrix; global() member in GetTypeMatrixBench 166 SkMatrix fMatrix[10]; global() member in DecomposeMatrixBench 220 SkMatrix fMatrix; global() member in InvertMapRectMatrixBench [all...] |
H A D | QuickRejectBench.cpp | 42 SkMatrix fMatrix; member in ConcatBench 49 fMatrix.setScale(5.0f, 5.0f); 50 fMatrix.setTranslateX(10.0f); 51 fMatrix.setTranslateY(10.0f); 57 canvas->concat(fMatrix);
|
H A D | TessellateBench.cpp | 94 : fPath(p), fMatrix(m) { in PathTessellateBenchmark() 122 const SkMatrix fMatrix; member in skgpu::PathTessellateBenchmark 147 fMatrix, in DEF_PATH_TESS_BENCH() 161 fMatrix, in DEF_PATH_TESS_BENCH() 182 benchmark_wangs_formula_cubic_log2(fMatrix, fPath); in DEF_PATH_TESS_BENCH() 187 benchmark_wangs_formula_cubic_log2(fMatrix, fPath); in DEF_PATH_TESS_BENCH() 192 benchmark_wangs_formula_cubic_log2(fMatrix, fPath); in DEF_PATH_TESS_BENCH() 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()
|
H A D | DrawBitmapAABench.cpp | 23 : fMatrix(matrix) in DrawBitmapAABench() 43 canvas->concat(fMatrix); 51 SkMatrix fMatrix; member in DrawBitmapAABench
|
H A D | ShapesBench.cpp | 155 fShapes[i].fMatrix.setTranslate(0.5f * pad + rand.nextF() * (kBenchWidth - pad), 157 fShapes[i].fMatrix.preRotate(rand.nextF() * 360.0f); 159 fShapes[i].fMatrix.setPerspX(0.00015f); 160 fShapes[i].fMatrix.setPerspY(-0.00015f); 215 canvas->setMatrix(fShapes[i].fMatrix); 229 SkMatrix fMatrix; member
|
/third_party/skia/src/gpu/effects/ |
H A 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()
|
H A D | GrDistanceFieldGeoProc.cpp | 333 SetTransform(pdman, shaderCaps, fMatrixUniform, dfpgp.fMatrix, &fMatrix); 380 if (dfPathEffect.fMatrix.hasPerspective()) { 387 dfPathEffect.fMatrix, 398 dfPathEffect.fMatrix, 477 SkMatrix fMatrix; // view matrix if perspective, local matrix otherwise member in GrDistanceFieldPathGeoProc::Impl 496 , fMatrix(matrix) in GrDistanceFieldPathGeoProc() 546 fMatrix.isIdentity(), fMatrix.isScaleTranslate(), fMatrix in getShaderDfxInfo() [all...] |
H A D | GrMatrixEffect.h | 30 , fMatrix(matrix) { in GrMatrixEffect() 43 SkMatrix fMatrix; member in GrMatrixEffect
|
/third_party/skia/src/core/ |
H A 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 && in operator ==()
|
H A D | SkColorFilter_Matrix.cpp | 38 memcpy(fMatrix, array, 20 * sizeof(float)); in SkColorFilter_Matrix() 44 memcpy(fMatrix, array, 20 * sizeof(float)); in SkColorFilter_Matrix() 49 SkASSERT(sizeof(fMatrix)/sizeof(float) == 20); in flatten() 50 buffer.writeScalarArray(fMatrix, 20); in flatten() 80 memcpy(matrix, fMatrix, 20 * sizeof(float)); in onAsAColorMatrix() 92 if ( true) { p->append(SkRasterPipeline::matrix_4x5, fMatrix); } in onAppendStages() 122 const float b = fMatrix[4+j*5]; in onProgram() 127 return custom_mad(fMatrix[0+j*5], x, in onProgram() 128 custom_mad(fMatrix[1+j*5], y, in onProgram() 129 custom_mad(fMatrix[ in onProgram() [all...] |
H A 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()
|
H A D | SkMarkerStack.cpp | 23 it->fMatrix = mx; in setMarker() 37 *mx = it->fMatrix; in findMarker()
|
/third_party/skia/gm/ |
H A D | filterindiabox.cpp | 48 SkMatrix fMatrix[2]; member in __anon18374::FilterIndiaBoxGM 64 fMatrix[0].setScale(horizScale, vertScale); 65 fMatrix[1].setRotate(30, cx, cy); fMatrix[1].postScale(horizScale, vertScale); 74 for (size_t i = 0; i < SK_ARRAY_COUNT(fMatrix); ++i) { 75 SkSize size = computeSize(fBM, fMatrix[i]); 79 draw_row(canvas, fBM, fMatrix[i], size.fWidth);
|
/third_party/skia/src/gpu/ |
H A 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/ |
H A D | SkCamera.cpp | 168 rec->fMatrix = fRec->fMatrix; in save() 201 fRec->fMatrix.preTranslate(x, y, z); in translate() 205 fRec->fMatrix.preConcat(SkM44::Rotate({1, 0, 0}, deg * SK_ScalarPI / 180)); in rotateX() 209 fRec->fMatrix.preConcat(SkM44::Rotate({0,-1, 0}, deg * SK_ScalarPI / 180)); in rotateY() 213 fRec->fMatrix.preConcat(SkM44::Rotate({0, 0, 1}, deg * SK_ScalarPI / 180)); in rotateZ() 218 patch.transform(fRec->fMatrix); in dotWithNormal() 225 patch.transform(fRec->fMatrix); in getMatrix()
|
/third_party/skia/src/shaders/ |
H A 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()
|
H A D | SkShader.cpp | 82 if (rec.fMatrix->hasPerspective() || in makeContext() 85 !this->computeTotalInverse(*rec.fMatrix, rec.fLocalMatrix, nullptr)) { in makeContext() 96 : fShader(shader), fCTM(*rec.fMatrix) in Context() 99 SkASSERT(!rec.fMatrix->hasPerspective()); in Context() 105 SkAssertResult(fShader.computeTotalInverse(*rec.fMatrix, rec.fLocalMatrix, &fTotalInverse)); in Context()
|
/third_party/skia/src/effects/ |
H A D | Sk2DPathEffect.cpp | 18 Sk2DPathEffect(const SkMatrix& mat) : fMatrix(mat) { in Sk2DPathEffect() 20 fMatrixIsInvertible = fMatrix.invert(&fInverse); in Sk2DPathEffect() 59 const SkMatrix& getMatrix() const { return fMatrix; } in getMatrix() 63 buffer.writeMatrix(fMatrix); 96 SkMatrix fMatrix, fInverse; member in Sk2DPathEffect
|
H A D | SkOpPE.h | 50 fMatrix.mapRect(bounds); 55 SkMatrix fMatrix; member in SkMatrixPE
|
/third_party/skia/tools/fonts/ |
H A D | TestTypeface.cpp | 154 fRec.getSingleMatrix(&fMatrix); in SkTestScalerContext() 167 fMatrix.mapXY(SkFloatToScalar(glyph->fAdvanceX), SkFloatToScalar(glyph->fAdvanceY)); 182 *path = this->getTestTypeface()->getPath(glyph).makeTransform(fMatrix); 188 SkFontPriv::ScaleFontMetrics(metrics, fMatrix.getScaleY()); 192 SkMatrix fMatrix; member in SkTestScalerContext
|
/third_party/skia/modules/sksg/include/ |
H A D | SkSGTransform.h | 62 SG_ATTRIBUTE(Matrix, T, fMatrix) 65 explicit Matrix(const T& m) : fMatrix(m) {} in Matrix() 77 T fMatrix; member in sksg::final
|
/third_party/skia/modules/sksg/src/ |
H A D | SkSGTransform.cpp | 132 SkMatrix Matrix<SkMatrix>::asMatrix() const { return fMatrix; } in asMatrix() 135 SkM44 Matrix<SkMatrix>::asM44() const { return SkM44(fMatrix); } in asM44() 138 SkMatrix Matrix<SkM44>::asMatrix() const { return fMatrix.asM33(); } in asMatrix() 141 SkM44 Matrix<SkM44>::asM44() const { return fMatrix; } in asM44()
|
/third_party/skia/samplecode/ |
H A D | SampleFatBits.cpp | 105 fMatrix.setScale(SkIntToScalar(zoom), SkIntToScalar(zoom)); in setWHZ() 129 SkMatrix fMatrix, fInverse; member in FatBits 173 canvas->concat(fMatrix); in copyMinToMax() 283 fMatrix.mapPoints(pts, 2); in drawLine() 312 fMatrix.mapPoints(pts, 2); in drawRect() 355 fMatrix.mapPoints(pts, 3); in drawTriangle()
|
/third_party/skia/include/android/ |
H A D | SkAnimatedImage.h | 145 SkMatrix fMatrix; member in SkAnimatedImage 165 bool simple() const { return fMatrix.isIdentity() && !fPostProcess in simple()
|
/third_party/skia/src/android/ |
H A D | SkAnimatedImage.cpp | 71 // orientation that fCodec can do directly, and then use fMatrix to handle crop (along with a in SkAnimatedImage() 78 fMatrix = SkEncodedOriginToMatrix(origin, scaledSize.width(), scaledSize.height()); in SkAnimatedImage() 99 fMatrix.preConcat(SkMatrix::Scale(scaleX, scaleY)); in SkAnimatedImage() 101 fMatrix.postConcat(SkMatrix::Translate(-fCropRect.fLeft, -fCropRect.fTop)); in SkAnimatedImage() 349 canvas->concat(fMatrix); in onDraw()
|