Home
last modified time | relevance | path

Searched refs:tileSize (Results 1 – 13 of 13) sorted by relevance

/external/skia/gm/
Dperlinnoise.cpp39 SkISize tileSize = SkISize::Make(fSize.width() / 2, fSize.height() / 2); in test() local
42 seed, stitchTiles ? &tileSize : NULL) : in test()
44 seed, stitchTiles ? &tileSize : NULL); in test()
48 drawRect(canvas, x, y, paint, tileSize); in test()
49 x += tileSize.width(); in test()
50 drawRect(canvas, x, y, paint, tileSize); in test()
51 y += tileSize.width(); in test()
52 drawRect(canvas, x, y, paint, tileSize); in test()
53 x -= tileSize.width(); in test()
54 drawRect(canvas, x, y, paint, tileSize); in test()
Dpictureshader.cpp27 PictureShaderGM(SkScalar tileSize, SkScalar sceneSize) in PictureShaderGM() argument
28 : fTileSize(tileSize) in PictureShaderGM()
/external/skia/include/effects/
DSkPerlinNoiseShader.h60 const SkISize* tileSize = NULL);
63 const SkISize* tileSize = NULL);
70 const SkISize* tileSize = NULL) {
71 return CreateTurbulence(baseFrequencyX, baseFrequencyY, numOctaves, seed, tileSize);
113 const SkISize* tileSize);
/external/skia/src/effects/
DSkPerlinNoiseShader.cpp77 PaintingData(const SkISize& tileSize, SkScalar seed, in PaintingData()
83 { SkIntToScalar(tileSize.fWidth), SkIntToScalar(tileSize.fHeight) }, in PaintingData()
252 const SkISize* tileSize) { in CreateFractalNoise() argument
254 numOctaves, seed, tileSize)); in CreateFractalNoise()
259 const SkISize* tileSize) { in CreateTurbulence() argument
261 numOctaves, seed, tileSize)); in CreateTurbulence()
269 const SkISize* tileSize) in SkPerlinNoiseShader() argument
275 , fTileSize(NULL == tileSize ? SkISize::Make(0, 0) : *tileSize) in SkPerlinNoiseShader()
290 SkISize tileSize; in CreateProc() local
291 tileSize.fWidth = buffer.readInt(); in CreateProc()
[all …]
/external/skia/samplecode/
DSamplePictFile.cpp52 void onTileSizeChanged(const SkSize &tileSize) override { in onTileSizeChanged() argument
53 if (tileSize != fTileSize) { in onTileSizeChanged()
54 fTileSize = tileSize; in onTileSizeChanged()
DSampleCode.h129 virtual void onTileSizeChanged(const SkSize& tileSize) {} in onTileSizeChanged() argument
DSampleApp.h238 SkSize tileSize() const;
DSampleApp.cpp601 SkSize SampleWindow::tileSize() const { in tileSize() function in SampleWindow
997 SkSize tile = this->tileSize(); in draw()
1503 ((SampleView*)curr_view(this))->onTileSizeChanged(this->tileSize()); in onEvent()
1859 sampleView->onTileSizeChanged(this->tileSize()); in loadView()
2006 ((SampleView*)view)->onTileSizeChanged(this->tileSize()); in onSizeChange()
/external/skia/src/core/
DSkPictureShader.cpp186 SkISize tileSize = scaledSize.toRound(); in refBitmapShader() local
187 if (tileSize.isEmpty()) { in refBitmapShader()
192 SkSize tileScale = SkSize::Make(SkIntToScalar(tileSize.width()) / fTile.width(), in refBitmapShader()
193 SkIntToScalar(tileSize.height()) / fTile.height()); in refBitmapShader()
205 bm.setInfo(SkImageInfo::MakeN32Premul(tileSize)); in refBitmapShader()
/external/skia/tests/
DImageFilterTest.cpp484 int tileSize = 8; in DEF_TEST() local
501 for (int y = 0; y < height; y += tileSize) { in DEF_TEST()
502 for (int x = 0; x < width; x += tileSize) { in DEF_TEST()
504 tiledCanvas.clipRect(SkRect::Make(SkIRect::MakeXYWH(x, y, tileSize, tileSize))); in DEF_TEST()
527 static void draw_saveLayer_picture(int width, int height, int tileSize, in draw_saveLayer_picture() argument
552 canvas.clipRect(SkRect::Make(SkIRect::MakeWH(tileSize, tileSize))); in draw_saveLayer_picture()
562 const int tileSize = 100; in DEF_TEST() local
566 draw_saveLayer_picture(width, height, tileSize, &factory, &result1); in DEF_TEST()
567 draw_saveLayer_picture(width, height, tileSize, NULL, &result2); in DEF_TEST()
670 int tileSize = 8; in DEF_TEST() local
[all …]
/external/skia/src/gpu/
DSkGpuDevice.cpp917 static inline int get_tile_count(const SkIRect& srcRect, int tileSize) { in get_tile_count() argument
918 int tilesX = (srcRect.fRight / tileSize) - (srcRect.fLeft / tileSize) + 1; in get_tile_count()
919 int tilesY = (srcRect.fBottom / tileSize) - (srcRect.fTop / tileSize) + 1; in get_tile_count()
978 int* tileSize, in shouldTileBitmap() argument
989 *tileSize = determine_tile_size(bitmap, *clippedSrcRect, maxTileSize); in shouldTileBitmap()
1019 *tileSize = kBmpSmallTileSize; // already know whole bitmap fits in one max sized tile. in shouldTileBitmap()
1304 int tileSize; in drawBitmapCommon() local
1307 if (this->shouldTileBitmap(bitmap, viewM, params, srcRectPtr, maxTileSize, &tileSize, in drawBitmapCommon()
1310 tileSize, doBicubic); in drawBitmapCommon()
1338 int tileSize, in drawTiledBitmap() argument
[all …]
DSkGpuDevice.h194 int* tileSize,
211 int tileSize,
/external/mesa3d/src/mesa/drivers/common/
Dmeta.c2217 GLint tileSize, in tiled_draw_pixels() argument
2229 for (i = 0; i < width; i += tileSize) { in tiled_draw_pixels()
2230 const GLint tileWidth = MIN2(tileSize, width - i); in tiled_draw_pixels()
2235 for (j = 0; j < height; j += tileSize) { in tiled_draw_pixels()
2236 const GLint tileHeight = MIN2(tileSize, height - j); in tiled_draw_pixels()