Home
last modified time | relevance | path

Searched refs:tmx (Results 1 – 25 of 43) sorted by relevance

12

/third_party/skia/platform_tools/android/apps/AndroidKit/src/main/java/org/skia/androidkit/
DImage.java52 public Shader makeShader(TileMode tmx, TileMode tmy, SamplingOptions sampling) { in makeShader() argument
53 return makeShader(tmx, tmy, sampling, null); in makeShader()
56 public Shader makeShader(TileMode tmx, TileMode tmy, SamplingOptions sampling, in makeShader() argument
59 return new Shader(nMakeShader(mNativeInstance, tmx.nativeInt, tmy.nativeInt, in makeShader()
92 private static native long nMakeShader(long nativeInstance, int tmx, int tmy, int samplingDesc, in nMakeShader() argument
/third_party/flutter/skia/tests/
DShaderTest.cpp45 const SkTileMode tmx = SkTileMode::kRepeat; 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/tests/
DShaderTest.cpp45 const SkTileMode tmx = SkTileMode::kRepeat; 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/src/shaders/
DSkPictureShader.cpp31 sk_sp<SkShader> SkPicture::makeShader(SkTileMode tmx, SkTileMode tmy, const SkMatrix* localMatrix, in makeShader() argument
36 return SkPictureShader::Make(sk_ref_sp(this), tmx, tmy, localMatrix, tile); in makeShader()
39 sk_sp<SkShader> SkPicture::makeShader(SkTileMode tmx, SkTileMode tmy, in makeShader() argument
41 return this->makeShader(tmx, tmy, localMatrix, nullptr); in makeShader()
121 SkPictureShader::SkPictureShader(sk_sp<SkPicture> picture, SkTileMode tmx, SkTileMode tmy, in SkPictureShader() argument
126 , fTmx(tmx) in SkPictureShader()
137 sk_sp<SkShader> SkPictureShader::Make(sk_sp<SkPicture> picture, SkTileMode tmx, SkTileMode tmy, in Make() argument
142 return sk_sp<SkShader>(new SkPictureShader(std::move(picture), tmx, tmy, localMatrix, tile)); in Make()
164 auto tmx = buffer.read32LE(SkTileMode::kLastTileMode); in CreateProc() local
175 return SkPictureShader::Make(picture, tmx, tmy, &lm, &tile); in CreateProc()
DSkImageShader.cpp35 SkTileMode tmx, SkTileMode tmy, in SkImageShader() argument
40 , fTileModeX(optimize(tmx, fImage->width())) in SkImageShader()
49 auto tmx = buffer.read32LE<SkTileMode>(SkTileMode::kLastTileMode); in CreateProc() local
57 return SkImageShader::Make(std::move(img), tmx, tmy, &localMatrix); in CreateProc()
153 SkTileMode tmx, SkTileMode tmy, in Make() argument
159 return sk_sp<SkShader>{ new SkImageShader(image, tmx, tmy, localMatrix, clampAsIfUnpremul) }; in Make()
270 sk_sp<SkShader> SkMakeBitmapShader(const SkBitmap& src, SkTileMode tmx, SkTileMode tmy, in SkMakeBitmapShader() argument
273 tmx, tmy, localMatrix); in SkMakeBitmapShader()
277 SkTileMode tmx, SkTileMode tmy, in SkMakeBitmapShaderForPaint() argument
279 auto s = SkMakeBitmapShader(src, tmx, tmy, localMatrix, mode); in SkMakeBitmapShaderForPaint()
DSkImageShader.h21 SkTileMode tmx,
36 SkTileMode tmx,
DSkBitmapProcShader.cpp95 const SkShaderBase& shader, SkTileMode tmx, SkTileMode tmy, in MakeContext() argument
104 SkBitmapProcState* state = alloc->make<SkBitmapProcState>(image, tmx, tmy); in MakeContext()
DSkBitmapProcShader.h19 static Context* MakeContext(const SkShaderBase&, SkTileMode tmx, SkTileMode tmy,
DSkShader.cpp138 sk_sp<SkShader> SkBitmap::makeShader(SkTileMode tmx, SkTileMode tmy, const SkMatrix* lm) const { in makeShader() argument
142 return SkMakeBitmapShader(*this, tmx, tmy, lm, kIfMutable_SkCopyPixelsMode); in makeShader()
/third_party/skia/modules/androidkit/src/
DImage.cpp46 const auto tmx = androidkit::utils::TileMode(jtmx), in Image_MakeShader() local
53 ? image->makeShader(tmx, tmy, sampling, lm->asM33()) in Image_MakeShader()
54 : image->makeShader(tmx, tmy, sampling); in Image_MakeShader()
/third_party/skia/src/shaders/
DSkPictureShader.cpp38 sk_sp<SkShader> SkPicture::makeShader(SkTileMode tmx, SkTileMode tmy, SkFilterMode filter, in makeShader() argument
43 return SkPictureShader::Make(sk_ref_sp(this), tmx, tmy, filter, localMatrix, tile); in makeShader()
109 SkPictureShader::SkPictureShader(sk_sp<SkPicture> picture, SkTileMode tmx, SkTileMode tmy, in SkPictureShader() argument
114 , fTmx(tmx) in SkPictureShader()
118 sk_sp<SkShader> SkPictureShader::Make(sk_sp<SkPicture> picture, SkTileMode tmx, SkTileMode tmy, in Make() argument
123 return sk_sp<SkShader>(new SkPictureShader(std::move(picture), tmx, tmy, filter, lm, tile)); in Make()
129 auto tmx = buffer.read32LE(SkTileMode::kLastTileMode); in CreateProc() local
153 return SkPictureShader::Make(picture, tmx, tmy, filter, &lm, &tile); in CreateProc()
DSkImageShader.h18 SkTileMode tmx,
36 SkTileMode tmx,
DSkBitmapProcShader.cpp79 const SkShaderBase& shader, SkTileMode tmx, SkTileMode tmy, const SkSamplingOptions& sampling, in MakeContext() argument
88 SkBitmapProcState* state = alloc->make<SkBitmapProcState>(image, tmx, tmy); in MakeContext()
DSkBitmapProcShader.h19 static Context* MakeContext(const SkShaderBase&, SkTileMode tmx, SkTileMode tmy,
DSkImageShader.cpp70 SkTileMode tmx, SkTileMode tmy, in SkImageShader() argument
77 , fTileModeX(optimize(tmx, fImage->width())) in SkImageShader()
102 auto tmx = buffer.read32LE<SkTileMode>(SkTileMode::kLastTileMode); in CreateProc() local
124 return SkImageShader::Make(std::move(img), tmx, tmy, sampling, &localMatrix); in CreateProc()
250 SkTileMode tmx, SkTileMode tmy, in Make() argument
266 new SkImageShader(image, tmx, tmy, options, localMatrix, clampAsIfUnpremul) in Make()
312 SkTileMode tmx, SkTileMode tmy, in SkMakeBitmapShaderForPaint() argument
316 tmx, tmy, sampling, localMatrix); in SkMakeBitmapShaderForPaint()
/third_party/skia/include/core/
DSkPicture.h230 sk_sp<SkShader> makeShader(SkTileMode tmx, SkTileMode tmy, SkFilterMode mode,
233 sk_sp<SkShader> makeShader(SkTileMode tmx, SkTileMode tmy, SkFilterMode mode) const { in makeShader() argument
234 return this->makeShader(tmx, tmy, mode, nullptr, nullptr); in makeShader()
DSkBitmap.h1119 sk_sp<SkShader> makeShader(SkTileMode tmx, SkTileMode tmy, const SkSamplingOptions&,
1122 sk_sp<SkShader> makeShader(SkTileMode tmx, SkTileMode tmy, const SkSamplingOptions& sampling, in makeShader() argument
1124 return this->makeShader(tmx, tmy, sampling, &localMatrix); in makeShader()
DSkImage.h668 sk_sp<SkShader> makeShader(SkTileMode tmx, SkTileMode tmy, const SkSamplingOptions&,
671 sk_sp<SkShader> makeShader(SkTileMode tmx, SkTileMode tmy, const SkSamplingOptions& sampling, in makeShader() argument
673 return this->makeShader(tmx, tmy, sampling, &lm); in makeShader()
/third_party/flutter/engine/flutter/lib/ui/painting/
Dimage_shader.cc34 SkTileMode tmx, in initWithImage() argument
43 image->image()->makeShader(tmx, tmy, &sk_matrix))); in initWithImage()
Dimage_shader.h31 SkTileMode tmx,
/third_party/flutter/skia/src/core/
DSkBitmapProcState.h31 SkBitmapProcInfo(const SkImage_Base*, SkTileMode tmx, SkTileMode tmy);
57 SkBitmapProcState(const SkImage_Base* image, SkTileMode tmx, SkTileMode tmy) in SkBitmapProcState()
58 : SkBitmapProcInfo(image, tmx, tmy) {} in SkBitmapProcState()
/third_party/flutter/skia/include/core/
DSkPicture.h211 sk_sp<SkShader> makeShader(SkTileMode tmx, SkTileMode tmy,
213 sk_sp<SkShader> makeShader(SkTileMode tmx, SkTileMode tmy,
/third_party/flutter/skia/gm/
Dpictureshader.cpp28 SkTileMode tmx; member
164 auto pictureShader = fPicture->makeShader(kTileConfigs[tileMode].tmx, in drawScene()
176 kTileConfigs[tileMode].tmx, in drawScene()
/third_party/skia/gm/
Dpictureshader.cpp28 SkTileMode tmx; member
171 auto pictureShader = fPicture->makeShader(kTileConfigs[tileMode].tmx, in drawScene()
183 auto bitmapShader = fBitmap.makeShader(kTileConfigs[tileMode].tmx, in drawScene()
Dtilemodes_scaled.cpp53 SkTileMode tmx, SkTileMode tmy) { in setup() argument
54 paint->setShader(bm.makeShader(tmx, tmy, sampling)); in setup()

12