Skip to content

Commit f0d29c0

Browse files
xaionaro@dx.centerxaionaro@dx.center
authored andcommitted
fix: add overlay constructor_overrides and remove stale pdf.yaml
Add ConstructorOverride support to the javagen Overlay struct so per-class constructor params can be customized without editing generated spec files. Use it for android.graphics.Canvas: specgen picks the no-arg Canvas() constructor, but the useful one is Canvas(Bitmap). The new graphics_pdf overlay sets the correct constructor_params. Also remove stale spec/java/pdf.yaml which was a subset of graphics_pdf.yaml left over from before file-name disambiguation. Remove manual NewCanvas/NewPaint from graphics_extra.go since javagen now generates them from the spec.
1 parent a4e8f95 commit f0d29c0

37 files changed

Lines changed: 4953 additions & 4279 deletions

graphics/pdf/bitmap_compress_format.go

Lines changed: 94 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

graphics/pdf/canvas.go

Lines changed: 23 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

graphics/pdf/canvas_edge_type.go

Lines changed: 94 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

graphics/pdf/canvas_vertex_mode.go

Lines changed: 94 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)