Closed Bug 1362925 Opened 7 years ago Closed 7 years ago

Update webrender_bindings for cbindgen:0.1.7

Categories

(Core :: Graphics: WebRender, enhancement)

enhancement
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla55
Tracking Status
firefox55 --- fixed

People

(Reporter: rhunt, Assigned: rhunt)

Details

(Whiteboard: [gfx-noted])

Attachments

(1 file)

I'd like to push a new update to cbindgen soon that has some breakingish changes.

So this commit,
1. Adds a cbindgen.toml that stores all the config properties for cbindgen
2. Updates the instructions (no more '-c wr' because of cbindgen.toml, and now '-o' is required for the output file).
3. Renames a few cbindgen annotations
4. Adds an annotation to WrTransformProperty to prevent it from generating operator==, as it depends on an operator== of WrMatrix that is no longer generated cbindgen no longer incorrectly generates operator== for array fields. This is kind of a hack.
5. Fixes webrender_ffi.h to not extern "C" the generated part because it does it for itself now.

This latest version adds some new formatting code that should make things nicer, and the ability to rename function arguments, struct fields and enum values.

It'd be nice to turn on renaming for struct fields so they conform better to Gecko style but that looks like it will be a lot of bustage.

https://treeherder.mozilla.org/#/jobs?repo=try&author=rhunt@eqrion.net&selectedJob=97226990
Comment on attachment 8865322 [details]
Bug 1362925 - Update webrender_bindings for cbindgen:0.1.7

https://reviewboard.mozilla.org/r/136960/#review140058
Attachment #8865322 - Flags: review?(bugmail) → review+
Please make sure cbindgen-0.1.7 is pushed to crates.io before landing this change.
Pushed by rhunt@eqrion.net:
https://hg.mozilla.org/projects/graphics/rev/0d025f2bfaaf
Update webrender_bindings for cbindgen:0.1.7 r=kats
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: