Web Inspector: Canvas: add support for showing WebGPU contexts
[WebKit-https.git] / Source / WebCore / Modules / webgpu / GPUCanvasContext.cpp
index 68f09d1..79e65c9 100644 (file)
@@ -26,6 +26,8 @@
 #include "config.h"
 #include "GPUCanvasContext.h"
 
+#include "InspectorInstrumentation.h"
+
 #if ENABLE(WEBGPU)
 
 namespace WebCore {
@@ -34,6 +36,9 @@ std::unique_ptr<GPUCanvasContext> GPUCanvasContext::create(CanvasBase& canvas)
 {
     auto context = std::unique_ptr<GPUCanvasContext>(new GPUCanvasContext(canvas));
     context->suspendIfNeeded();
+
+    InspectorInstrumentation::didCreateCanvasRenderingContext(*context);
+
     return context;
 }