WebGPU: Backend - hosting WebGPU layers
[WebKit-https.git] / Source / WebCore / rendering / RenderLayerBacking.cpp
index fdb5c28..46c9ecd 100644 (file)
@@ -84,6 +84,11 @@ CanvasCompositingStrategy canvasCompositingStrategy(const RenderObject& renderer
     if (context->is3d())
         return CanvasAsLayerContents;
 
+#if ENABLE(WEBGPU)
+    if (context->isGPU())
+        return CanvasAsLayerContents;
+#endif
+
 #if ENABLE(ACCELERATED_2D_CANVAS)
     return CanvasAsLayerContents;
 #else