Implement local and remote hosting of WebGPULayer
<rdar://problem/30928735>
Created attachment 304233 [details] Patch
Created attachment 304234 [details] Patch
Comment on attachment 304234 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=304234&action=review > Source/WebCore/ChangeLog:19 > + (WebCore::canvasCompositingStrategy): WebGPU canvas shoudl return CanvasAsLayerContents. Typo: should > Source/WebCore/html/canvas/WebGPURenderingContext.cpp:77 > Document& document = canvas.document(); > Frame* frame = document.frame(); > if (!frame) > return nullptr; This can be removed for now. > Source/WebCore/rendering/RenderLayerBacking.cpp:84 > - if (context->is3d()) > + if (context->is3d() || context->isGPU()) Should this be guarded with ENABLE(WEBGPU)?
Committed r213783: <http://trac.webkit.org/changeset/213783>
Comment on attachment 304234 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=304234&action=review >> Source/WebCore/ChangeLog:19 >> + (WebCore::canvasCompositingStrategy): WebGPU canvas shoudl return CanvasAsLayerContents. > > Typo: should Done. >> Source/WebCore/html/canvas/WebGPURenderingContext.cpp:77 >> return nullptr; > > This can be removed for now. Done. >> Source/WebCore/rendering/RenderLayerBacking.cpp:84 >> + if (context->is3d() || context->isGPU()) > > Should this be guarded with ENABLE(WEBGPU)? Separated this out and wrapped in ENABLE.