Home
last modified time | relevance | path

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

12

/external/linux-kselftest/tools/testing/selftests/timers/
Dvalid-adjtimex.c199 struct timex tmx = {}; in set_offset() local
202 tmx.modes = ADJ_SETOFFSET; in set_offset()
204 tmx.modes |= ADJ_NANO; in set_offset()
206 tmx.time.tv_sec = offset / NSEC_PER_SEC; in set_offset()
207 tmx.time.tv_usec = offset % NSEC_PER_SEC; in set_offset()
209 if (offset < 0 && tmx.time.tv_usec) { in set_offset()
210 tmx.time.tv_sec -= 1; in set_offset()
211 tmx.time.tv_usec += NSEC_PER_SEC; in set_offset()
214 tmx.time.tv_sec = offset / USEC_PER_SEC; in set_offset()
215 tmx.time.tv_usec = offset % USEC_PER_SEC; in set_offset()
[all …]
/external/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()
/external/skqp/tests/
DShaderTest.cpp45 const SkShader::TileMode tmx = SkShader::kRepeat_TileMode; in DEF_TEST() local
48 auto shader0 = SkShader::MakeBitmapShader(bm, 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()
/external/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.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()
DSkImageShader.cpp37 SkTileMode tmx, SkTileMode tmy, in SkImageShader() argument
42 , fTileModeX(optimize(tmx, fImage->width())) in SkImageShader()
51 auto tmx = buffer.read32LE<SkTileMode>(SkTileMode::kLastTileMode); in CreateProc() local
59 return SkImageShader::Make(std::move(img), tmx, tmy, &localMatrix); in CreateProc()
161 SkTileMode tmx, SkTileMode tmy, in Make() argument
167 return sk_sp<SkShader>{ new SkImageShader(image, tmx, tmy, localMatrix, clampAsIfUnpremul) }; in Make()
253 sk_sp<SkShader> SkMakeBitmapShader(const SkBitmap& src, SkTileMode tmx, SkTileMode tmy, in SkMakeBitmapShader() argument
256 tmx, tmy, localMatrix); in SkMakeBitmapShader()
260 SkTileMode tmx, SkTileMode tmy, in SkMakeBitmapShaderForPaint() argument
262 auto s = SkMakeBitmapShader(src, tmx, tmy, localMatrix, mode); in SkMakeBitmapShaderForPaint()
DSkBitmapProcShader.h19 static Context* MakeContext(const SkShaderBase&, SkTileMode tmx, SkTileMode tmy,
DSkShader.cpp144 sk_sp<SkShader> SkBitmap::makeShader(SkTileMode tmx, SkTileMode tmy, const SkMatrix* lm) const { in makeShader() argument
148 return SkMakeBitmapShader(*this, tmx, tmy, lm, kIfMutable_SkCopyPixelsMode); in makeShader()
/external/skqp/src/shaders/
DSkShader.cpp138 sk_sp<SkShader> SkShader::MakeBitmapShader(const SkBitmap& src, TileMode tmx, TileMode tmy, in MakeBitmapShader() argument
143 return SkMakeBitmapShader(src, tmx, tmy, localMatrix, kIfMutable_SkCopyPixelsMode); in MakeBitmapShader()
146 sk_sp<SkShader> SkShader::MakePictureShader(sk_sp<SkPicture> src, TileMode tmx, TileMode tmy, in MakePictureShader() argument
151 return SkPictureShader::Make(std::move(src), tmx, tmy, localMatrix, tile); in MakePictureShader()
DSkBitmapProcShader.cpp96 const SkShaderBase& shader, TileMode tmx, TileMode tmy, in MakeContext() argument
105 SkBitmapProcState* state = alloc->make<SkBitmapProcState>(provider, tmx, tmy); in MakeContext()
DSkPictureShader.cpp109 SkPictureShader::SkPictureShader(sk_sp<SkPicture> picture, TileMode tmx, TileMode tmy, in SkPictureShader() argument
115 , fTmx(tmx) in SkPictureShader()
127 sk_sp<SkShader> SkPictureShader::Make(sk_sp<SkPicture> picture, TileMode tmx, TileMode tmy, in Make() argument
132 return sk_sp<SkShader>(new SkPictureShader(std::move(picture), tmx, tmy, localMatrix, tile, in Make()
DSkBitmapProcShader.h19 static Context* MakeContext(const SkShaderBase&, TileMode tmx, TileMode tmy,
DSkImageShader.cpp35 TileMode tmx, TileMode tmy, in SkImageShader() argument
40 , fTileModeX(optimize(tmx, fImage->width())) in SkImageShader()
261 sk_sp<SkShader> SkMakeBitmapShader(const SkBitmap& src, SkShader::TileMode tmx, in SkMakeBitmapShader() argument
265 tmx, tmy, localMatrix); in SkMakeBitmapShader()
/external/skia/src/core/
DSkBitmapProcState.h31 SkBitmapProcInfo(const SkImage_Base*, SkTileMode tmx, SkTileMode tmy);
54 SkBitmapProcState(const SkImage_Base* image, SkTileMode tmx, SkTileMode tmy) in SkBitmapProcState()
55 : SkBitmapProcInfo(image, tmx, tmy) {} in SkBitmapProcState()
/external/skqp/src/core/
DSkBitmapProcState.h32 SkBitmapProcInfo(const SkBitmapProvider&, SkShader::TileMode tmx, SkShader::TileMode tmy);
58 SkBitmapProcState(const SkBitmapProvider& prov, SkShader::TileMode tmx, SkShader::TileMode tmy) in SkBitmapProcState()
59 : SkBitmapProcInfo(prov, tmx, tmy) {} in SkBitmapProcState()
/external/skia/include/core/
DSkPicture.h227 sk_sp<SkShader> makeShader(SkTileMode tmx, SkTileMode tmy,
229 sk_sp<SkShader> makeShader(SkTileMode tmx, SkTileMode tmy,
DSkImage.h776 sk_sp<SkShader> makeShader(SkTileMode tmx, SkTileMode tmy,
778 sk_sp<SkShader> makeShader(SkTileMode tmx, SkTileMode tmy, const SkMatrix& localMatrix) const { in makeShader() argument
779 return this->makeShader(tmx, tmy, &localMatrix); in makeShader()
/external/skqp/include/core/
DSkShader.h243 static sk_sp<SkShader> MakeBitmapShader(const SkBitmap& src, TileMode tmx, TileMode tmy,
262 static sk_sp<SkShader> MakePictureShader(sk_sp<SkPicture> src, TileMode tmx, TileMode tmy,
/external/skia/gm/
Dpictureshader.cpp28 SkTileMode tmx; member
164 auto pictureShader = fPicture->makeShader(kTileConfigs[tileMode].tmx, in drawScene()
176 kTileConfigs[tileMode].tmx, in drawScene()
Dtilemodes_scaled.cpp47 SkTileMode tmx, SkTileMode tmy) { in setup() argument
48 paint->setShader(bm.makeShader(tmx, tmy)); in setup()
Dtilemodes.cpp51 SkTileMode tmx, SkTileMode tmy) { in setup() argument
52 paint->setShader(bm.makeShader(tmx, tmy)); in setup()
/external/skqp/gm/
Dpictureshader.cpp18 SkShader::TileMode tmx; member
154 auto pictureShader = SkShader::MakePictureShader(fPicture, kTileConfigs[tileMode].tmx, in drawScene()
167 kTileConfigs[tileMode].tmx, in drawScene()
Dtilemodes_scaled.cpp38 SkShader::TileMode tmx, SkShader::TileMode tmy) { in setup() argument
39 paint->setShader(SkShader::MakeBitmapShader(bm, tmx, tmy)); in setup()
/external/skqp/samplecode/
DSampleTiling.cpp45 SkShader::TileMode tmx, SkShader::TileMode tmy) { in setup() argument
46 paint->setShader(SkShader::MakeBitmapShader(bm, tmx, tmy)); in setup()

12