Started work on new cache system for layers

This commit is contained in:
Yousef Khadadeh 2025-12-26 19:52:36 +03:00
parent 783bb7dacb
commit c2abccefc2
14 changed files with 234 additions and 19 deletions

View file

@ -32,3 +32,9 @@ void DrawingProgramLayerManager::draw(SkCanvas* canvas, const DrawData& drawData
if(layerTreeRoot)
layerTreeRoot->draw(canvas, drawData);
}
std::vector<CanvasComponentContainer::ObjInfoSharedPtr> DrawingProgramLayerManager::get_flattened_component_list() const {
std::vector<CanvasComponentContainer::ObjInfoSharedPtr> toRet;
layerTreeRoot->get_flattened_component_list(toRet);
return toRet;
}