Align UI storage event runtime contracts

This commit is contained in:
liu weikai
2026-06-15 01:50:49 +08:00
parent f055d36fd5
commit b2d19334af
11 changed files with 2291 additions and 61 deletions
@@ -60,6 +60,15 @@ std::size_t MapTileAsyncRuntime::requestVisibleTiles(const MapViewportPlan& plan
return queued;
}
std::size_t MapTileAsyncRuntime::cancelGeneration(uint32_t generation)
{
if (active_generation_ == generation)
{
active_generation_ = 0;
}
return commands_.cancelGeneration(generation);
}
bool MapTileAsyncRuntime::handleEvent(const MapTileAsyncEvent& event, MapTileRenderQueue& render_queue)
{
if (event.generation != active_generation_)