/third_party/flutter/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()
|
/third_party/skia/samplecode/ |
D | SampleShip.cpp | 52 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 …]
|
D | SampleAtlas.cpp | 137 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()
|
/third_party/skia/src/gpu/ops/ |
D | SmallPathAtlasMgr.h | 55 if (fAtlas) { in preFlush() 56 fAtlas->instantiate(onFlushRP); in preFlush() 62 if (fAtlas) { in postFlush() 63 fAtlas->compact(startTokenForNextFlush); in postFlush() 72 *numActiveProxies = fAtlas->numActivePages(); in getViews() 73 return fAtlas->getViews(); in getViews() 86 std::unique_ptr<GrDrawOpAtlas> fAtlas; variable
|
D | SmallPathAtlasMgr.cpp | 42 fAtlas = nullptr; in reset() 46 if (fAtlas) { in initAtlas() 59 fAtlas = GrDrawOpAtlas::Make(proxyProvider, format, in initAtlas() 64 return SkToBool(fAtlas); in initAtlas() 83 } else if (!fAtlas->hasID(shapeData->fAtlasLocator.plotLocator())) { in findOrCreate() 110 return fAtlas->addToAtlas(resourceProvider, target, width, height, image, locator); in addToAtlas() 115 fAtlas->setLastUseToken(shapeData->fAtlasLocator, token); in setUseToken()
|
/third_party/flutter/skia/bench/ |
D | VertBench.cpp | 116 sk_sp<SkImage> fAtlas; member in AtlasBench 136 fAtlas = GetResourceAsImage("images/mandrill_256.png"); in onDelayedSetup() 137 if (fAtlas) { in onDelayedSetup() 138 fAtlas = fAtlas->makeRasterImage(); in onDelayedSetup() 141 const SkScalar imageW = fAtlas->width(); in onDelayedSetup() 142 const SkScalar imageH = fAtlas->height(); in onDelayedSetup() 166 canvas->drawAtlas(fAtlas, fXforms, fRects, colors, N, SkBlendMode::kModulate, in onDraw()
|
D | GameBench.cpp | 144 p2.setShader(fAtlas.makeShader()); in onDraw() 207 canvas->drawBitmapRect(fAtlas, src, dst, &p, in onDraw() 244 SkBitmap fAtlas; member in GameBench 283 fAtlas.allocN32Pixels(kTotAtlasWidth, kTotAtlasHeight); in makeAtlas() 289 SkPMColor* scanline = fAtlas.getAddr32(0, y); in makeAtlas()
|
/third_party/flutter/skia/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, false); in postFlush() 77 std::unique_ptr<GrDrawOpAtlas> fAtlas; variable
|
D | GrSmallPathRenderer.cpp | 163 GrSmallPathRenderer::GrSmallPathRenderer() : fAtlas(nullptr) {} in GrSmallPathRenderer() 270 fAtlas = atlas; in SmallPathOp() 281 const sk_sp<GrTextureProxy>* proxies = fAtlas->getProxies(); in visitProxies() 282 for (uint32_t i = 0; i < fAtlas->numActivePages(); ++i) { in visitProxies() 328 int numActiveProxies = fAtlas->numActivePages(); in onPrepareDraws() 329 const auto proxies = fAtlas->getProxies(); in onPrepareDraws() 356 *target->caps().shaderCaps(), *matrix, fWideColor, fAtlas->getProxies(), in onPrepareDraws() 357 fAtlas->numActivePages(), GrSamplerState::ClampBilerp(), flags); in onPrepareDraws() 367 *target->caps().shaderCaps(), this->color(), fWideColor, fAtlas->getProxies(), in onPrepareDraws() 368 fAtlas->numActivePages(), GrSamplerState::ClampNearest(), kA8_GrMaskFormat, in onPrepareDraws() [all …]
|
/third_party/skia/bench/ |
D | VertBench.cpp | 172 sk_sp<SkImage> fAtlas; member in AtlasBench 195 fAtlas = GetResourceAsImage("images/mandrill_256.png"); in onDelayedSetup() 196 if (fAtlas) { in onDelayedSetup() 197 fAtlas = fAtlas->makeRasterImage(); in onDelayedSetup() 200 const SkScalar imageW = fAtlas->width(); in onDelayedSetup() 201 const SkScalar imageH = fAtlas->height(); in onDelayedSetup() 228 canvas->drawAtlas(fAtlas.get(), fXforms, fRects, colors, N, SkBlendMode::kModulate, in onDraw()
|
D | GameBench.cpp | 144 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()
|
/third_party/skia/tests/ |
D | LazyProxyTest.cpp | 141 , fAtlas(atlas) { in ClipFP() 152 fAtlas->instantiate(rp); in ClipFP() 153 return sk_ref_sp(fAtlas->peekTexture()); in ClipFP() 165 return std::make_unique<ClipFP>(fContext, fProxyProvider, fTest, fAtlas); in clone() 176 GrTextureProxy* const fAtlas; member in LazyProxyTest::ClipFP 185 , fAtlas(atlas) {} in Clip() 189 return SkIRect::MakeSize(fAtlas->dimensions()); in getConservativeBounds() 198 out->addCoverageFP(std::make_unique<ClipFP>(rContext, proxyProvider, fTest, fAtlas)); in apply() 203 GrTextureProxy* fAtlas; member in LazyProxyTest::Clip
|
/third_party/flutter/skia/src/gpu/ccpr/ |
D | GrCCClipPath.cpp | 27 GrTextureProxy* textureProxy = fAtlas ? fAtlas->textureProxy() : nullptr; in init() 71 fAtlas = resources->renderDeviceSpacePathInAtlas( in renderPathInAtlas()
|
D | GrCCClipPath.h | 72 const GrCCAtlas* fAtlas = nullptr; variable
|
/third_party/flutter/skia/tests/ |
D | LazyProxyTest.cpp | 133 , fAtlas(atlas) { in ClipFP() 141 fAtlas->instantiate(rp); in ClipFP() 142 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
|
/third_party/skia/gm/ |
D | imagefiltersbase.cpp | 219 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
|