Skip to content

Commit

Permalink
WebGPU: Add [SameObject] to several more attributes
Browse files Browse the repository at this point in the history
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}
  • Loading branch information
romandev authored and Commit Bot committed Nov 27, 2019
1 parent 88f83d0 commit 66d5723
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion third_party/blink/renderer/modules/webgpu/gpu_device.idl
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
[
Exposed(Window WebGPU, Worker WebGPU)
] interface GPUDevice : EventTarget {
readonly attribute GPUAdapter adapter;
[SameObject] readonly attribute GPUAdapter adapter;
[CallWith=ScriptState] readonly attribute Promise<GPUDeviceLostInfo> lost;

[SameObject] readonly attribute GPUQueue defaultQueue;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@
Constructor(DOMString type, GPUUncapturedErrorEventInit gpuUncapturedErrorEventInitDict),
Exposed(Window WebGPU, Worker WebGPU)
] interface GPUUncapturedErrorEvent : Event {
readonly attribute GPUError error;
[SameObject] readonly attribute GPUError error;
};

0 comments on commit 66d5723

Please sign in to comment.