render: clean up cache and image internals

This commit is contained in:
nmzik
2026-09-06 03:55:13 +04:00
parent 4c769dfbf9
commit 13ad9f510d
9 changed files with 97 additions and 148 deletions
+3 -3
View File
@@ -21,16 +21,16 @@ void Check(bool value, const char* text) {
}
void TestMultiOwnerAndExactErase() {
Table table;
OwnerTable table;
auto& owners = table.GetOrCreate(17);
owners.push_back(11);
owners.push_back(22);
Check(table.Find(17) != nullptr && table.Find(17)->size() == 2,
"both page owners are retained");
Check(Libs::Graphics::EraseExact(owners, 11U), "registered owner is erased");
Check(owners.Erase(11U), "registered owner is erased");
Check(owners.size() == 1 && owners.front() == 22, "erasing one owner preserves its neighbor");
Check(!Libs::Graphics::EraseExact(owners, 33U), "missing owner is reported without mutation");
Check(!owners.Erase(33U), "missing owner is reported without mutation");
}
void TestCrossBucketRange() {