这是indexloc提供的服务,不要输入任何密码
Skip to content

Conversation

@kainino0x
Copy link
Contributor

@kainino0x kainino0x commented Nov 12, 2019

Adds [SameObject] to the following attributes:

  • GPUAdapter GPUDevice.adapter
  • Promise<GPUDeviceLostInfo> GPUDevice.lost
  • GPUError GPUUncapturedErrorEvent.error

In addition to these which already had it:

  • GPUQueue GPUDevice.defaultQueue
  • GPU Navigator.gpu
  • GPU WorkerNavigator.gpu

Perhaps more important is which objects are not marked as [SameObject]:

  • string GPUAdapter.name
  • string GPUDeviceLostInfo.message
  • string GPUValidationError.message
  • object GPUAdapter.extensions
  • object GPUAdapter.limits (when it exists)
  • object GPUDevice.extensions
  • object GPUDevice.limits

which means any additional properties added to these objects may not be
preserved.


Preview | Diff

Adds `[SameObject]` to the following attributes:

- `GPUAdapter` `GPUDevice.adapter`
- `Promise<GPUDeviceLostInfo>` `GPUDevice.lost`
- `GPUError` `GPUUncapturedErrorEvent.error`

In addition to these which already had it:

- `GPUQueue` `GPUDevice.defaultQueue`
- `GPU` `Navigator.gpu`
- `GPU` `WorkerNavigator.gpu`

Perhaps more important is which objects are *not* marked as `[SameObject]`:

- `string` `GPUAdapter.name`
- `string` `GPUDeviceLostInfo.message`
- `string` `GPUValidationError.message`
- `object` `GPUAdapter.extensions`
- `object` `GPUAdapter.limits` (when it exists)
- `object` `GPUDevice.extensions`
- `object` `GPUDevice.limits`

which means any additional properties added to these objects may not be
preserved.
@kdashg kdashg merged commit 2e9fa05 into gpuweb:master Nov 25, 2019
@Kangz
Copy link
Contributor

Kangz commented Nov 25, 2019

Discussed and approved in the 2019-11-25 meeting.

aarongable pushed a commit to chromium/chromium that referenced this pull request Nov 27, 2019
Spec change:
  gpuweb/gpuweb#496

Bug: 852089
Change-Id: I0b786ebaf3cb4084ecf755c9175c2fe51d9eca22
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1936693
Commit-Queue: Corentin Wallez <cwallez@chromium.org>
Reviewed-by: Corentin Wallez <cwallez@chromium.org>
Cr-Commit-Position: refs/heads/master@{#719540}
@kainino0x kainino0x deleted the sameobject branch April 13, 2021 22:53
ben-clayton pushed a commit to ben-clayton/gpuweb that referenced this pull request Sep 6, 2022
For anything in `out/**/*` other than `out/**/*.js`, serve it statically
from the `src/` directory. This makes reftests work by serving up their
html but still relying on the automatic compilation of their typescript.

Also adds 'start' script which makes `npm start` work.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants