aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/webidls/GPUBuffer.webidl
diff options
context:
space:
mode:
authorIstvan Miklos <istvan.miklos@h-lab.eu>2020-02-11 22:35:11 +0100
committerIstvan Miklos <istvan.miklos@h-lab.eu>2020-02-25 10:18:36 +0100
commit2df4d9fce419505cf7c5305321d4135559534997 (patch)
tree2f3892b9c38c7a393f875170bfc8ed7e374aece4 /components/script/dom/webidls/GPUBuffer.webidl
parent92f5b36f49671756e02a33ec70006d5b374a4388 (diff)
downloadservo-2df4d9fce419505cf7c5305321d4135559534997.tar.gz
servo-2df4d9fce419505cf7c5305321d4135559534997.zip
Implement mapReadAsync function of GPUBuffer
Implemented the `mapReadAsync` and fixed the `unmap` functions of `GPUBuffer`. Added `mapped` internal slot for tracking the ArrayBuffer/Promise. Added more states to the `GPUBufferState` enum.
Diffstat (limited to 'components/script/dom/webidls/GPUBuffer.webidl')
-rw-r--r--components/script/dom/webidls/GPUBuffer.webidl2
1 files changed, 1 insertions, 1 deletions
diff --git a/components/script/dom/webidls/GPUBuffer.webidl b/components/script/dom/webidls/GPUBuffer.webidl
index 0b327bdcbd2..1688060b514 100644
--- a/components/script/dom/webidls/GPUBuffer.webidl
+++ b/components/script/dom/webidls/GPUBuffer.webidl
@@ -5,7 +5,7 @@
// https://gpuweb.github.io/gpuweb/#gpubuffer
[Exposed=(Window, DedicatedWorker), Serializable, Pref="dom.webgpu.enabled"]
interface GPUBuffer {
- // Promise<ArrayBuffer> mapReadAsync();
+ Promise<ArrayBuffer> mapReadAsync();
// Promise<ArrayBuffer> mapWriteAsync();
void unmap();