Closed
Bug 1355615
Opened 8 years ago
Closed 8 years ago
Make wr_api_finalize_builder take pointers instead of references
Categories
(Core :: Graphics: WebRender, enhancement, P3)
Tracking
()
RESOLVED
FIXED
mozilla55
| Tracking | Status | |
|---|---|---|
| firefox55 | --- | fixed |
People
(Reporter: kats, Assigned: kats)
References
Details
(Whiteboard: [gfx-noted])
Attachments
(1 file)
The Rust side of wr_api_finalize_builder takes &mut args [1], but the C++ side [2] passes in a pointer for one argument and references for the rest. Not friendly to binding generator, so let's convert them all to pointers. I'm actually not sure if it's FFI-safe to be taking &mut at all on the rust side, but it seems to be working ok so far so we can leave it be. If we want to change it later it will be easier once the binding generator is plugged in.
[1] http://searchfox.org/mozilla-central/rev/2fc8c8d483d9ec9fd0ec319c6c53807f7fa8e8a2/gfx/webrender_bindings/src/bindings.rs#1326-1330
[2] http://searchfox.org/mozilla-central/rev/624d25b2980cf5f83452b040e6d664460f9b7ec5/gfx/webrender_bindings/webrender_ffi.h#713-717
| Assignee | ||
Comment 1•8 years ago
|
||
| Comment hidden (mozreview-request) |
Comment 3•8 years ago
|
||
| mozreview-review | ||
Comment on attachment 8857205 [details]
Bug 1355615 - Update wr_api_finalize_builder to take pointers on the C++ side to match the Rust side.
https://reviewboard.mozilla.org/r/129138/#review131636
Attachment #8857205 -
Flags: review?(jmuizelaar) → review+
Pushed by kgupta@mozilla.com:
https://hg.mozilla.org/projects/graphics/rev/2e8731eba019
Update wr_api_finalize_builder to take pointers on the C++ side to match the Rust side. r=jrmuizel
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
| Assignee | ||
Comment 5•8 years ago
|
||
| bugherder | ||
| Assignee | ||
Updated•8 years ago
|
status-firefox55:
--- → fixed
Target Milestone: --- → mozilla55
You need to log in
before you can comment on or make changes to this bug.
Description
•