Summary: | WebGPU: Backend - hosting WebGPU layers | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Dean Jackson <dino> | ||||||
Component: | WebGL | Assignee: | Dean Jackson <dino> | ||||||
Status: | RESOLVED FIXED | ||||||||
Severity: | Normal | CC: | billmartinnn, dino, jonlee, webkit-bug-importer | ||||||
Priority: | P2 | Keywords: | InRadar | ||||||
Version: | WebKit Nightly Build | ||||||||
Hardware: | Unspecified | ||||||||
OS: | Unspecified | ||||||||
Bug Depends on: | |||||||||
Bug Blocks: | 167952 | ||||||||
Attachments: |
|
Description
Dean Jackson
2017-03-08 13:24:00 PST
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. |