Home
last modified time | relevance | path

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

/external/skia/samplecode/
DSampleShip.cpp51 fAtlas = GetResourceAsImage("images/ship.png"); in DrawShipView()
52 if (!fAtlas) { in DrawShipView()
54 fAtlas = GetResourceAsImage("images/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()
103 canvas->drawBitmap(fAtlas, 0, 0); // just to see the atlas in onDraw()
116 canvas->drawLitAtlas(fAtlas, xforms, fDiffTex, fNormTex, colorsPtr, kNumAsteroids+1, in onDraw()
134 … sk_sp<SkShader> normalMap = SkShader::MakeBitmapShader(fAtlas, SkShader::kClamp_TileMode, in onDraw()
138 sk_sp<SkShader> diffuseShader = SkShader::MakeBitmapShader(fAtlas, in onDraw()
437 SkBitmap fAtlas; member in DrawLitAtlasDrawable
DSampleAtlas.cpp135 sk_sp<SkImage> fAtlas; member in DrawAtlasDrawable
146 fAtlas = make_atlas(kAtlasSize, kCellSize); in DrawAtlasDrawable()
191 fProc(canvas, fAtlas.get(), xform, fTex, colorsPtr, N, &cull, &paint); in onDraw()
/external/skqp/samplecode/
DSampleShip.cpp51 fAtlas = GetResourceAsImage("images/ship.png"); in DrawShipView()
52 if (!fAtlas) { in DrawShipView()
54 fAtlas = GetResourceAsImage("images/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()
103 canvas->drawBitmap(fAtlas, 0, 0); // just to see the atlas in onDraw()
116 canvas->drawLitAtlas(fAtlas, xforms, fDiffTex, fNormTex, colorsPtr, kNumAsteroids+1, in onDraw()
134 … sk_sp<SkShader> normalMap = SkShader::MakeBitmapShader(fAtlas, SkShader::kClamp_TileMode, in onDraw()
138 sk_sp<SkShader> diffuseShader = SkShader::MakeBitmapShader(fAtlas, in onDraw()
437 SkBitmap fAtlas; member in DrawLitAtlasDrawable
DSampleAtlas.cpp135 sk_sp<SkImage> fAtlas; member in DrawAtlasDrawable
146 fAtlas = make_atlas(kAtlasSize, kCellSize); in DrawAtlasDrawable()
191 fProc(canvas, fAtlas.get(), xform, fTex, colorsPtr, N, &cull, &paint); in onDraw()
/external/skia/src/gpu/ops/
DGrSmallPathRenderer.cpp160 GrSmallPathRenderer::GrSmallPathRenderer() : fAtlas(nullptr) {} in GrSmallPathRenderer()
267 fAtlas = atlas; in SmallPathOp()
280 const sk_sp<GrTextureProxy>* proxies = fAtlas->getProxies(); in visitProxies()
281 for (uint32_t i = 0; i < fAtlas->numActivePages(); ++i) { in visitProxies()
326 int numActiveProxies = fAtlas->numActivePages(); in onPrepareDraws()
327 const auto proxies = fAtlas->getProxies(); in onPrepareDraws()
354 *target->caps().shaderCaps(), *matrix, fWideColor, fAtlas->getProxies(), in onPrepareDraws()
355 fAtlas->numActivePages(), GrSamplerState::ClampBilerp(), flags); in onPrepareDraws()
365 *target->caps().shaderCaps(), this->color(), fWideColor, fAtlas->getProxies(), in onPrepareDraws()
366 fAtlas->numActivePages(), GrSamplerState::ClampNearest(), kA8_GrMaskFormat, in onPrepareDraws()
[all …]
DGrSmallPathRenderer.h38 if (fAtlas) { in preFlush()
39 fAtlas->instantiate(onFlushResourceProvider); in preFlush()
45 if (fAtlas) { in postFlush()
46 fAtlas->compact(startTokenForNextFlush); in postFlush()
77 std::unique_ptr<GrDrawOpAtlas> fAtlas; variable
/external/skqp/src/gpu/ops/
DGrSmallPathRenderer.cpp159 GrSmallPathRenderer::GrSmallPathRenderer() : fAtlas(nullptr) {} in GrSmallPathRenderer()
266 fAtlas = atlas; in SmallPathOp()
279 const sk_sp<GrTextureProxy>* proxies = fAtlas->getProxies(); in visitProxies()
280 for (uint32_t i = 0; i < fAtlas->numActivePages(); ++i) { in visitProxies()
323 int numActiveProxies = fAtlas->numActivePages(); in onPrepareDraws()
324 const auto proxies = fAtlas->getProxies(); in onPrepareDraws()
355 *target->caps().shaderCaps(), *matrix, fWideColor, fAtlas->getProxies(), in onPrepareDraws()
356 fAtlas->numActivePages(), GrSamplerState::ClampBilerp(), flags); in onPrepareDraws()
366 *target->caps().shaderCaps(), this->color(), fWideColor, fAtlas->getProxies(), in onPrepareDraws()
367 fAtlas->numActivePages(), GrSamplerState::ClampNearest(), kA8_GrMaskFormat, in onPrepareDraws()
[all …]
DGrSmallPathRenderer.h38 if (fAtlas) { in preFlush()
39 fAtlas->instantiate(onFlushResourceProvider); in preFlush()
45 if (fAtlas) { in postFlush()
46 fAtlas->compact(startTokenForNextFlush); in postFlush()
77 std::unique_ptr<GrDrawOpAtlas> fAtlas; variable
/external/skqp/src/gpu/ccpr/
DGrCCClipPath.cpp30 GrTextureProxy* textureProxy = fAtlas ? fAtlas->textureProxy() : nullptr; in init()
70 fAtlas = resources->renderDeviceSpacePathInAtlas(fAccessRect, fDeviceSpacePath, fPathDevIBounds, in renderPathInAtlas()
/external/skia/src/gpu/ccpr/
DGrCCClipPath.cpp30 GrTextureProxy* textureProxy = fAtlas ? fAtlas->textureProxy() : nullptr; in init()
70 fAtlas = resources->renderDeviceSpacePathInAtlas(fAccessRect, fDeviceSpacePath, fPathDevIBounds, in renderPathInAtlas()
/external/skia/bench/
DGameBench.cpp144 p2.setShader(SkShader::MakeBitmapShader(fAtlas, in onDraw()
209 canvas->drawBitmapRect(fAtlas, src, dst, &p, in onDraw()
246 SkBitmap fAtlas; member in GameBench
285 fAtlas.allocN32Pixels(kTotAtlasWidth, kTotAtlasHeight); in makeAtlas()
291 SkPMColor* scanline = fAtlas.getAddr32(0, y); in makeAtlas()
/external/skqp/bench/
DGameBench.cpp144 p2.setShader(SkShader::MakeBitmapShader(fAtlas, in onDraw()
209 canvas->drawBitmapRect(fAtlas, src, dst, &p, in onDraw()
246 SkBitmap fAtlas; member in GameBench
285 fAtlas.allocN32Pixels(kTotAtlasWidth, kTotAtlasHeight); in makeAtlas()
291 SkPMColor* scanline = fAtlas.getAddr32(0, y); in makeAtlas()
/external/skia/tests/
DLazyProxyTest.cpp132 , fAtlas(atlas) { in ClipFP()
143 fAtlas->instantiate(rp); in ClipFP()
144 return sk_ref_sp(fAtlas->peekTexture()); in ClipFP()
158 return skstd::make_unique<ClipFP>(fContext, fProxyProvider, fTest, fAtlas); in clone()
168 GrTextureProxy* const fAtlas; member in LazyProxyTest::ClipFP
178 , fAtlas(atlas) {} in Clip()
184 out->addCoverageFP(skstd::make_unique<ClipFP>(context, proxyProvider, fTest, fAtlas)); in apply()
197 GrTextureProxy* fAtlas; member in LazyProxyTest::Clip
DGpuLayerCacheTest.cpp29 return cache->fAtlas->getTextureOrNull();
/external/skqp/tests/
DLazyProxyTest.cpp128 , fAtlas(atlas) { in ClipFP()
139 fAtlas->instantiate(rp); in ClipFP()
140 return sk_ref_sp(fAtlas->peekTexture()); in ClipFP()
154 return skstd::make_unique<ClipFP>(fContext, fProxyProvider, fTest, fAtlas); in clone()
164 GrTextureProxy* const fAtlas; member in LazyProxyTest::ClipFP
174 , fAtlas(atlas) {} in Clip()
180 out->addCoverageFP(skstd::make_unique<ClipFP>(context, proxyProvider, fTest, fAtlas)); in apply()
193 GrTextureProxy* fAtlas; member in LazyProxyTest::Clip
DGpuLayerCacheTest.cpp29 return cache->fAtlas->getTextureOrNull();
/external/skia/include/private/
DGrCCClipPath.h72 const GrCCAtlas* fAtlas = nullptr; variable
/external/skqp/include/private/
DGrCCClipPath.h72 const GrCCAtlas* fAtlas = nullptr; variable