/external/skia/samplecode/ |
D | SampleShip.cpp | 50 fAtlas = GetResourceAsImage("images/ship.png"); in DrawShipView() 51 if (!fAtlas) { in DrawShipView() 53 fAtlas = GetResourceAsImage("images/baby_tux.png"); in DrawShipView() 54 if (!fAtlas) { in DrawShipView() 61 SkScalar anchorX = fAtlas->width()*0.5f; in DrawShipView() 62 SkScalar anchorY = fAtlas->height()*0.5f; in DrawShipView() 70 SkIntToScalar(fAtlas->width()), in DrawShipView() 71 SkIntToScalar(fAtlas->height())); in DrawShipView() 78 SkIntToScalar(fAtlas->width()), in DrawShipView() 79 SkIntToScalar(fAtlas->height())); in DrawShipView() [all …]
|
D | SampleLitAtlas.cpp | 27 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 = fAtlas.makeShader(&normalMat); in onDraw() 137 sk_sp<SkShader> diffuseShader = fAtlas.makeShader(&diffMat); in onDraw() 431 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/skqp/samplecode/ |
D | SampleShip.cpp | 51 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 …]
|
D | SampleLitAtlas.cpp | 28 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
|
D | SampleAtlas.cpp | 135 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/src/gpu/ops/ |
D | GrSmallPathRenderer.h | 38 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
|
D | GrSmallPathRenderer.cpp | 159 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/src/gpu/ops/ |
D | GrSmallPathRenderer.h | 40 if (fAtlas) { in preFlush() 41 fAtlas->instantiate(onFlushRP); in preFlush() 47 if (fAtlas) { in postFlush() 48 fAtlas->compact(startTokenForNextFlush); in postFlush() 79 std::unique_ptr<GrDrawOpAtlas> fAtlas; variable
|
D | GrSmallPathRenderer.cpp | 156 GrSmallPathRenderer::GrSmallPathRenderer() : fAtlas(nullptr) {} in GrSmallPathRenderer() 263 fAtlas = atlas; in SmallPathOp() 274 const GrSurfaceProxyView* views = fAtlas->getViews(); in visitProxies() 275 for (uint32_t i = 0; i < fAtlas->numActivePages(); ++i) { in visitProxies() 321 int numActiveProxies = fAtlas->numActivePages(); in onPrepareDraws() 322 const auto views = fAtlas->getViews(); in onPrepareDraws() 353 fAtlas->getViews(), fAtlas->numActivePages(), GrSamplerState::Filter::kBilerp, in onPrepareDraws() 365 fAtlas->getViews(), fAtlas->numActivePages(), GrSamplerState::Filter::kNearest, in onPrepareDraws() 440 if (nullptr == shapeData || !fAtlas->hasID(shapeData->fPlotLocator)) { in onPrepareDraws() 452 fAtlas, in onPrepareDraws() [all …]
|
/external/skia/bench/ |
D | VertBench.cpp | 156 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, fXforms, fRects, colors, N, SkBlendMode::kModulate, in onDraw()
|
D | GameBench.cpp | 145 p2.setShader(fAtlas.makeShader()); in onDraw() 208 canvas->drawBitmapRect(fAtlas, src, dst, &p, in onDraw() 245 SkBitmap fAtlas; member in GameBench 284 fAtlas.allocN32Pixels(kTotAtlasWidth, kTotAtlasHeight); in makeAtlas() 290 SkPMColor* scanline = fAtlas.getAddr32(0, y); in makeAtlas()
|
/external/skia/src/gpu/tessellate/ |
D | GrGpuTessellationPathRenderer.cpp | 24 GrGpuTessellationPathRenderer::GrGpuTessellationPathRenderer(const GrCaps& caps) : fAtlas( in GrGpuTessellationPathRenderer() 67 renderTargetContext->numSamples(), sk_ref_sp(fAtlas.textureProxy()), in onDrawPath() 101 if (!fAtlas.addRect(*devIBounds, devToAtlasOffset)) { in tryAddPathToAtlas() 128 if (!fAtlas.drawBounds().isEmpty()) { in preFlush() 130 fAtlas.reset(kAtlasInitialSize, *onFlushRP->caps()); in preFlush() 156 auto rtc = fAtlas.instantiate(onFlushRP); in renderAtlas() 191 SkRect coverRect = SkRect::MakeIWH(fAtlas.drawBounds().width(), fAtlas.drawBounds().height()); in renderAtlas()
|
D | GrGpuTessellationPathRenderer.h | 41 GrDynamicAtlas fAtlas; variable
|
/external/skqp/src/gpu/ccpr/ |
D | GrCCClipPath.cpp | 30 GrTextureProxy* textureProxy = fAtlas ? fAtlas->textureProxy() : nullptr; in init() 70 fAtlas = resources->renderDeviceSpacePathInAtlas(fAccessRect, fDeviceSpacePath, fPathDevIBounds, in renderPathInAtlas()
|
/external/skia/src/gpu/ccpr/ |
D | GrCCClipPath.cpp | 27 GrTextureProxy* textureProxy = fAtlas ? fAtlas->textureProxy() : nullptr; in init() 75 fAtlas = resources->renderDeviceSpacePathInAtlas( in renderPathInAtlas()
|
D | GrCCClipPath.h | 72 const GrCCAtlas* fAtlas = nullptr; variable
|
/external/skia/tests/ |
D | LazyProxyTest.cpp | 130 , fAtlas(atlas) { in ClipFP() 140 fAtlas->instantiate(rp); in ClipFP() 141 return sk_ref_sp(fAtlas->peekTexture()); in ClipFP() 153 return std::make_unique<ClipFP>(fContext, fProxyProvider, fTest, fAtlas); in clone() 163 GrTextureProxy* const fAtlas; member in LazyProxyTest::ClipFP 173 , fAtlas(atlas) {} in Clip() 179 out->addCoverageFP(std::make_unique<ClipFP>(context, proxyProvider, fTest, fAtlas)); in apply() 192 GrTextureProxy* fAtlas; member in LazyProxyTest::Clip
|
/external/skqp/bench/ |
D | GameBench.cpp | 144 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/ |
D | LazyProxyTest.cpp | 128 , 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
|
D | GpuLayerCacheTest.cpp | 29 return cache->fAtlas->getTextureOrNull();
|
/external/skqp/include/private/ |
D | GrCCClipPath.h | 72 const GrCCAtlas* fAtlas = nullptr; variable
|