Commit Graph

10097 Commits

Author SHA1 Message Date
Aaron Hill cd9efb2dfa wgpu: Ignore zero width/height Stage3D scissor rect
This matches Flash's behavior, and prevents wgpu from panicking.
2023-07-23 17:05:27 -04:00
Aaron Hill b8562bdb91 naga-pixelbender: Implement Opcode::Fract 2023-07-23 16:34:38 -04:00
Aaron Hill 8941a0bb79 avm2: Clamp ByteArray.position when ByteArray.length is set
Note that ByteArray.position can manually be set out-of-range
afterwards.
2023-07-23 14:51:30 -04:00
Aaron Hill 005fdffd05 avm2: Correctly set fields on ShaderInput and ShaderParameter
The special meta key `defaultValue` should be used to set
the default `value` field. Also, `index` is the position
within *just* the image or texture params, not within
all of the params.
2023-07-23 13:52:26 -04:00
Aaron Hill 5a5206c8df wgpu: Correctly pass PixelBender int params to shader
The shader expects an array of i32s, but we were writing
bitcasted f32s to the array.
2023-07-23 13:22:40 -04:00
sleepycatcoding 6c4f707e36 chore: fmt 2023-07-23 09:13:01 +02:00
sleepycatcoding f47ed92108 tests: Add test for socket errors 2023-07-23 09:13:01 +02:00
sleepycatcoding 48fcc5ffe9 avm2: Check is_connected in flush() and close() 2023-07-23 09:13:01 +02:00
sleepycatcoding 5218bbf32f chore: fmt 2023-07-23 09:13:01 +02:00
sleepycatcoding adeb50a3d7 avm2: Check if socket is open before trying to read or write 2023-07-23 09:13:01 +02:00
sleepycatcoding a432b1cbca desktop: Split read/write tasks for TcpStream
This should improve latency as we no longer wait for writing.
2023-07-23 09:13:01 +02:00
sleepycatcoding 4db16b76ab Chore: fmt 2023-07-23 09:13:01 +02:00
sleepycatcoding a82658687e desktop: Update en-US translation file 2023-07-23 09:13:01 +02:00
sleepycatcoding 74b66fdd73 core+desktop: Rename SocketBehavior to SocketMode
Also change command line flag from --socket to --socket-mode
2023-07-23 09:13:01 +02:00
sleepycatcoding d7421a9812 desktop: Default socket behavior to ask 2023-07-23 09:13:01 +02:00
sleepycatcoding 7cb6998991 chore: fmt 2023-07-23 09:13:01 +02:00
sleepycatcoding 2c79d22578 avm2: Do not panic when SocketHandle does not exist 2023-07-23 09:13:01 +02:00
sleepycatcoding 75672ae998 web, tests: Update connect_socket stubs 2023-07-23 09:13:01 +02:00
sleepycatcoding 4c6ce79210 desktop: Differentiate between TimedOut and Failed connection 2023-07-23 09:13:01 +02:00
sleepycatcoding 68fd0ce73c core: Differentiate between TimedOut and Failed connection 2023-07-23 09:13:01 +02:00
sleepycatcoding ed22a7a23b web, tests: remove Option for connection timeout 2023-07-23 09:13:01 +02:00
sleepycatcoding caddd5512b desktop: remove Option for connection timeout 2023-07-23 09:13:01 +02:00
sleepycatcoding ac1badc64f core: remove Option for connection timeout 2023-07-23 09:13:01 +02:00
sleepycatcoding 4501bc19c4 chore: allow clippy::too_many_arguments 2023-07-23 09:13:01 +02:00
sleepycatcoding 5144162e68 avm2: Set timeout in AS3 constructor 2023-07-23 09:13:01 +02:00
sleepycatcoding 568d8dfe11 core: Fix panic when socket is closed before connecting 2023-07-23 09:13:01 +02:00
sleepycatcoding b46cc2aadc desktop: remove unneeded comment 2023-07-23 09:13:01 +02:00
sleepycatcoding 486c0ca149 web, tests: Ignore timeout parameter 2023-07-23 09:13:01 +02:00
sleepycatcoding c0ebafdb95 desktop: Use provided timeout when connecting 2023-07-23 09:13:01 +02:00
sleepycatcoding 6e6205d20d core: Use timeout in Navigator::connect_socket 2023-07-23 09:13:01 +02:00
sleepycatcoding f54e0e9097 avm2: Make get/setTimeout native 2023-07-23 09:13:01 +02:00
sleepycatcoding a3a49335eb chore: Fmt 2023-07-23 09:13:01 +02:00
sleepycatcoding 6c3b6e5109 avm2: Implement read/writeObject() 2023-07-23 09:13:01 +02:00
sleepycatcoding ea3d6e2a5c avm2: Implement set/getobjectEncoding() 2023-07-23 09:13:01 +02:00
sleepycatcoding 9de2912765 avm2: Implement read/writeMultiByte() 2023-07-23 09:13:01 +02:00
sleepycatcoding 5ed9dbc16b avm2: Implement read/writeUTF 2023-07-23 09:13:01 +02:00
sleepycatcoding 6ca6bb1d78 avm2: Implement read/writeUTFBytes 2023-07-23 09:13:01 +02:00
sleepycatcoding ad51041457 avm2: Implement readBytes() 2023-07-23 09:13:01 +02:00
sleepycatcoding e1a82570fe avm2: small cleanup 2023-07-23 09:13:01 +02:00
sleepycatcoding df4ee7fe05 Chore: Fmt 2023-07-23 09:13:01 +02:00
sleepycatcoding 2bcfc25b9f desktop: Add socket behavior to OpenDialog 2023-07-23 09:13:01 +02:00
sleepycatcoding 22eb150756 desktop: add SocketBehavior and host whitelist
This adds a way to modify socket behavior to restrict, ask, or allow all
connections. Also adds a whitelist which can be used to allow specific hosts
without enabiling ask or allow all behaviors.
2023-07-23 09:13:01 +02:00
sleepycatcoding 4c540c9f17 avm2: Implement read/writeBoolean() 2023-07-23 09:13:01 +02:00
sleepycatcoding 437187a7bd tests: Log socket connections on test backend 2023-07-23 09:13:01 +02:00
sleepycatcoding 45d3e141f8 avm2: Improve IOErrorEvent for Socket
IOErrorEvent now uses a error message and ID.
2023-07-23 09:13:01 +02:00
sleepycatcoding 0699c34881 chore: Fmt 2023-07-23 09:13:01 +02:00
sleepycatcoding 676516a99c core: use get instead of get_mut
We did not need mutability for this.
2023-07-23 09:13:01 +02:00
sleepycatcoding ea7264eab5 core: Dispatch IOErrorEvent when connection fails 2023-07-23 09:13:01 +02:00
sleepycatcoding d1a17ebeb1 chore: Fix clippy lint 2023-07-23 09:13:01 +02:00
sleepycatcoding e59dd9a8ef web, tests: fix connect_socket stubs 2023-07-23 09:13:01 +02:00