Fixed textbox color not updating cache, and taking snapshot images for cache instead of storing surfaces

This commit is contained in:
Yousef Khadadeh 2025-07-31 15:30:22 +03:00
parent ed3d5f6d51
commit f72d8c21fa
7 changed files with 27 additions and 19 deletions

View file

@ -20,7 +20,7 @@ class DrawingProgramCacheBVHNode {
struct DrawCacheData {
uint64_t lastDrawnComponentPlacement;
uint64_t firstDrawnComponentPlacement;
sk_sp<SkSurface> surface;
sk_sp<SkImage> img;
std::chrono::steady_clock::time_point lastRenderTime;
DrawingProgramCache* attachedCache;
};