Home
last modified time | relevance | path

Searched refs:fAtlas (Results 1 – 12 of 12) sorted by relevance

/external/skia/samplecode/
DSampleShip.cpp51 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 …]
DSampleLitAtlas.cpp28 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
DSampleAtlas.cpp134 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/
DGameBench.cpp142 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/
DGrSmallPathRenderer.cpp72 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 …]
DGrSmallPathRenderer.h126 std::unique_ptr<GrDrawOpAtlas> fAtlas; variable
/external/skia/src/gpu/
DGrTextureStripAtlas.h152 AtlasEntry() : fAtlas(nullptr) {} in AtlasEntry()
153 ~AtlasEntry() { delete fAtlas; } in ~AtlasEntry() local
155 GrTextureStripAtlas* fAtlas; variable
/external/skia/src/effects/
DSkTableColorFilter.cpp381 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/
DGrTextureStripAtlas.cpp62 entry->fAtlas = new GrTextureStripAtlas(desc); in GetAtlas()
70 return entry->fAtlas; in GetAtlas()
/external/skia/src/effects/gradients/
DSkGradientShader.cpp1687 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()
DSkGradientShaderPriv.h449 GrTextureStripAtlas* fAtlas; variable
/external/skia/tests/
DGpuLayerCacheTest.cpp31 return cache->fAtlas->getTextureOrNull();