ruffle/render
Aaron Hill bdadb17a95 render: Don't use BitmapHandle in tessellator
Currently, we rely on ShapeTessellator being able to get a BitmapHandle
without a RenderBackend. With the upcoming BitmapData refactor,
we will always need a RenderBackend to get a BitmapHandle, which creates
borrow-checker issues in ShapeTessellator (which is stored in a
RenderBackend).

To solve this, we split BitmapSource.bitmap into two methods -
BitmapSource.bitmap and BitmapSource.bitmap_handle. ShapeTessellator
continues to use BitmapSource.bitmap, and uses the u16 bitmap id
instead of a BitmapHandle. The BitmapSource.bitmap_handle method
is used inside each render backend to convert the id to a BitmapHandle,
avoiding borrow-checker issues.
2022-11-21 21:04:40 -07:00
..
canvas render: Don't use BitmapHandle in tessellator 2022-11-21 21:04:40 -07:00
naga-agal build(deps): bump insta from 1.21.0 to 1.21.1 2022-11-21 15:21:32 -07:00
src render: Don't use BitmapHandle in tessellator 2022-11-21 21:04:40 -07:00
webgl render: Don't use BitmapHandle in tessellator 2022-11-21 21:04:40 -07:00
wgpu render: Don't use BitmapHandle in tessellator 2022-11-21 21:04:40 -07:00
Cargo.toml build(deps): bump gif from 0.11.4 to 0.12.0 2022-11-21 16:12:02 -07:00