Fixed objects being drawn ontop of cache images, causing transparency issues

This commit is contained in:
Yousef Khadadeh 2025-07-31 17:55:14 +03:00
parent f72d8c21fa
commit 75a614946c
2 changed files with 22 additions and 31 deletions

View file

@ -62,6 +62,8 @@ class DrawingProgramCache {
const std::chrono::steady_clock::time_point& get_last_bvh_build_time() const;
void clear_own_cached_surfaces();
private:
uint64_t draw_cache_image_to_canvas(SkCanvas* canvas, const DrawData& drawData, const std::shared_ptr<DrawingProgramCacheBVHNode>& bvhNode);
void force_rebuild_dont_include_objs(std::vector<CollabListType::ObjectInfoPtr> componentsToBuild, const std::unordered_set<CollabListType::ObjectInfoPtr>& objsToNotInclude);
void force_rebuild(const std::vector<CollabListType::ObjectInfoPtr>& componentsToBuild);