refactor(ui): burn down map storage hot-path bypasses

This commit is contained in:
liu weikai
2026-06-16 23:00:32 +08:00
parent 2ebe9d21bd
commit 37b26b90a3
8 changed files with 364 additions and 183 deletions
@@ -44,6 +44,15 @@ struct LoadTileCommand
using MapTileEventKind = MapTileAsyncEventKind;
struct MapTileDecodedImage
{
void* native_handle = nullptr;
void (*release)(void*) = nullptr;
uint16_t width = 0;
uint16_t height = 0;
std::size_t data_size = 0;
};
class MapTileEvent
{
public:
@@ -53,6 +62,7 @@ class MapTileEvent
MapTileRef tile{};
MapTileFormat format = MapTileFormat::Unknown;
MapTilePayload payload{};
MapTileDecodedImage decoded{};
std::size_t payload_size = 0;
int32_t error = 0;
};