registerImage method
Registers or updates data in this registry under its 32-bit imageId.
If an entry with identical dimensions, version, format, and Uint8List pixel reference is already registered, the existing KittyImageData instance is retained so downstream GPU texture caches stay warm.
Implementation
void registerImage(KittyImageData data) {
final key = data.imageId & 0xFFFFFFFF;
final existing = _images[key];
if (existing != null && existing.isSameContentAs(data)) {
return;
}
_images[key] = data;
_revision++;
}