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

Move GPU cache updates to the RenderBackend #307

Closed zakorgy closed 4 years ago

zakorgy commented 4 years ago

The current solution:

~The last missing thing is transitioning the PMBuffers to their proper state. For this we either record the transition in the RenderBackend and send it to the Renderer thread or send additional info from the state of the PMBuffer and use it for the transitions in the Renderer.~


This change is Reviewable

kvark commented 4 years ago

Thank you, this is amazing work! It's unfortunate that both the device and the PMBuffer need to be shared between threads now. I hope it's only temporary, as at the end of the day we should be handling everything on the render backend side.