servo / pathfinder

A fast, practical GPU rasterizer for fonts and vector graphics
Apache License 2.0
3.6k stars 201 forks source link

Make `canvas_minimal` example rerender on refresh #404

Closed leroycep closed 4 years ago

leroycep commented 4 years ago

I'm not sure if this actually works, because the canvas_minimal example doesn't run on my computer.

pcwalton commented 4 years ago

This breaks on macOS because winit doesn't send an initial Refresh event there.

leroycep commented 4 years ago

Hmm, I can't find anything that looks like a "window shown" event. I think I'll move the rendering code again, and then use boolean to indicate that the screen needs to be redrawn.

pcwalton commented 4 years ago

@bors-servo: r+

bors-servo commented 4 years ago

:pushpin: Commit 263dc0a has been approved by pcwalton

bors-servo commented 4 years ago

:hourglass: Testing commit 263dc0ab15cbf2230622c7388fec57aee034dd6c with merge 953a1dab607546ea5fa04d5358f1fd17fd12ca9a...

bors-servo commented 4 years ago

:sunny: Test successful - checks-travis Approved by: pcwalton Pushing 953a1dab607546ea5fa04d5358f1fd17fd12ca9a to master...