szeged / webrender

A GPU-based renderer for the web
https://doc.servo.org/webrender/
Mozilla Public License 2.0
45 stars 7 forks source link

Split gfx.rs into submodules #270

Closed zakorgy closed 5 years ago

zakorgy commented 5 years ago

Our gfx.rs file has grown quite large (around 4900 LOC) and started to get hard to grasp. Because of this, I thought splitting it in submodules would be a good idea. I think the module names are speaking for themselves, so I don't bother with the explanation of which struct goes where. In the process I found that we still use Vecs in places where we could just have an iterator`Option` and fixed them.