WebGPU: Backend - hosting WebGPU layers
authorjonlee@apple.com <jonlee@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 13 Mar 2017 07:18:33 +0000 (07:18 +0000)
committerjonlee@apple.com <jonlee@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 13 Mar 2017 07:18:33 +0000 (07:18 +0000)
commiteb77af0ea8422f97446eeface033634e900d99f1
tree91bc9badd0bd4a7da42086f4d159cb8ce2a027fe
parentf95be1942d88f4b13406c9b1e4ff42dc61d572c2
WebGPU: Backend - hosting WebGPU layers
https://bugs.webkit.org/show_bug.cgi?id=169366
<rdar://problem/30928735>

Reviewed by Dean Jackson.

* html/canvas/WebGPURenderingContext.cpp:
(WebCore::WebGPURenderingContext::create): Create the device and the
rendering context.
* platform/graphics/cocoa/GPUCommandBufferMetal.mm:
(WebCore::GPUCommandBuffer::commit):
* platform/graphics/cocoa/GPUDrawableMetal.mm:
(WebCore::GPUDrawable::release): Fix a log message
* platform/graphics/gpu/GPUCommandBuffer.cpp:
(WebCore::GPUCommandBuffer::commit): Deleted. Moved to GPUCommandBufferMetal.
* rendering/RenderLayerBacking.cpp:
(WebCore::canvasCompositingStrategy): WebGPU canvas should return CanvasAsLayerContents.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@213783 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WebCore/ChangeLog
Source/WebCore/html/canvas/WebGPURenderingContext.cpp
Source/WebCore/platform/graphics/cocoa/GPUCommandBufferMetal.mm
Source/WebCore/platform/graphics/cocoa/GPUDrawableMetal.mm
Source/WebCore/platform/graphics/gpu/GPUCommandBuffer.cpp
Source/WebCore/rendering/RenderLayerBacking.cpp