Home
last modified time | relevance | path

Searched refs:localM (Results 1 – 25 of 54) sorted by relevance

123

/third_party/skia/tests/
DShaderTest.cpp23 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/
DShaderTest.cpp23 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/
DSkLocalMatrixImageFilter.cpp13 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()
DSkDraw_vertices.cpp122 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()
DSkLocalMatrixImageFilter.h20 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/
DSkLocalMatrixImageFilter.cpp13 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()
DSkLocalMatrixImageFilter.h20 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/
Dshadertext3.cpp112 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()
Druntimeshader.cpp49 SkMatrix localM; in onOnceBeforeDraw() local
50 localM.setRotate(90, 128, 128); in onOnceBeforeDraw()
55 gShader = SkRuntimeShaderMaker(SkString(gProg), fData, &localM, true); in onOnceBeforeDraw()
Dgm.cpp58 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/
Dshadertext3.cpp112 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()
Druntimefunctions.cpp46 SkMatrix localM; in onDraw() local
47 localM.setRotate(90, 128, 128); in onDraw()
51 nullptr, 0, &localM, true); in onDraw()
Dpatch.cpp172 SkMatrix localM; variable
173 localM.reset();
174 localM[6] = 0.00001f; // force perspective
175 dopatch(canvas, colors, GetResourceAsImage("images/mandrill_128.png"), &localM);
Dgm.cpp55 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/
DTestOps.cpp91 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()
DTestOps.h30 const SkMatrix& localM = SkMatrix::I());
40 const SkMatrix& localM = SkMatrix::I());
/third_party/skia/src/shaders/
DSkLocalMatrixShader.cpp82 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()
DSkShaderBase.h72 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,
DSkColorShader.h48 const SkMatrixProvider&, const SkMatrix* localM, const SkColorInfo& dst,
72 const SkMatrixProvider&, const SkMatrix* localM, const SkColorInfo& dst,
DSkComposeShader.cpp144 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()
DSkImageShader.h54 const SkMatrixProvider&, const SkMatrix* localM, const SkColorInfo& dst,
60 const SkMatrixProvider&, const SkMatrix* localM, const SkColorInfo& dst,
DSkTransformShader.cpp16 const SkMatrixProvider& matrices, const SkMatrix* localM, in onProgram() argument
22 b, device, newLocal, color, matrixProvider, localM, dst, uniforms, alloc); in onProgram()
DSkColorFilterShader.cpp67 const SkMatrixProvider& matrices, const SkMatrix* localM, in onProgram() argument
72 matrices,localM, dst, in onProgram()
/third_party/flutter/skia/src/shaders/
DSkShaderBase.h46 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()
DSkRTShader.cpp121 SkMatrix localM, *localMPtr = nullptr; in CreateProc() local
123 buffer.readMatrix(&localM); in CreateProc()
124 localMPtr = &localM; in CreateProc()

123