summaryrefslogtreecommitdiff
path: root/chromium/third_party/blink/renderer/modules/webgpu/gpu_canvas_context.h
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/third_party/blink/renderer/modules/webgpu/gpu_canvas_context.h')
-rw-r--r--chromium/third_party/blink/renderer/modules/webgpu/gpu_canvas_context.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/chromium/third_party/blink/renderer/modules/webgpu/gpu_canvas_context.h b/chromium/third_party/blink/renderer/modules/webgpu/gpu_canvas_context.h
index 788635a2aff..c53856e85d1 100644
--- a/chromium/third_party/blink/renderer/modules/webgpu/gpu_canvas_context.h
+++ b/chromium/third_party/blink/renderer/modules/webgpu/gpu_canvas_context.h
@@ -13,6 +13,7 @@
namespace blink {
+class GPUAdapter;
class GPUSwapChain;
class GPUSwapChainDescriptor;
@@ -63,7 +64,8 @@ class GPUCanvasContext : public CanvasRenderingContext {
GPUSwapChain* configureSwapChain(const GPUSwapChainDescriptor* descriptor,
ExceptionState&);
ScriptPromise getSwapChainPreferredFormat(ScriptState* script_state,
- const GPUDevice* device);
+ GPUDevice* device);
+ String getSwapChainPreferredFormat(const GPUAdapter* adapter);
private:
DISALLOW_COPY_AND_ASSIGN(GPUCanvasContext);