servo / pathfinder

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

Fix Metal memory management and the `canvas_metal_minimal`, `canvas_nanovg`, and `macos_app` examples. #378

Closed pcwalton closed 4 years ago

pcwalton commented 4 years ago

winit does not create an autorelease pool, so the Metal backend had not taken the presence of one into account. Now the Metal backend creates and flushes autorelease pools as necessary.

Closes #334. Closes #376.

pcwalton commented 4 years ago

@bors-servo: r+

bors-servo commented 4 years ago

:pushpin: Commit 42289ee has been approved by pcwalton

bors-servo commented 4 years ago

:hourglass: Testing commit 42289eec6ea9e8a50cb76babf4027ed4d318c48c with merge c6e7ed0bfc7bd3e72a3e401360f4b32129c298a0...

bors-servo commented 4 years ago

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