ruffle/render/webgl
Aaron Hill 1b3070ab85 core: Make `BitmapHandle` hold a trait object instead of an id
`BitmapHandle` now holds `Arc<dyn BitmapHandleImpl>`.
This allows us to move all of the per-bitmap backend data into
`BitmapHandle`, instead of holding an id to a backend-specific
hashmap.

This fixes the memory leak issue with bitmaps. Once the AVM side of a
bitmap (`Bitmap`/`BitmapData`) gets garbage-collected, the
`BitmapHandle` will get dropped, freeing all of the GPU resources
assoicated with the bitmap.
2022-12-03 19:44:44 -06:00
..
shaders webgl: Remove dead `u_num_colors` 2022-10-03 22:38:38 +03:00
src core: Make `BitmapHandle` hold a trait object instead of an id 2022-12-03 19:44:44 -06:00
Cargo.toml core: Make `BitmapHandle` hold a trait object instead of an id 2022-12-03 19:44:44 -06:00