Flutter Engine
The Flutter Engine
|
#include <PathAtlas.h>
Public Member Functions | |
const TextureProxy * | findOrCreateEntry (Recorder *recorder, const Shape &shape, const Transform &transform, const SkStrokeRec &strokeRec, skvx::half2 maskSize, skvx::half2 *outPos) |
const TextureProxy * | addToAtlas (Recorder *recorder, const Shape &shape, const Transform &transform, const SkStrokeRec &strokeRec, skvx::half2 maskSize, skvx::half2 *outPos, AtlasLocator *locator) |
bool | recordUploads (DrawContext *, Recorder *) |
void | evict (PlotLocator) override |
void | postFlush (Recorder *) |
Public Member Functions inherited from skgpu::AtlasGenerationCounter | |
uint64_t | next () |
Public Member Functions inherited from skgpu::PlotEvictionCallback | |
virtual | ~PlotEvictionCallback ()=default |
virtual void | evict (PlotLocator)=0 |
Protected Member Functions | |
DrawAtlasMgr (size_t width, size_t height, size_t plotWidth, size_t plotHeight, DrawAtlas::UseStorageTextures useStorageTextures, std::string_view label, const Caps *) | |
virtual bool | onAddToAtlas (const Shape &, const Transform &transform, const SkStrokeRec &, SkIRect shapeBounds, const AtlasLocator &)=0 |
Protected Attributes | |
std::unique_ptr< DrawAtlas > | fDrawAtlas |
Additional Inherited Members | |
Static Public Attributes inherited from skgpu::AtlasGenerationCounter | |
static constexpr uint64_t | kInvalidGeneration = 0 |
Definition at line 122 of file PathAtlas.h.
|
protected |
Definition at line 76 of file PathAtlas.cpp.
const TextureProxy * skgpu::graphite::PathAtlas::DrawAtlasMgr::addToAtlas | ( | Recorder * | recorder, |
const Shape & | shape, | ||
const Transform & | transform, | ||
const SkStrokeRec & | strokeRec, | ||
skvx::half2 | maskSize, | ||
skvx::half2 * | outPos, | ||
AtlasLocator * | locator | ||
) |
Definition at line 142 of file PathAtlas.cpp.
|
overridevirtual |
Implements skgpu::PlotEvictionCallback.
Definition at line 188 of file PathAtlas.cpp.
const TextureProxy * skgpu::graphite::PathAtlas::DrawAtlasMgr::findOrCreateEntry | ( | Recorder * | recorder, |
const Shape & | shape, | ||
const Transform & | transform, | ||
const SkStrokeRec & | strokeRec, | ||
skvx::half2 | maskSize, | ||
skvx::half2 * | outPos | ||
) |
Definition at line 107 of file PathAtlas.cpp.
|
protectedpure virtual |
void skgpu::graphite::PathAtlas::DrawAtlasMgr::postFlush | ( | Recorder * | recorder | ) |
Definition at line 202 of file PathAtlas.cpp.
bool skgpu::graphite::PathAtlas::DrawAtlasMgr::recordUploads | ( | DrawContext * | dc, |
Recorder * | recorder | ||
) |
Definition at line 184 of file PathAtlas.cpp.
|
protected |
Definition at line 154 of file PathAtlas.h.