![]() |
Flutter Engine
The Flutter Engine
|
#include <GrAtlasManager.h>
Friends | |
class | GrAtlasManagerTools |
Additional Inherited Members | |
![]() | |
static constexpr uint64_t | kInvalidGeneration = 0 |
The GrAtlasManager manages the lifetime of and access to GrDrawOpAtlases. It is only available at flush and only via the GrOpFlushState.
This implies that all of the advanced atlasManager functionality (i.e., adding glyphs to the atlas) are only available at flush time.
Definition at line 43 of file GrAtlasManager.h.
GrAtlasManager::GrAtlasManager | ( | GrProxyProvider * | proxyProvider, |
size_t | maxTextureBytes, | ||
GrDrawOpAtlas::AllowMultitexturing | allowMultitexturing, | ||
bool | supportBilerpAtlas | ||
) |
Definition at line 34 of file GrAtlasManager.cpp.
|
overridedefault |
GrDrawOpAtlas::ErrorCode GrAtlasManager::addGlyphToAtlas | ( | const SkGlyph & | skGlyph, |
sktext::gpu::Glyph * | glyph, | ||
int | srcPadding, | ||
GrResourceProvider * | resourceProvider, | ||
GrDeferredUploadTarget * | uploadTarget | ||
) |
Definition at line 165 of file GrAtlasManager.cpp.
void GrAtlasManager::addGlyphToBulkAndSetUseToken | ( | skgpu::BulkUsePlotUpdater * | updater, |
skgpu::MaskFormat | format, | ||
sktext::gpu::Glyph * | glyph, | ||
skgpu::AtlasToken | token | ||
) |
Definition at line 255 of file GrAtlasManager.cpp.
GrDrawOpAtlas::ErrorCode GrAtlasManager::addToAtlas | ( | GrResourceProvider * | resourceProvider, |
GrDeferredUploadTarget * | target, | ||
skgpu::MaskFormat | format, | ||
int | width, | ||
int | height, | ||
const void * | image, | ||
skgpu::AtlasLocator * | atlasLocator | ||
) |
Definition at line 246 of file GrAtlasManager.cpp.
|
inline |
Definition at line 97 of file GrAtlasManager.h.
void GrAtlasManager::freeAll | ( | ) |
Definition at line 46 of file GrAtlasManager.cpp.
|
inline |
Definition at line 55 of file GrAtlasManager.h.
bool GrAtlasManager::hasGlyph | ( | skgpu::MaskFormat | format, |
sktext::gpu::Glyph * | glyph | ||
) |
Definition at line 52 of file GrAtlasManager.cpp.
|
inlineoverridevirtual |
Called once flushing is complete. startTokenForNextFlush can be used to track resources used in the current flush.
Reimplemented from GrOnFlushCallbackObject.
Definition at line 118 of file GrAtlasManager.h.
|
inlineoverridevirtual |
Implements GrOnFlushCallbackObject.
Definition at line 103 of file GrAtlasManager.h.
|
inlineoverridevirtual |
Tells the callback owner to hold onto this object when freeing GPU resources.
Reimplemented from GrOnFlushCallbackObject.
Definition at line 128 of file GrAtlasManager.h.
|
inline |
Definition at line 83 of file GrAtlasManager.h.
|
friend |
Definition at line 131 of file GrAtlasManager.h.