Home
last modified time | relevance | path

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

/external/skia/samplecode/
DSampleShip.cpp52 fAtlas = GetResourceAsImage("images/ship.png"); in DrawShipView()
53 if (!fAtlas) { in DrawShipView()
55 fAtlas = GetResourceAsImage("images/baby_tux.png"); in DrawShipView()
56 if (!fAtlas) { in DrawShipView()
63 SkScalar anchorX = fAtlas->width()*0.5f; in DrawShipView()
64 SkScalar anchorY = fAtlas->height()*0.5f; in DrawShipView()
72 SkIntToScalar(fAtlas->width()), in DrawShipView()
73 SkIntToScalar(fAtlas->height())); in DrawShipView()
80 SkIntToScalar(fAtlas->width()), in DrawShipView()
81 SkIntToScalar(fAtlas->height())); in DrawShipView()
[all …]
DSampleAtlas.cpp137 sk_sp<SkImage> fAtlas; member in DrawAtlasDrawable
148 fAtlas = make_atlas(kAtlasSize, kCellSize); in DrawAtlasDrawable()
193 fProc(canvas, fAtlas.get(), xform, fTex, colorsPtr, N, &cull, sampling, &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/
DGrSmallPathAtlasMgr.h52 if (fAtlas) { in preFlush()
53 fAtlas->instantiate(onFlushRP); in preFlush()
59 if (fAtlas) { in postFlush()
60 fAtlas->compact(startTokenForNextFlush); in postFlush()
69 *numActiveProxies = fAtlas->numActivePages(); in getViews()
70 return fAtlas->getViews(); in getViews()
83 std::unique_ptr<GrDrawOpAtlas> fAtlas; variable
DGrSmallPathAtlasMgr.cpp40 fAtlas = nullptr; in reset()
44 if (fAtlas) { in initAtlas()
57 fAtlas = GrDrawOpAtlas::Make(proxyProvider, format, in initAtlas()
62 return SkToBool(fAtlas); in initAtlas()
81 } else if (!fAtlas->hasID(shapeData->fAtlasLocator.plotLocator())) { in findOrCreate()
108 return fAtlas->addToAtlas(resourceProvider, target, width, height, image, locator); in addToAtlas()
113 fAtlas->setLastUseToken(shapeData->fAtlasLocator, token); in setUseToken()
/external/skia/src/gpu/ccpr/
DGrCCPerFlushResources.cpp54 if (!fAtlas || in placeRenderedPathInAtlas()
55 !fAtlas->addRect(clippedPathIBounds.width(), clippedPathIBounds.height(), &location)) { in placeRenderedPathInAtlas()
57 if (fAtlas) { in placeRenderedPathInAtlas()
59 retiredAtlas = std::move(fAtlas); in placeRenderedPathInAtlas()
61 fAtlas = std::make_unique<GrCCAtlas>(fAtlasSpecs, *onFlushRP->caps()); in placeRenderedPathInAtlas()
64 SkAssertResult(fAtlas->addRect(clippedPathIBounds.width(), clippedPathIBounds.height(), in placeRenderedPathInAtlas()
135 SkASSERT(fAtlas); in flushRenderedPaths()
136 auto surfaceDrawContext = fAtlas->instantiate(onFlushRP); in flushRenderedPaths()
166 SkRect::MakeSize(SkSize::Make(fAtlas->drawBounds()))); in flushRenderedPaths()
175 if (fAtlas) { in finalize()
[all …]
DGrCCPerFlushResources.h66 std::unique_ptr<GrCCAtlas> fAtlas; variable
/external/skqp/src/gpu/ops/
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
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 …]
/external/skia/bench/
DVertBench.cpp156 sk_sp<SkImage> fAtlas; member in AtlasBench
179 fAtlas = GetResourceAsImage("images/mandrill_256.png"); in onDelayedSetup()
180 if (fAtlas) { in onDelayedSetup()
181 fAtlas = fAtlas->makeRasterImage(); in onDelayedSetup()
184 const SkScalar imageW = fAtlas->width(); in onDelayedSetup()
185 const SkScalar imageH = fAtlas->height(); in onDelayedSetup()
212 canvas->drawAtlas(fAtlas.get(), fXforms, fRects, colors, N, SkBlendMode::kModulate, in onDraw()
DGameBench.cpp144 p2.setShader(fAtlas->makeShader(SkSamplingOptions(SkFilterMode::kLinear))); in onDraw()
208 canvas->drawImageRect(fAtlas, src, dst, SkSamplingOptions(), &p, in onDraw()
244 sk_sp<SkImage> fCheckerboard, fAtlas; member in GameBench
306 fAtlas = bm.asImage(); in makeAtlas()
/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/tessellate/
DGrTessellationPathRenderer.cpp46 : fAtlas(kAtlasAlpha8Type, GrDynamicAtlas::InternalMultisample::kYes, kAtlasInitialSize, in GrTessellationPathRenderer()
68 fMaxAtlasPathWidth = fAtlas.maxAtlasSize() / 2; in initAtlasFlags()
279 surfaceDrawContext->numSamples(), sk_ref_sp(fAtlas.textureProxy()), in onDrawPath()
335 if (!fAtlas.addRect(maxDimenstion, minDimension, locationInAtlas)) { in tryAddPathToAtlas()
371 if (!fAtlas.drawBounds().isEmpty()) { in preFlush()
373 fAtlas.reset(kAtlasInitialSize, *onFlushRP->caps()); in preFlush()
399 auto rtc = fAtlas.instantiate(onFlushRP); in renderAtlas()
424 SkRect coverRect = SkRect::MakeIWH(fAtlas.drawBounds().width(), fAtlas.drawBounds().height()); in renderAtlas()
DGrTessellationPathRenderer.h72 GrDynamicAtlas fAtlas; variable
/external/skia/tests/
DLazyProxyTest.cpp132 , fAtlas(atlas) { in ClipFP()
143 fAtlas->instantiate(rp); in ClipFP()
144 return sk_ref_sp(fAtlas->peekTexture()); in ClipFP()
156 return std::make_unique<ClipFP>(fContext, fProxyProvider, fTest, fAtlas); in clone()
167 GrTextureProxy* const fAtlas; member in LazyProxyTest::ClipFP
176 , fAtlas(atlas) {} in Clip()
180 return SkIRect::MakeSize(fAtlas->dimensions()); in getConservativeBounds()
186 out->addCoverageFP(std::make_unique<ClipFP>(context, proxyProvider, fTest, fAtlas)); in apply()
191 GrTextureProxy* fAtlas; member in LazyProxyTest::Clip
/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/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/gm/
Dimagefiltersbase.cpp219 if (fAtlas == nullptr) { in onDraw()
220 fAtlas = create_atlas_image(canvas); in onDraw()
251 drawProc[i](canvas, fAtlas.get(), r, filters[j]); in onDraw()
276 sk_sp<SkImage> fAtlas; member in ImageFiltersBaseGM
/external/skqp/include/private/
DGrCCClipPath.h72 const GrCCAtlas* fAtlas = nullptr; variable