8#ifndef SmallPathAtlasMgr_DEFINED
9#define SmallPathAtlasMgr_DEFINED
11#if !defined(SK_ENABLE_OPTIMIZE_SIZE)
22class SmallPathShapeData;
23class SmallPathShapeDataKey;
56#if defined(GR_TEST_UTILS)
57 if (onFlushRP->failFlushTimeCallbacks()) {
63 fAtlas->instantiate(onFlushRP);
70 fAtlas->compact(startTokenForNextFlush);
79 *numActiveProxies = fAtlas->numActivePages();
80 return fAtlas->getViews();
93 std::unique_ptr<GrDrawOpAtlas> fAtlas;
94 ShapeCache fShapeCache;
95 ShapeDataList fShapeList;
void deleteCacheEntry(SmallPathShapeData *)
bool initAtlas(GrProxyProvider *, const GrCaps *)
void postFlush(skgpu::AtlasToken startTokenForNextFlush) override
~SmallPathAtlasMgr() override
bool preFlush(GrOnFlushResourceProvider *onFlushRP) override
GrDrawOpAtlas::ErrorCode addToAtlas(GrResourceProvider *, GrDeferredUploadTarget *, int width, int height, const void *image, skgpu::AtlasLocator *)
void setUseToken(SmallPathShapeData *, skgpu::AtlasToken)
bool retainOnFreeGpuResources() override
SmallPathShapeData * findOrCreate(const GrStyledShape &, int desiredDimension)
const GrSurfaceProxyView * getViews(int *numActiveProxies)
sk_sp< const SkImage > image