Moulins
a0ad308de0
avm2: use an inner RefLock instead of GcCell in Context3D-related objects
2023-07-14 16:06:36 -06:00
relrelb
204cf4b2bc
avm1: Migrate `Xml` to `NativeObject`
2023-07-14 17:10:10 +03:00
TÖRÖK Attila
49e9376e12
tests/visual: Update avm1/avm2 netstream_play_flv expected images
...
These changed imperceptibly due to deblocking.
2023-07-14 14:44:23 +02:00
TÖRÖK Attila
39c493ebd5
tests/visual: Disable deblocking for the h263 colorconversion test
...
Since this functionality was not enabled before, the reference image is
not deblocked. This commit disables deblocking for the test to match the
reference image, and eliminate deblocking as a source of differences.
2023-07-14 14:44:23 +02:00
TÖRÖK Attila
f55cbf0a92
tests/visual: Add a basic test for h263 video deblocking
2023-07-14 14:44:23 +02:00
TÖRÖK Attila
39e51a7dcf
video/h263: Add a deblocking filter as a postprocessing step
2023-07-14 14:44:23 +02:00
TÖRÖK Attila
765ceb70a0
chore: Bump h263-rs git ref to latest master
2023-07-14 14:44:23 +02:00
Nathan Adams
e0886707c5
tests: Exclude WARP for blur_scales_with_screen
2023-07-12 18:51:11 +02:00
Nathan Adams
c3fdfc17dd
swf: Scale filter distances where appropriate
2023-07-12 18:51:11 +02:00
Nathan Adams
5c13d323b3
wgpu: Implement the undocumented ability to disable compositeSource for glow/shadow
2023-07-12 18:51:11 +02:00
Nathan Adams
c9a241f12b
wgpu: When sampling outside of blur texture, use 0
2023-07-12 18:51:11 +02:00
Nathan Adams
6f98b3d596
wgpu: Saturate alpha in glow shader
2023-07-12 18:51:11 +02:00
Nathan Adams
8cb6e5bdf0
wgpu: Implement drop shadow filter
2023-07-12 18:51:11 +02:00
Nathan Adams
aab03290be
wgpu: Add extra set of UVs to glow filter, to support separate blur rects
2023-07-12 18:51:11 +02:00
Nathan Adams
aba2394732
wgpu: Respect alpha for glows
2023-07-12 18:51:11 +02:00
Nathan Adams
f150a32d86
core: Only scale filters with stage view matrix
2023-07-12 18:51:11 +02:00
Nathan Adams
1aa2ac28c2
wgpu: Slight opimitsation to blur filter by not needing to calculate full_width per fragment
2023-07-12 18:51:11 +02:00
Nathan Adams
30e7a1eac6
core: Account for filter size changes when drawing cacheAsBitmaps
2023-07-12 18:51:11 +02:00
Nathan Adams
8f78fd410b
swf: Don't require Coordinate (only Twips) for Rectangles, only when using valid-checking stuff
2023-07-12 18:51:11 +02:00
Nathan Adams
d721072825
core: Extract DrawCacheInfo type from big tuple inside render_base
2023-07-12 18:51:11 +02:00
Nathan Adams
b30c522f9c
wgpu: Implement glow filter
2023-07-12 18:51:11 +02:00
Nathan Adams
44024e77c3
swf: Add inner_blur_filter() method to filters that contain blurs
2023-07-12 18:51:11 +02:00
Nathan Adams
f9ec5eb9b8
avm1: Make XMLNode constructor use NativeObject directly
2023-07-12 18:33:58 +02:00
Nathan Adams
d4b81cae5c
avm1: Migrate XMLNode to NativeObject
2023-07-12 18:33:58 +02:00
Nathan Adams
2459ae5230
chore: Fix clippy 'useless-vec'
2023-07-12 18:17:43 +02:00
renovate[bot]
f0607d6a1f
chore(deps): lock file maintenance rust dependencies
2023-07-11 22:42:51 +02:00
nosamu
17df97a59a
core: Fix panic from oversized bitmap warning
...
And warn only once per bitmap
2023-07-11 22:02:35 +02:00
nosamu
db252dabc3
desktop: Use consistent wording for removing parameters
2023-07-10 21:25:04 +02:00
nosamu
eeca059aeb
desktop: Add Letterbox option to Open Advanced dialog
2023-07-10 21:25:04 +02:00
Adrian Wielgosik
ffc6e2ffdc
core: Mark stack-heavy DO functions as noinline
2023-07-10 11:32:50 +02:00
Crowdin Bot
460e176ea9
chore: Update translations from Crowdin
2023-07-10 08:47:20 +02:00
dependabot[bot]
fe4b02fe2a
build(deps-dev): bump stylelint from 15.9.0 to 15.10.1 in /web
...
Bumps [stylelint](https://github.com/stylelint/stylelint ) from 15.9.0 to 15.10.1.
- [Release notes](https://github.com/stylelint/stylelint/releases )
- [Changelog](https://github.com/stylelint/stylelint/blob/main/CHANGELOG.md )
- [Commits](https://github.com/stylelint/stylelint/compare/15.9.0...15.10.1 )
---
updated-dependencies:
- dependency-name: stylelint
dependency-type: direct:development
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-07-10 08:28:22 +02:00
renovate[bot]
664227dcdf
fix(deps): update rust crate libflate to v2
2023-07-10 08:20:45 +02:00
Aaron Hill
e16a4833ac
avm2: Stub Program3D.dispose
2023-07-10 00:23:25 -04:00
Daniel Jacobs
e159ff8b35
desktop: Make Linux font selection work like Windows
2023-07-09 23:48:25 -04:00
moulins
f5b4fbce77
Upgrade to new `gc-arena` API ( #11182 )
...
* core: add temporary, ruffle-internal copy of `gc-arena` crate
This will allow bumping the upstream `gc-arena` version while
reexporting our own version of the old `GcCell` API, so that
Ruffle's code can be gradually migrated.
Once the migration is done, this crate should be removed.
* core: bump `gc-arena` to kyren/gc-arena#56
Add back the removed `GcCell` to our internal facade crate
* core: bump `gc-arena` to current master
This bump renames `Gc::allocate` to `Gc::new`
* core: rename `GcCell::allocate` to `GcCell::new`, to match `Gc`
* core: bump gc-arena to (slighly after) v0.3.1
Add typedefs for old `*Context` names in the gc-arena facade crate
* core: replace uses of `CollectionContext<'_>` by `&Collection`
* core: Add `gc()` convenience method for `*Context` and `Activation` types
This allows shortening most instances of `[activation.]context.gc_context`
to `activation.gc()` or `context.gc()` (but not all instances, because of
borrowck) Note that this doesn't actually do these shortenings to avoid
major code churn.
2023-07-09 17:04:25 -04:00
Aaron Hill
9d3e96e3a4
render: Implement more Pixelbender opcodes, and fix matrices ( #11896 )
2023-07-09 16:54:26 +00:00
Aaron Hill
b6fae8e214
wgpu: Cache Program3D bind group layout
...
The bind group layout only depends on the texture registers
(and 2D/cubemap type) accessed by the fragment shader, not on
the runtime texture bound with Context3D. This means that we can
build and cache it when we compile the AGAL program to a Naga
module.
Since the bind group layout is used for the overall pipeline, I've
refactored the shader caching code into `ShaderPairAgal`, which
holds both the vertex and fragment shader bytecode, and compiles
both in the `compile` function.
2023-07-09 12:39:10 -04:00
Adrian Wielgosik
a0d6389bd6
avm2: Replace Activation.resolve_type by domain lookup
2023-07-08 19:51:38 +02:00
Adrian Wielgosik
b38bd604db
avm2: Fix Multiname-with-params formatting
2023-07-08 01:55:44 +02:00
Lord-McSweeney
5337975cba
avm2: Remove old hack now that DOs use an instance allocator
2023-07-07 23:14:54 +02:00
Aaron Hill
e9f4a92073
wgpu: Only log 'unsupported' warning once per filter type
...
This eliminates the console spam produced when an object with
an unsupported filter was onscreen.
2023-07-07 22:38:35 +02:00
Aaron Hill
61c50e636a
avm2: Convert `has_class_in_chain` to use a `GcCell<Class>` ( #11494 )
2023-07-07 16:22:38 -04:00
Lord-McSweeney
b68008426a
avm2: Use the current SWF version instead of root SWF version in MC.gotoAndPlay
2023-07-07 21:19:16 +02:00
nosamu
c60742428c
desktop: Use suitable CJK fonts for each language on Windows
2023-07-06 21:42:02 +02:00
tinaun
57ede6e1f2
desktop: load cjk fallback fonts using fontdb
2023-07-06 21:42:02 +02:00
Aaron Hill
4cf0735692
avm2: Implement Utils3D.projectVector and Utils3D.projectVectors
2023-07-06 11:34:40 -04:00
Aaron Hill
fb9dbd21b0
tests: Fix stage3d_blend test formatting
2023-07-06 11:18:39 -04:00
Aaron Hill
90dbcfca5d
render: Fix writing to varying register in vertex shader
2023-07-06 11:18:39 -04:00
Lord-McSweeney
f8fa8a68cf
avm2: Replace Option<Object<'gc>> with Object<'gc> in all native methods
2023-07-06 10:56:49 -04:00