diff options
Diffstat (limited to 'components/script/dom/webidls/GPU.webidl')
-rw-r--r-- | components/script/dom/webidls/GPU.webidl | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/components/script/dom/webidls/GPU.webidl b/components/script/dom/webidls/GPU.webidl deleted file mode 100644 index f35966f4b3d..00000000000 --- a/components/script/dom/webidls/GPU.webidl +++ /dev/null @@ -1,21 +0,0 @@ -/* This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this - * file, You can obtain one at https://mozilla.org/MPL/2.0/. */ - -// https://gpuweb.github.io/gpuweb/#gpu-interface -[Exposed=(Window, DedicatedWorker), Pref="dom.webgpu.enabled"] -interface GPU { - [NewObject] - Promise<GPUAdapter?> requestAdapter(optional GPURequestAdapterOptions options = {}); - GPUTextureFormat getPreferredCanvasFormat(); -}; - -dictionary GPURequestAdapterOptions { - GPUPowerPreference powerPreference; - boolean forceFallbackAdapter = false; -}; - -enum GPUPowerPreference { - "low-power", - "high-performance" -}; |