/external/linux-kselftest/tools/testing/selftests/timers/ |
D | valid-adjtimex.c | 199 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/ |
D | ShaderTest.cpp | 45 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/ |
D | ShaderTest.cpp | 45 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/ |
D | SkPictureShader.cpp | 31 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()
|
D | SkImageShader.h | 21 SkTileMode tmx, 36 SkTileMode tmx,
|
D | SkBitmapProcShader.cpp | 95 const SkShaderBase& shader, SkTileMode tmx, SkTileMode tmy, in MakeContext() argument 104 SkBitmapProcState* state = alloc->make<SkBitmapProcState>(image, tmx, tmy); in MakeContext()
|
D | SkImageShader.cpp | 37 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()
|
D | SkBitmapProcShader.h | 19 static Context* MakeContext(const SkShaderBase&, SkTileMode tmx, SkTileMode tmy,
|
D | SkShader.cpp | 144 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/ |
D | SkShader.cpp | 138 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()
|
D | SkBitmapProcShader.cpp | 96 const SkShaderBase& shader, TileMode tmx, TileMode tmy, in MakeContext() argument 105 SkBitmapProcState* state = alloc->make<SkBitmapProcState>(provider, tmx, tmy); in MakeContext()
|
D | SkPictureShader.cpp | 109 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()
|
D | SkBitmapProcShader.h | 19 static Context* MakeContext(const SkShaderBase&, TileMode tmx, TileMode tmy,
|
D | SkImageShader.cpp | 35 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/ |
D | SkBitmapProcState.h | 31 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/ |
D | SkBitmapProcState.h | 32 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/ |
D | SkPicture.h | 227 sk_sp<SkShader> makeShader(SkTileMode tmx, SkTileMode tmy, 229 sk_sp<SkShader> makeShader(SkTileMode tmx, SkTileMode tmy,
|
D | SkImage.h | 776 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/ |
D | SkShader.h | 243 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/ |
D | pictureshader.cpp | 28 SkTileMode tmx; member 164 auto pictureShader = fPicture->makeShader(kTileConfigs[tileMode].tmx, in drawScene() 176 kTileConfigs[tileMode].tmx, in drawScene()
|
D | tilemodes_scaled.cpp | 47 SkTileMode tmx, SkTileMode tmy) { in setup() argument 48 paint->setShader(bm.makeShader(tmx, tmy)); in setup()
|
D | tilemodes.cpp | 51 SkTileMode tmx, SkTileMode tmy) { in setup() argument 52 paint->setShader(bm.makeShader(tmx, tmy)); in setup()
|
/external/skqp/gm/ |
D | pictureshader.cpp | 18 SkShader::TileMode tmx; member 154 auto pictureShader = SkShader::MakePictureShader(fPicture, kTileConfigs[tileMode].tmx, in drawScene() 167 kTileConfigs[tileMode].tmx, in drawScene()
|
D | tilemodes_scaled.cpp | 38 SkShader::TileMode tmx, SkShader::TileMode tmy) { in setup() argument 39 paint->setShader(SkShader::MakeBitmapShader(bm, tmx, tmy)); in setup()
|
/external/skqp/samplecode/ |
D | SampleTiling.cpp | 45 SkShader::TileMode tmx, SkShader::TileMode tmy) { in setup() argument 46 paint->setShader(SkShader::MakeBitmapShader(bm, tmx, tmy)); in setup()
|