![]() |
Flutter Engine
The Flutter Engine
|
#include <AtlasProvider.h>
Public Types | |
enum class | PathAtlasFlags : unsigned { kNone = 0b000 , kCompute = 0b001 , kRaster = 0b010 } |
using | PathAtlasFlagsBitMask = SkEnumBitMask< PathAtlasFlags > |
Public Member Functions | |
AtlasProvider (Recorder *) | |
~AtlasProvider ()=default | |
TextAtlasManager * | textAtlasManager () const |
bool | isAvailable (PathAtlasFlags atlasType) const |
std::unique_ptr< ComputePathAtlas > | createComputePathAtlas (Recorder *recorder) const |
RasterPathAtlas * | getRasterPathAtlas () const |
sk_sp< TextureProxy > | getAtlasTexture (Recorder *, uint16_t width, uint16_t height, SkColorType, uint16_t identifier, bool requireStorageUsage) |
void | clearTexturePool () |
void | recordUploads (DrawContext *) |
void | postFlush () |
Static Public Member Functions | |
static PathAtlasFlagsBitMask | QueryPathAtlasSupport (const Caps *) |
AtlasProvider groups various texture atlas management algorithms together.
Definition at line 33 of file AtlasProvider.h.
Definition at line 43 of file AtlasProvider.h.
|
strong |
Enumerator | |
---|---|
kNone | |
kCompute | |
kRaster |
Definition at line 35 of file AtlasProvider.h.
|
explicit |
Definition at line 31 of file AtlasProvider.cpp.
|
default |
void skgpu::graphite::AtlasProvider::clearTexturePool | ( | ) |
Definition at line 86 of file AtlasProvider.cpp.
std::unique_ptr< ComputePathAtlas > skgpu::graphite::AtlasProvider::createComputePathAtlas | ( | Recorder * | recorder | ) | const |
Definition at line 36 of file AtlasProvider.cpp.
sk_sp< TextureProxy > skgpu::graphite::AtlasProvider::getAtlasTexture | ( | Recorder * | recorder, |
uint16_t | width, | ||
uint16_t | height, | ||
SkColorType | colorType, | ||
uint16_t | identifier, | ||
bool | requireStorageUsage | ||
) |
Definition at line 47 of file AtlasProvider.cpp.
RasterPathAtlas * skgpu::graphite::AtlasProvider::getRasterPathAtlas | ( | ) | const |
Definition at line 43 of file AtlasProvider.cpp.
|
inline |
Definition at line 57 of file AtlasProvider.h.
void skgpu::graphite::AtlasProvider::postFlush | ( | ) |
Definition at line 100 of file AtlasProvider.cpp.
|
static |
Definition at line 22 of file AtlasProvider.cpp.
void skgpu::graphite::AtlasProvider::recordUploads | ( | DrawContext * | dc | ) |
Definition at line 90 of file AtlasProvider.cpp.
|
inline |
Definition at line 53 of file AtlasProvider.h.