dependabot-preview[bot]
c353d1f079
build(deps): bump image from 0.23.6 to 0.23.7
...
Bumps [image](https://github.com/image-rs/image ) from 0.23.6 to 0.23.7.
- [Release notes](https://github.com/image-rs/image/releases )
- [Changelog](https://github.com/image-rs/image/blob/master/CHANGES.md )
- [Commits](https://github.com/image-rs/image/compare/v0.23.6...v0.23.7 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-07-12 15:12:48 -07:00
dependabot-preview[bot]
31e816bf52
build(deps): bump lyon from 0.15.8 to 0.15.9
...
Bumps [lyon](https://github.com/nical/lyon ) from 0.15.8 to 0.15.9.
- [Release notes](https://github.com/nical/lyon/releases )
- [Changelog](https://github.com/nical/lyon/blob/master/CHANGELOG.md )
- [Commits](https://github.com/nical/lyon/commits )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-07-05 13:51:54 -07:00
dependabot-preview[bot]
328246dc10
build(deps): bump jpeg-decoder from 0.1.19 to 0.1.20
...
Bumps [jpeg-decoder](https://github.com/image-rs/jpeg-decoder ) from 0.1.19 to 0.1.20.
- [Release notes](https://github.com/image-rs/jpeg-decoder/releases )
- [Changelog](https://github.com/image-rs/jpeg-decoder/blob/master/CHANGELOG.md )
- [Commits](https://github.com/image-rs/jpeg-decoder/compare/v0.1.19...v0.1.20 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-07-04 15:29:45 -07:00
Mike Welsh
03883a6be0
chore: Bump wasm-bindgen, js-sys, web-sys
2020-06-30 17:19:42 -07:00
dependabot-preview[bot]
82a86d6139
build(deps): bump png from 0.16.5 to 0.16.6
...
Bumps [png](https://github.com/image-rs/image-png ) from 0.16.5 to 0.16.6.
- [Release notes](https://github.com/image-rs/image-png/releases )
- [Changelog](https://github.com/image-rs/image-png/blob/master/CHANGES.md )
- [Commits](https://github.com/image-rs/image-png/commits )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-06-27 16:08:11 -07:00
Mike Welsh
81d75c6256
text: Text formatting for EditText fields (merge #615 )
...
First implementation of HTML parsing and formatting for text fields.
2020-06-24 23:06:11 -07:00
dependabot-preview[bot]
045f6b3c64
build(deps): bump base64 from 0.12.2 to 0.12.3
...
Bumps [base64](https://github.com/marshallpierce/rust-base64 ) from 0.12.2 to 0.12.3.
- [Release notes](https://github.com/marshallpierce/rust-base64/releases )
- [Changelog](https://github.com/marshallpierce/rust-base64/blob/master/RELEASE-NOTES.md )
- [Commits](https://github.com/marshallpierce/rust-base64/compare/v0.12.2...v0.12.3 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-06-25 02:56:15 +00:00
Mike Welsh
7d1b3f86f5
render: Filter out consecutive MoveTo drawing commands
...
lyon would emit a small line segment if a stroke path had
consective MoveTo commands. For the lyon backends, filter out
consecutive MoveTos and only emit the final MoveTo command.
This fixes a small dot appearing in text fields using underlines.
2020-06-24 14:09:10 -07:00
dependabot-preview[bot]
abeece7e78
build(deps): bump image from 0.23.5 to 0.23.6
...
Bumps [image](https://github.com/image-rs/image ) from 0.23.5 to 0.23.6.
- [Release notes](https://github.com/image-rs/image/releases )
- [Changelog](https://github.com/image-rs/image/blob/master/CHANGES.md )
- [Commits](https://github.com/image-rs/image/compare/v0.23.5...v0.23.6 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-06-20 13:29:30 -07:00
dependabot-preview[bot]
a472005f1b
build(deps): bump base64 from 0.12.1 to 0.12.2
...
Bumps [base64](https://github.com/marshallpierce/rust-base64 ) from 0.12.1 to 0.12.2.
- [Release notes](https://github.com/marshallpierce/rust-base64/releases )
- [Changelog](https://github.com/marshallpierce/rust-base64/blob/master/RELEASE-NOTES.md )
- [Commits](https://github.com/marshallpierce/rust-base64/compare/v0.12.1...v0.12.2 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-06-15 16:54:03 -07:00
dependabot-preview[bot]
fcea6012bb
build(deps): bump png from 0.16.4 to 0.16.5
...
Bumps [png](https://github.com/image-rs/image-png ) from 0.16.4 to 0.16.5.
- [Release notes](https://github.com/image-rs/image-png/releases )
- [Changelog](https://github.com/image-rs/image-png/blob/master/CHANGES.md )
- [Commits](https://github.com/image-rs/image-png/compare/v0.16.4...v0.16.5 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-06-13 18:52:24 -07:00
dependabot-preview[bot]
7793b1a188
build(deps): bump image from 0.23.4 to 0.23.5
...
Bumps [image](https://github.com/image-rs/image ) from 0.23.4 to 0.23.5.
- [Release notes](https://github.com/image-rs/image/releases )
- [Changelog](https://github.com/image-rs/image/blob/master/CHANGES.md )
- [Commits](https://github.com/image-rs/image/compare/v0.23.4...v0.23.5 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-06-10 17:04:52 -07:00
dependabot-preview[bot]
cf4df4058f
build(deps): bump png from 0.16.3 to 0.16.4
...
Bumps [png](https://github.com/image-rs/image-png ) from 0.16.3 to 0.16.4.
- [Release notes](https://github.com/image-rs/image-png/releases )
- [Changelog](https://github.com/image-rs/image-png/blob/master/CHANGES.md )
- [Commits](https://github.com/image-rs/image-png/compare/v0.16.3...v0.16.4 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-06-01 12:23:21 -07:00
dependabot-preview[bot]
fea9257205
build(deps): bump web-sys from 0.3.39 to 0.3.40
...
Bumps [web-sys](https://github.com/rustwasm/wasm-bindgen ) from 0.3.39 to 0.3.40.
- [Release notes](https://github.com/rustwasm/wasm-bindgen/releases )
- [Changelog](https://github.com/rustwasm/wasm-bindgen/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rustwasm/wasm-bindgen/commits )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-05-28 09:40:58 -07:00
Nathan Adams
df6764a69c
chore: Add license metadata to all packages & crates
2020-05-27 00:11:02 -07:00
Mike Welsh
92c764cfab
canvas: Implement gradient spread modes
2020-05-22 11:03:16 -07:00
Mike Welsh
b8b53817c8
canvas: Implement linear RGB gradients
2020-05-22 11:03:16 -07:00
Mike Welsh
103c7a98f0
wgpu: Implement linear RGB gradients
2020-05-22 11:03:16 -07:00
Mike Welsh
09ca11f788
webgl: Implement linear RGB gradients
2020-05-22 11:03:16 -07:00
Nathan Adams
eda862c719
swf: Merged core::Matrix into swf::Matrix
2020-05-20 14:54:41 +02:00
Nathan Adams
7ab6703fc9
render: Add RenderBackend::replace_shape method
2020-05-20 14:54:40 +02:00
Nathan Adams
f7b5f14f65
core: Make RenderBack::register_bitmap* methods return a Result ( fixes #531 )
2020-05-19 07:12:36 -07:00
Mike Welsh
3b550a111f
wgpu: Hook up gradient spread mode and focal point
2020-05-15 00:13:36 -07:00
Nathan Adams
4cbae59947
render: Give a useful error message if running without a compatible graphics device ( #588 )
2020-05-14 21:38:12 -07:00
Nathan Adams
0047546074
render: Ensure that the wgpu device is compatible with the window we're
...
going to render to
2020-05-14 21:38:12 -07:00
dependabot-preview[bot]
1f0e695465
build(deps): bump fnv from 1.0.6 to 1.0.7
...
Bumps [fnv](https://github.com/servo/rust-fnv ) from 1.0.6 to 1.0.7.
- [Release notes](https://github.com/servo/rust-fnv/releases )
- [Commits](https://github.com/servo/rust-fnv/compare/v1.0.6...v1.0.7 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-05-14 19:05:48 +00:00
Nathan Adams
4f5e9cca1f
render: Fix wgpu captures being the wrong image format
2020-05-14 01:19:23 -07:00
Mike Welsh
5d84d33710
render: Handle PNG data in DefineBitsJPEG tags ( fix #530 )
2020-05-13 00:15:09 -07:00
Nathan Adams
fe4676a185
renderer: Don't crash when encountering unknown bitmap_fills
2020-05-11 01:09:07 -07:00
Nathan Adams
1bde973615
render: Use Rc<> for wgpu device and queue, so we can reuse them
2020-05-11 01:09:07 -07:00
Nathan Adams
9ab03b4da6
exporter: Added exporter tool for capturing images of swfs (related to #523 )
2020-05-11 01:09:07 -07:00
Nathan Adams
2343074c56
core: Make RenderBackend downcastable
2020-05-11 01:09:07 -07:00
Nathan Adams
a4905536b9
render: Add texture target for wgpu render backend
2020-05-11 01:09:07 -07:00
Nathan Adams
84b274618e
render: Made wgpu renderer agnostic to if it's going to a window, prep for output-to-buffer
2020-05-11 01:09:07 -07:00
Nathan Adams
1aa3e423d7
render: Changed gradient uniform in wgpu shader to a SSBO instead of UBO, saving 192 bytes on each buffer
2020-05-10 23:48:11 -07:00
Nathan Adams
89202cd8db
render: Prefer dedicated GPU over integrated GPU
2020-05-10 23:48:11 -07:00
Nathan Adams
dcf845b26c
render: Don't submit a command buffer for every image upload to wgpu
2020-05-10 23:48:11 -07:00
Nathan Adams
c787e28fcd
render: Introduce a DistilledShape and use that instead of swf::Shape for the rendering API
2020-05-10 22:03:56 -07:00
Nathan Adams
601715aa19
render: Merge begin_frame and clear as they're always called together
2020-05-10 22:03:56 -07:00
dependabot-preview[bot]
96d433eadb
build(deps): bump base64 from 0.12.0 to 0.12.1
...
Bumps [base64](https://github.com/marshallpierce/rust-base64 ) from 0.12.0 to 0.12.1.
- [Release notes](https://github.com/marshallpierce/rust-base64/releases )
- [Changelog](https://github.com/marshallpierce/rust-base64/blob/master/RELEASE-NOTES.md )
- [Commits](https://github.com/marshallpierce/rust-base64/commits )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-05-11 03:11:58 +00:00
Nathan Adams
bac99368be
chore: Fix new clippy lints about cloning
2020-05-10 03:29:25 -07:00
dependabot-preview[bot]
4abab576a1
build(deps): bump futures from 0.3.4 to 0.3.5
...
Bumps [futures](https://github.com/rust-lang/futures-rs ) from 0.3.4 to 0.3.5.
- [Release notes](https://github.com/rust-lang/futures-rs/releases )
- [Changelog](https://github.com/rust-lang/futures-rs/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rust-lang/futures-rs/compare/0.3.4...0.3.5 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-05-10 10:28:44 +00:00
Nathan Adams
47a44a5fe8
desktop: Prime window with known width/height of the movie
2020-05-04 16:07:38 -07:00
Mike Welsh
cde7798ded
webgl: Default MSAA to 4x, 2x on mobile/tablets
...
Also ensure we clamp MSAA at maximum available, in case the sample
count is not supported by the device.
2020-05-02 10:41:09 -07:00
Mike Welsh
6221065391
webgl: Store vertex attribute location per program
2020-05-02 10:39:40 -07:00
Mike Welsh
caf421144a
webgl: Don't change wrapping mode in WebGL1
2020-05-02 10:39:40 -07:00
Mike Welsh
e58cca3287
webgl: Add WebGL2 MSAA support
2020-05-02 10:39:38 -07:00
Mike Welsh
23a42d4d8c
webgl: Fix gradients
...
Tweak common_tess to return a more generic gradient type.
2020-05-02 10:38:55 -07:00
Mike Welsh
bfe14c2eaf
webgl: Add VAO support
2020-05-02 10:38:20 -07:00
Mike Welsh
9583b51ddb
webgl: Use u32 for vertex color
2020-05-02 10:38:20 -07:00
Mike Welsh
bc85c0d92e
webgl: Avoid redundant WebGL state calls
2020-05-02 10:38:20 -07:00
Mike Welsh
5f45b25f27
webgl: Create a WebGL2 context when available
2020-05-02 10:38:20 -07:00
Mike Welsh
d440328f1f
webgl: Set more context attributes on creation
2020-05-02 10:38:20 -07:00
Mike Welsh
fa5c09b0cd
web: Add WebGL render backend
2020-05-02 10:38:18 -07:00
Mike Welsh
5ead49a067
wgpu: Clamp minimum framebuffer size to 1 to avoid panic
2020-05-02 08:44:15 -07:00
Mike Welsh
6339c74d67
render: Add wgpu backend (merge #527 )
...
Adds a wgpu-rs render backend.
2020-05-02 03:42:05 -07:00
Mike Welsh
bfe57a3c66
wgpu: Toss out degenerate draws
...
wgpu would panic in this case, so filter out draws with < 3 indices.
2020-04-30 20:02:11 -07:00
Mike Welsh
beb0eba3a3
chore: WGPURenderBackend -> WgpuRenderBackend
2020-04-30 20:00:07 -07:00
Mike Welsh
552ddd531b
wgpu: Add MSAA support (default to 4x for now)
2020-04-30 19:56:07 -07:00
Nathan Adams
760677a2a1
render: Add From<ColorTransform> for ColorAdjustments uniforms
2020-04-30 16:40:08 +02:00
Nathan Adams
99d15aef0d
render: Cache color transforms in wgpu backend, don't re-upload unchanged values
2020-04-30 16:33:41 +02:00
Nathan Adams
90195340c3
render: Implement letterbox on wgpu renderer
2020-04-30 16:15:35 +02:00
dependabot-preview[bot]
a4961fc72b
build(deps): bump svg from 0.7.2 to 0.8.0
...
Bumps [svg](https://github.com/bodoni/svg ) from 0.7.2 to 0.8.0.
- [Release notes](https://github.com/bodoni/svg/releases )
- [Commits](https://github.com/bodoni/svg/commits )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-04-30 08:46:32 +00:00
Nathan Adams
9599b2d09f
render: Move some loose utility functions to utils.rs in wgpu renderer
2020-04-30 08:48:34 +02:00
Nathan Adams
f4abf4b705
render: Split off shape/mesh code into its own file in wgpu renderer
2020-04-30 08:48:34 +02:00
Nathan Adams
1879d7f29e
render: Implement render_bitmap for wgpu renderer
2020-04-30 08:48:34 +02:00
Nathan Adams
36d9d3ce4a
render: Implement masks in wgpu renderer
2020-04-30 08:48:34 +02:00
Nathan Adams
bdaf86dc3b
render: Add Pipelines struct to group together wgpu pipelines
2020-04-30 08:48:34 +02:00
Nathan Adams
dd1fa2700f
render: Split off macros & pipeline creation from wgpu renderer
2020-04-30 08:48:34 +02:00
Nathan Adams
c42333e254
render: Added feature render_debug_labels to enable debugging and profiling of wgpu renderer in external tools
2020-04-30 08:48:34 +02:00
Nathan Adams
c2290ed5ef
render: Remove dependency on winit from wgpu renderer
2020-04-30 08:48:33 +02:00
Nathan Adams
f0445d94b8
render: Add wgpu-rs based renderer, used by desktop
2020-04-30 08:48:33 +02:00
Mike Welsh
834756c167
render: Separate tesselation code into render/common_tess
2020-04-29 23:26:41 -07:00
Mike Welsh
6fb0046bd3
render: Move Glium renderer to separate subcrate
2020-04-29 23:26:41 -07:00
Mike Welsh
87bf0f44c4
render: Move canvas renderer to separate subcrate
2020-04-29 23:26:41 -07:00