Home
last modified time | relevance | path

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

/external/skia/tests/
DShaderTest.cpp29 SkMatrix localM; in check_isaimage() local
32 localM.setScale(9999, -9999); in check_isaimage()
35 SkImage* image = shader->isAImage(&localM, tileModes); in check_isaimage()
39 REPORTER_ASSERT(reporter, localM == expectedM); in check_isaimage()
50 const SkMatrix localM = SkMatrix::Scale(2, 3); in DEF_TEST() local
54 auto shader0 = bm.makeShader(tmx, tmy, SkSamplingOptions(), localM); in DEF_TEST()
55 auto shader1 = bm.asImage()->makeShader(tmx, tmy, SkSamplingOptions(), localM); in DEF_TEST()
57 check_isaimage(reporter, shader0.get(), W, H, tmx, tmy, localM); in DEF_TEST()
58 check_isaimage(reporter, shader1.get(), W, H, tmx, tmy, localM); in DEF_TEST()
/external/skia/src/core/
DSkLocalMatrixImageFilter.cpp15 sk_sp<SkImageFilter> SkLocalMatrixImageFilter::Make(const SkMatrix& localM, in Make() argument
20 if (localM.isIdentity()) { in Make()
24 if ((inputCapability == MatrixCapability::kTranslate && !localM.isTranslate()) || in Make()
25 (inputCapability == MatrixCapability::kScaleTranslate && !localM.isScaleTranslate())) { in Make()
29 return sk_sp<SkImageFilter>(new SkLocalMatrixImageFilter(localM, input)); in Make()
32 SkLocalMatrixImageFilter::SkLocalMatrixImageFilter(const SkMatrix& localM, in SkLocalMatrixImageFilter() argument
35 , fLocalM(localM) { in SkLocalMatrixImageFilter()
DSkLocalMatrixImageFilter.h20 static sk_sp<SkImageFilter> Make(const SkMatrix& localM, sk_sp<SkImageFilter> input);
35 SkLocalMatrixImageFilter(const SkMatrix& localM, sk_sp<SkImageFilter> input);
DSkDraw_vertices.cpp436 SkMatrix localM; in drawFixedVertices() local
437 if (!transformShader || (texture_to_matrix(state, positions, texCoords, &localM) && in drawFixedVertices()
438 transformShader->update(SkMatrix::Concat(ctm, localM)))) { in drawFixedVertices()
458 SkMatrix localM; in drawFixedVertices() local
459 if (transformShader && !(texture_to_matrix(state, positions, texCoords, &localM) && in drawFixedVertices()
460 transformShader->update(SkMatrix::Concat(ctm, localM)))) { in drawFixedVertices()
DSkRuntimeEffect.cpp1543 SkTLazy<SkMatrix> localM; in CreateProc() local
1547 buffer.readMatrix(localM.init()); in CreateProc()
1579 return effect->makeShader(std::move(uniforms), SkSpan(children), localM.getMaybeNull()); in CreateProc()
/external/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.cpp51 SkMatrix localM; in onDraw() local
52 localM.setRotate(90, 128, 128); in onDraw()
56 SkData::MakeWithCopy(&iResolution, sizeof(iResolution)), nullptr, 0, &localM); in onDraw()
Dpatch.cpp173 SkMatrix localM; variable
174 localM.reset();
175 localM[6] = 0.00001f; // force perspective
176 dopatch(canvas, colors, GetResourceAsImage("images/mandrill_128.png"), &localM);
Dgm.cpp57 SkMatrix localM; in draw_gpu_only_message() local
58 localM.setRotate(35.f); in draw_gpu_only_message()
59 localM.postTranslate(10.f, 0.f); in draw_gpu_only_message()
63 localM)); in draw_gpu_only_message()
Dimage_shader.cpp132 const SkMatrix localM = SkMatrix::Translate(-50, -50); in testImage() local
134 paint.setShader(image->makeShader(tile, tile, SkSamplingOptions(), &localM)); in testImage()
Druntimeshader.cpp78 SkMatrix localM; in onDraw() local
79 localM.setRotate(90, 128, 128); in onDraw()
83 p.setShader(builder.makeShader(&localM)); in onDraw()
/external/skia/tools/gpu/
DTestOps.cpp92 const SkMatrix& localM);
150 const SkMatrix& localM) { in Make() argument
152 return GrOp::Make<TestRectOp>(context, caps, std::move(paint), drawRect, localRect, localM); in Make()
231 const SkMatrix& localM) { in MakeRect() argument
232 return TestRectOp::Make(context, std::move(paint), drawRect, localRect, localM); in MakeRect()
239 const SkMatrix& localM) { in MakeRect() argument
242 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());
/external/jdiff/src/jdiff/
DXMLToAPI.java145 MethodAPI localM = (MethodAPI)(iter2.next()); in addInheritedElements() local
146 if (localM.name_.compareTo(m.name_) == 0 && in addInheritedElements()
147 localM.getSignature().compareTo(m.getSignature()) == 0) in addInheritedElements()
/external/skia/src/shaders/
DSkShaderBase.h132 ContextRec(const SkPaint& paint, const SkMatrix& matrix, const SkMatrix* localM, in ContextRec()
135 , fLocalMatrix(localM) in ContextRec()
/external/skia/tools/viewer/
DTouchGesture.h34 const SkMatrix& localM();
DTouchGesture.cpp131 const SkMatrix& TouchGesture::localM() { in localM() function in TouchGesture
DViewer.cpp1262 SkMatrix m = fGesture.localM(); in computeMatrix()
/external/skia/src/effects/imagefilters/
DSkRuntimeImageFilter.cpp201 SkMatrix localM = inverse * SkMatrix::Translate(inputOffset); in onFilterImage() local
203 input->asShader(SkSamplingOptions(SkFilterMode::kLinear), localM); in onFilterImage()
/external/skia/src/gpu/ganesh/
DDevice_drawTexture.cpp694 bool can_disable_mipmap(const SkMatrix& viewM, const SkMatrix& localM) { in can_disable_mipmap() argument
696 matrix.setConcat(viewM, localM); in can_disable_mipmap()