/third_party/skia/tests/ |
D | ShaderTest.cpp | 23 SkMatrix localM; in check_isaimage() local 26 localM.setScale(9999, -9999); in check_isaimage() 29 SkImage* image = shader->isAImage(&localM, tileModes); in check_isaimage() 33 REPORTER_ASSERT(reporter, localM == expectedM); in check_isaimage() 44 const SkMatrix localM = SkMatrix::Scale(2, 3); in DEF_TEST() local 48 auto shader0 = bm.makeShader(tmx, tmy, SkSamplingOptions(), localM); in DEF_TEST() 49 auto shader1 = bm.asImage()->makeShader(tmx, tmy, SkSamplingOptions(), localM); in DEF_TEST() 51 check_isaimage(reporter, shader0.get(), W, H, tmx, tmy, localM); in DEF_TEST() 52 check_isaimage(reporter, shader1.get(), W, H, tmx, tmy, localM); in DEF_TEST()
|
/third_party/flutter/skia/tests/ |
D | ShaderTest.cpp | 23 SkMatrix localM; in check_isaimage() local 26 localM.setScale(9999, -9999); in check_isaimage() 29 SkImage* image = shader->isAImage(&localM, tileModes); in check_isaimage() 33 REPORTER_ASSERT(reporter, localM == expectedM); in check_isaimage() 44 const SkMatrix localM = SkMatrix::MakeScale(2, 3); in DEF_TEST() local 48 auto shader0 = bm.makeShader(tmx, tmy, &localM); in DEF_TEST() 49 auto shader1 = SkImage::MakeFromBitmap(bm)->makeShader(tmx, tmy, &localM); in DEF_TEST() 51 check_isaimage(reporter, shader0.get(), W, H, tmx, tmy, localM); in DEF_TEST() 52 check_isaimage(reporter, shader1.get(), W, H, tmx, tmy, localM); in DEF_TEST()
|
/third_party/skia/src/core/ |
D | SkLocalMatrixImageFilter.cpp | 13 sk_sp<SkImageFilter> SkLocalMatrixImageFilter::Make(const SkMatrix& localM, in Make() argument 18 if (localM.isIdentity()) { in Make() 22 if ((inputCapability == MatrixCapability::kTranslate && !localM.isTranslate()) || in Make() 23 (inputCapability == MatrixCapability::kScaleTranslate && !localM.isScaleTranslate())) { in Make() 27 return sk_sp<SkImageFilter>(new SkLocalMatrixImageFilter(localM, input)); in Make() 30 SkLocalMatrixImageFilter::SkLocalMatrixImageFilter(const SkMatrix& localM, in SkLocalMatrixImageFilter() argument 33 , fLocalM(localM) { in SkLocalMatrixImageFilter()
|
D | SkDraw_vertices.cpp | 122 const SkMatrixProvider& matrices, const SkMatrix* localM, in onProgram() argument 425 SkMatrix localM; in drawFixedVertices() local 427 (texture_to_matrix(state, positions, texCoords, &localM) && in drawFixedVertices() 428 updater->update(SkMatrix::Concat(ctm, localM)))) { in drawFixedVertices() 445 SkMatrix localM; in drawFixedVertices() local 446 if (!texture_to_matrix(state, positions, texCoords, &localM)) { in drawFixedVertices() 449 matrixProvider = preConcatMatrixProvider.init(*matrixProvider, localM); in drawFixedVertices() 499 SkMatrix localM; in drawFixedVertices() local 500 if (texCoordShader && !(texture_to_matrix(state, positions, texCoords, &localM) && in drawFixedVertices() 501 texCoordShader->update(SkMatrix::Concat(ctm, localM)))) { in drawFixedVertices()
|
D | SkLocalMatrixImageFilter.h | 20 static sk_sp<SkImageFilter> Make(const SkMatrix& localM, sk_sp<SkImageFilter> input); 35 SkLocalMatrixImageFilter(const SkMatrix& localM, sk_sp<SkImageFilter> input);
|
/third_party/flutter/skia/src/core/ |
D | SkLocalMatrixImageFilter.cpp | 13 sk_sp<SkImageFilter> SkLocalMatrixImageFilter::Make(const SkMatrix& localM, in Make() argument 18 if (localM.isIdentity()) { in Make() 21 if (!as_IFB(input)->canHandleComplexCTM() && !localM.isScaleTranslate()) { in Make() 25 return sk_sp<SkImageFilter>(new SkLocalMatrixImageFilter(localM, input)); in Make() 28 SkLocalMatrixImageFilter::SkLocalMatrixImageFilter(const SkMatrix& localM, in SkLocalMatrixImageFilter() argument 31 , fLocalM(localM) { in SkLocalMatrixImageFilter()
|
D | SkLocalMatrixImageFilter.h | 20 static sk_sp<SkImageFilter> Make(const SkMatrix& localM, sk_sp<SkImageFilter> input); 33 SkLocalMatrixImageFilter(const SkMatrix& localM, sk_sp<SkImageFilter> input);
|
/third_party/flutter/skia/gm/ |
D | shadertext3.cpp | 112 SkMatrix localM; in onDraw() local 113 localM.setTranslate(5.f, 5.f); in onDraw() 114 localM.postRotate(20); in onDraw() 115 localM.postScale(1.15f, .85f); in onDraw() 120 fillPaint.setShader(fBmp.makeShader(kTileModes[tm0], kTileModes[tm1], &localM)); in onDraw()
|
D | runtimeshader.cpp | 49 SkMatrix localM; in onOnceBeforeDraw() local 50 localM.setRotate(90, 128, 128); in onOnceBeforeDraw() 55 gShader = SkRuntimeShaderMaker(SkString(gProg), fData, &localM, true); in onOnceBeforeDraw()
|
D | gm.cpp | 58 SkMatrix localM; in draw_gpu_only_message() local 59 localM.setRotate(35.f); in draw_gpu_only_message() 60 localM.postTranslate(10.f, 0.f); in draw_gpu_only_message() 61 paint.setShader(bmp.makeShader(SkTileMode::kMirror, SkTileMode::kMirror, &localM)); in draw_gpu_only_message()
|
/third_party/skia/gm/ |
D | shadertext3.cpp | 112 SkMatrix localM; in onDraw() local 113 localM.setTranslate(5.f, 5.f); in onDraw() 114 localM.postRotate(20); in onDraw() 115 localM.postScale(1.15f, .85f); in onDraw() 120 sampling, localM)); in onDraw()
|
D | runtimefunctions.cpp | 46 SkMatrix localM; in onDraw() local 47 localM.setRotate(90, 128, 128); in onDraw() 51 nullptr, 0, &localM, true); in onDraw()
|
D | patch.cpp | 172 SkMatrix localM; variable 173 localM.reset(); 174 localM[6] = 0.00001f; // force perspective 175 dopatch(canvas, colors, GetResourceAsImage("images/mandrill_128.png"), &localM);
|
D | gm.cpp | 55 SkMatrix localM; in draw_gpu_only_message() local 56 localM.setRotate(35.f); in draw_gpu_only_message() 57 localM.postTranslate(10.f, 0.f); in draw_gpu_only_message() 61 localM)); in draw_gpu_only_message()
|
/third_party/skia/tools/gpu/ |
D | TestOps.cpp | 91 const SkMatrix& localM); 149 const SkMatrix& localM) { in Make() argument 151 return GrOp::Make<TestRectOp>(context, caps, std::move(paint), drawRect, localRect, localM); in Make() 230 const SkMatrix& localM) { in MakeRect() argument 231 return TestRectOp::Make(context, std::move(paint), drawRect, localRect, localM); in MakeRect() 238 const SkMatrix& localM) { in MakeRect() argument 241 return TestRectOp::Make(context, std::move(paint), drawRect, localRect, localM); in MakeRect()
|
D | TestOps.h | 30 const SkMatrix& localM = SkMatrix::I()); 40 const SkMatrix& localM = SkMatrix::I());
|
/third_party/skia/src/shaders/ |
D | SkLocalMatrixShader.cpp | 82 const SkMatrixProvider& matrices, const SkMatrix* localM, in onProgram() argument 86 if (localM) { in onProgram() 87 lm.writable()->preConcat(*localM); in onProgram() 160 const SkMatrixProvider& matrices, const SkMatrix* localM, in onProgram() argument 165 matrixProvider,localM, dst, in onProgram()
|
D | SkShaderBase.h | 72 ContextRec(const SkPaint& paint, const SkMatrix& matrix, const SkMatrix* localM, in ContextRec() 75 , fLocalMatrix(localM) in ContextRec() 209 const SkMatrixProvider&, const SkMatrix* localM, const SkColorInfo& dst, 245 const SkMatrixProvider&, const SkMatrix* localM,
|
D | SkColorShader.h | 48 const SkMatrixProvider&, const SkMatrix* localM, const SkColorInfo& dst, 72 const SkMatrixProvider&, const SkMatrix* localM, const SkColorInfo& dst,
|
D | SkComposeShader.cpp | 144 const SkMatrixProvider& mats, const SkMatrix* localM, in onProgram() argument 148 if ((d = as_SB(fDst)->program(p, device,local, paint, mats,localM, cinfo, uniforms,alloc)) && in onProgram() 149 (s = as_SB(fSrc)->program(p, device,local, paint, mats,localM, cinfo, uniforms,alloc))) in onProgram()
|
D | SkImageShader.h | 54 const SkMatrixProvider&, const SkMatrix* localM, const SkColorInfo& dst, 60 const SkMatrixProvider&, const SkMatrix* localM, const SkColorInfo& dst,
|
D | SkTransformShader.cpp | 16 const SkMatrixProvider& matrices, const SkMatrix* localM, in onProgram() argument 22 b, device, newLocal, color, matrixProvider, localM, dst, uniforms, alloc); in onProgram()
|
D | SkColorFilterShader.cpp | 67 const SkMatrixProvider& matrices, const SkMatrix* localM, in onProgram() argument 72 matrices,localM, dst, in onProgram()
|
/third_party/flutter/skia/src/shaders/ |
D | SkShaderBase.h | 46 virtual bool update(const SkMatrix& ctm, const SkMatrix* localM) = 0; 81 ContextRec(const SkPaint& paint, const SkMatrix& matrix, const SkMatrix* localM, in ContextRec() 85 , fLocalMatrix(localM) in ContextRec()
|
D | SkRTShader.cpp | 121 SkMatrix localM, *localMPtr = nullptr; in CreateProc() local 123 buffer.readMatrix(&localM); in CreateProc() 124 localMPtr = &localM; in CreateProc()
|