8#ifndef GrDynamicAtlas_DEFINED
9#define GrDynamicAtlas_DEFINED
82 Node* makeNode(
Node* previous,
int l,
int t,
int r,
int b);
87 const int fMaxAtlasSize;
94 Node* fTopNode =
nullptr;
@ kTopLeft_GrSurfaceOrigin
@ kYes
Do pre-clip the geometry before applying the (perspective) matrix.
@ kNo
Don't pre-clip the geometry before applying the (perspective) matrix.
virtual ~GrDynamicAtlas()
GrColorType colorType() const
GrSurfaceProxyView writeView(const GrCaps &) const
GrTextureProxy * textureProxy() const
const SkISize & drawBounds()
static constexpr GrSurfaceOrigin kTextureOrigin
static constexpr int kPadding
bool instantiate(GrOnFlushResourceProvider *, sk_sp< GrTexture > backingTexture=nullptr)
GrSurfaceProxy::LazyInstantiateCallback LazyInstantiateAtlasCallback
GrDynamicAtlas(GrColorType colorType, InternalMultisample, SkISize initialSize, int maxAtlasSize, const GrCaps &, RectanizerAlgorithm=RectanizerAlgorithm::kSkyline)
static sk_sp< GrTextureProxy > MakeLazyAtlasProxy(LazyInstantiateAtlasCallback &&, GrColorType colorType, InternalMultisample, const GrCaps &, GrSurfaceProxy::UseAllocator)
bool addRect(int width, int height, SkIPoint16 *location)
bool isInstantiated() const
GrSurfaceProxyView readView(const GrCaps &) const
void reset(SkISize initialSize, const GrCaps &desc)
std::function< LazyCallbackResult(GrResourceProvider *, const LazySurfaceDesc &)> LazyInstantiateCallback
bool isInstantiated() const