Flutter Engine
The Flutter Engine
|
#include <SmallPathAtlasMgr.h>
Additional Inherited Members | |
Static Public Attributes inherited from skgpu::AtlasGenerationCounter | |
static constexpr uint64_t | kInvalidGeneration = 0 |
This class manages the small path renderer's atlas. It solely operates at flush time. Thus the small path renderer will generate ops at record time but the location of the ops' source data and even the number of proxies to be used will not be determined until the recorded DAGs/DDLs are (re)played.
TODO: investigate fusing this class and the GrAtlasManager.
Definition at line 33 of file SmallPathAtlasMgr.h.
skgpu::ganesh::SmallPathAtlasMgr::SmallPathAtlasMgr | ( | ) |
Definition at line 25 of file SmallPathAtlasMgr.cpp.
|
override |
Definition at line 27 of file SmallPathAtlasMgr.cpp.
GrDrawOpAtlas::ErrorCode skgpu::ganesh::SmallPathAtlasMgr::addToAtlas | ( | GrResourceProvider * | resourceProvider, |
GrDeferredUploadTarget * | target, | ||
int | width, | ||
int | height, | ||
const void * | image, | ||
skgpu::AtlasLocator * | locator | ||
) |
Definition at line 116 of file SmallPathAtlasMgr.cpp.
void skgpu::ganesh::SmallPathAtlasMgr::deleteCacheEntry | ( | SmallPathShapeData * | shapeData | ) |
Definition at line 77 of file SmallPathAtlasMgr.cpp.
SmallPathShapeData * skgpu::ganesh::SmallPathAtlasMgr::findOrCreate | ( | const GrStyledShape & | shape, |
const SkMatrix & | ctm | ||
) |
Definition at line 108 of file SmallPathAtlasMgr.cpp.
SmallPathShapeData * skgpu::ganesh::SmallPathAtlasMgr::findOrCreate | ( | const GrStyledShape & | shape, |
int | desiredDimension | ||
) |
Definition at line 100 of file SmallPathAtlasMgr.cpp.
|
inline |
Definition at line 78 of file SmallPathAtlasMgr.h.
bool skgpu::ganesh::SmallPathAtlasMgr::initAtlas | ( | GrProxyProvider * | proxyProvider, |
const GrCaps * | caps | ||
) |
Definition at line 50 of file SmallPathAtlasMgr.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 68 of file SmallPathAtlasMgr.h.
|
inlineoverridevirtual |
Implements GrOnFlushCallbackObject.
Definition at line 55 of file SmallPathAtlasMgr.h.
void skgpu::ganesh::SmallPathAtlasMgr::reset | ( | ) |
Definition at line 31 of file SmallPathAtlasMgr.cpp.
|
inlineoverridevirtual |
Tells the callback owner to hold onto this object when freeing GPU resources.
Reimplemented from GrOnFlushCallbackObject.
Definition at line 76 of file SmallPathAtlasMgr.h.
void skgpu::ganesh::SmallPathAtlasMgr::setUseToken | ( | SmallPathShapeData * | shapeData, |
skgpu::AtlasToken | token | ||
) |
Definition at line 123 of file SmallPathAtlasMgr.cpp.