1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-21 15:04:11 -05:00
denoland-deno/ext
Divy Srivastava 0cb00a6e89
BREAKING(webgpu/unstable): move width and height options to UnsafeWindowSurface constructor (#24200)
Fixes https://github.com/denoland/deno/issues/23508

`width` and `height` are required to configure the wgpu surface because
Deno is headless and depends on user to create a window. The options
were non-standard extension of `GPUCanvasConfiguration#configure`.

This PR adds a required options parameter with the `width` and `height`
options to `Deno.UnsafeWindowSurface` constructor.

```typescript
// Old, non-standard extension of GPUCanvasConfiguration
const surface = new Deno.UnsafeWindowSurface("x11", displayHandle, windowHandle);

const context  = surface.getContext();
context.configure({ width: 600, height: 800, /* ... */ });
```

```typescript
// New
const surface = new Deno.UnsafeWindowSurface({
  system: "x11",
  windowHandle,
  displayHandle,
  width: 600,
  height: 800,
});

const context  = surface.getContext();
context.configure({ /* ... */ });
```
2024-09-22 09:10:54 +05:30
..
broadcast_channel chore: upgrade deno_core (#25674) 2024-09-17 01:13:34 +00:00
cache chore: forward v1.46.3 release commit to main (#25425) 2024-09-04 17:16:24 +00:00
canvas chore: forward v1.46.3 release commit to main (#25425) 2024-09-04 17:16:24 +00:00
console fix(ext/console): more precision in console.time (#25723) 2024-09-19 14:41:05 +02:00
cron chore: upgrade deno_core (#25674) 2024-09-17 01:13:34 +00:00
crypto fix(ext/crypto): ensure EC public keys are exported uncompressed (#25766) 2024-09-20 20:59:05 +05:30
fetch fix(ext/fetch): fix lowercase http_proxy classified as https (#25686) 2024-09-19 08:03:07 +00:00
ffi refactor(permissions): split up Descriptor into Allow, Deny, and Query (#25508) 2024-09-16 21:39:37 +01:00
fs refactor(permissions): split up Descriptor into Allow, Deny, and Query (#25508) 2024-09-16 21:39:37 +01:00
http refactor(ext): align error messages (#25496) 2024-09-18 18:19:45 -07:00
io feat(cli): use NotCapable error for permission errors (#25431) 2024-09-10 11:12:24 -07:00
kv refactor(ext/kv): align error messages (#25500) 2024-09-19 13:20:09 +05:30
napi refactor(permissions): split up Descriptor into Allow, Deny, and Query (#25508) 2024-09-16 21:39:37 +01:00
net chore: upgrade deno_core (#25674) 2024-09-17 01:13:34 +00:00
node chore: Revert child_process close ordering change (#25781) 2024-09-20 23:46:42 +00:00
node_resolver fix(node): Include "node" condition during CJS re-export analysis (#25785) 2024-09-21 16:10:38 -07:00
tls chore: forward v1.46.3 release commit to main (#25425) 2024-09-04 17:16:24 +00:00
url chore: forward v1.46.3 release commit to main (#25425) 2024-09-04 17:16:24 +00:00
web perf(ext/web): optimize performance.measure() (#25774) 2024-09-20 16:24:59 -07:00
webgpu BREAKING(webgpu/unstable): move width and height options to UnsafeWindowSurface constructor (#24200) 2024-09-22 09:10:54 +05:30
webidl refactor(ext/webidl): align error messages (#25625) 2024-09-19 13:03:32 +05:30
websocket refactor(ext/websocket): align error messages (#25622) 2024-09-17 15:32:12 -07:00
webstorage fix(runtime): use more null proto objects again (#25040) 2024-09-06 12:52:59 +02:00