/external/skia/samplecode/ |
D | SampleShip.cpp | 51 fAtlas = GetResourceAsImage("ship.png"); in DrawShipView() 52 if (!fAtlas) { in DrawShipView() 54 fAtlas = GetResourceAsImage("baby_tux.png"); in DrawShipView() 55 if (!fAtlas) { in DrawShipView() 62 SkScalar anchorX = fAtlas->width()*0.5f; in DrawShipView() 63 SkScalar anchorY = fAtlas->height()*0.5f; in DrawShipView() 71 SkIntToScalar(fAtlas->width()), in DrawShipView() 72 SkIntToScalar(fAtlas->height())); in DrawShipView() 79 SkIntToScalar(fAtlas->width()), in DrawShipView() 80 SkIntToScalar(fAtlas->height())); in DrawShipView() [all …]
|
D | SampleLitAtlas.cpp | 28 fAtlas = MakeAtlas(); in DrawLitAtlasDrawable() 102 canvas->drawBitmap(fAtlas, 0, 0); // just to see the atlas in onDraw() 115 canvas->drawLitAtlas(fAtlas, xforms, fDiffTex, fNormTex, colorsPtr, kNumAsteroids+1, in onDraw() 133 … sk_sp<SkShader> normalMap = SkShader::MakeBitmapShader(fAtlas, SkShader::kClamp_TileMode, in onDraw() 137 sk_sp<SkShader> diffuseShader = SkShader::MakeBitmapShader(fAtlas, in onDraw() 439 SkBitmap fAtlas; member in DrawLitAtlasDrawable
|
D | SampleAtlas.cpp | 134 sk_sp<SkImage> fAtlas; member in DrawAtlasDrawable 145 fAtlas = make_atlas(kAtlasSize, kCellSize); in DrawAtlasDrawable() 190 fProc(canvas, fAtlas.get(), xform, fTex, colorsPtr, N, &cull, &paint); in onDraw()
|
/external/skia/bench/ |
D | GameBench.cpp | 142 p2.setShader(SkShader::MakeBitmapShader(fAtlas, in onDraw() 206 canvas->drawBitmapRect(fAtlas, src, dst, &p, in onDraw() 243 SkBitmap fAtlas; member in GameBench 283 fAtlas.allocN32Pixels(kTotAtlasWidth, kTotAtlasHeight); in makeAtlas() 284 SkAutoLockPixels lock(fAtlas); in makeAtlas() 290 SkPMColor* scanline = fAtlas.getAddr32(0, y); in makeAtlas()
|
/external/skia/src/gpu/ops/ |
D | GrSmallPathRenderer.cpp | 72 GrSmallPathRenderer::GrSmallPathRenderer() : fAtlas(nullptr) {} in GrSmallPathRenderer() 195 fAtlas = atlas; in SmallPathOp() 229 GrDrawOpAtlas* atlas = fAtlas; in onPrepareDraws() 736 GrDrawOpAtlas* fAtlas; member in SmallPathOp 751 if (!fAtlas) { in onDrawPath() 752 fAtlas = GrDrawOpAtlas::Make(args.fContext, in onDrawPath() 758 if (!fAtlas) { in onDrawPath() 764 args.fPaint.getColor(), *args.fShape, *args.fViewMatrix, fAtlas.get(), &fShapeCache, in onDrawPath() 782 PathTestStruct() : fContextID(SK_InvalidGenID), fAtlas(nullptr) {} in PathTestStruct() 794 fAtlas = nullptr; in reset() [all …]
|
D | GrSmallPathRenderer.h | 126 std::unique_ptr<GrDrawOpAtlas> fAtlas; variable
|
/external/skia/src/gpu/ |
D | GrTextureStripAtlas.h | 152 AtlasEntry() : fAtlas(nullptr) {} in AtlasEntry() 153 ~AtlasEntry() { delete fAtlas; } in ~AtlasEntry() local 155 GrTextureStripAtlas* fAtlas; variable
|
/external/skia/src/effects/ |
D | SkTableColorFilter.cpp | 381 const GrTextureStripAtlas* atlas() const { return fAtlas; } in atlas() 397 GrTextureStripAtlas* fAtlas; member in ColorTableEffect 522 , fAtlas(atlas) in ColorTableEffect() 529 if (fAtlas) { in ~ColorTableEffect() 530 fAtlas->unlockRow(fRow); in ~ColorTableEffect() 548 SkASSERT(SkToBool(fAtlas) == SkToBool(that.fAtlas)); in onIsEqual()
|
/external/skia/src/gpu/effects/ |
D | GrTextureStripAtlas.cpp | 62 entry->fAtlas = new GrTextureStripAtlas(desc); in GetAtlas() 70 return entry->fAtlas; in GetAtlas()
|
/external/skia/src/effects/gradients/ |
D | SkGradientShader.cpp | 1687 fAtlas = GrTextureStripAtlas::GetAtlas(desc); in GrGradientEffect() 1688 SkASSERT(fAtlas); in GrGradientEffect() 1696 fRow = fAtlas->lockRow(bitmap); in GrGradientEffect() 1698 fYCoord = fAtlas->getYOffset(fRow)+SK_ScalarHalf*fAtlas->getNormalizedTexelHeight(); in GrGradientEffect() 1701 fAtlas->asTextureProxyRef().get(), in GrGradientEffect() 1704 fAtlas->asTextureProxyRef(), params); in GrGradientEffect() 1737 fAtlas->unlockRow(fRow); in ~GrGradientEffect()
|
D | SkGradientShaderPriv.h | 449 GrTextureStripAtlas* fAtlas; variable
|
/external/skia/tests/ |
D | GpuLayerCacheTest.cpp | 31 return cache->fAtlas->getTextureOrNull();
|