Changeset 236954 in webkit
- Timestamp:
- Oct 8, 2018, 6:37:30 PM (8 years ago)
- Location:
- trunk
- Files:
-
- 6 added
- 4 deleted
- 126 edited
- 19 copied
- 74 moved
-
ChangeLog (modified) (1 diff)
-
LayoutTests/ChangeLog (modified) (1 diff)
-
LayoutTests/fast/canvas/webgpu (deleted)
-
LayoutTests/fast/canvas/webmetal (added)
-
LayoutTests/fast/canvas/webmetal/webmetal-dispatch-expected.txt (copied) (copied from trunk/LayoutTests/fast/canvas/webgpu/webgpu-dispatch-expected.txt )
-
LayoutTests/fast/canvas/webmetal/webmetal-dispatch.html (copied) (copied from trunk/LayoutTests/fast/canvas/webgpu/webgpu-dispatch.html ) (1 diff)
-
LayoutTests/fast/canvas/webmetal/webmetal-runtime-flag-expected.txt (added)
-
LayoutTests/fast/canvas/webmetal/webmetal-runtime-flag.html (copied) (copied from trunk/LayoutTests/fast/canvas/webgpu/webgpu-runtime-flag.html ) (1 diff)
-
LayoutTests/inspector/canvas/create-context-webmetal-expected.txt (moved) (moved from trunk/LayoutTests/inspector/canvas/create-context-webgpu-expected.txt ) (3 diffs)
-
LayoutTests/inspector/canvas/create-context-webmetal.html (moved) (moved from trunk/LayoutTests/inspector/canvas/create-context-webgpu.html ) (2 diffs)
-
LayoutTests/inspector/canvas/resolveCanvasContext-webgpu-expected.txt (deleted)
-
LayoutTests/inspector/canvas/resolveCanvasContext-webmetal-expected.txt (added)
-
LayoutTests/inspector/canvas/resolveCanvasContext-webmetal.html (moved) (moved from trunk/LayoutTests/inspector/canvas/resolveCanvasContext-webgpu.html ) (4 diffs)
-
LayoutTests/platform/gtk/TestExpectations (modified) (1 diff)
-
LayoutTests/platform/ios/TestExpectations (modified) (1 diff)
-
LayoutTests/platform/mac/TestExpectations (modified) (1 diff)
-
LayoutTests/platform/win/TestExpectations (modified) (3 diffs)
-
Source/JavaScriptCore/ChangeLog (modified) (1 diff)
-
Source/JavaScriptCore/Configurations/FeatureDefines.xcconfig (modified) (2 diffs)
-
Source/JavaScriptCore/inspector/protocol/Canvas.json (modified) (1 diff)
-
Source/JavaScriptCore/inspector/scripts/codegen/generator.py (modified) (1 diff)
-
Source/WebCore/CMakeLists.txt (modified) (1 diff)
-
Source/WebCore/ChangeLog (modified) (1 diff)
-
Source/WebCore/Configurations/FeatureDefines.xcconfig (modified) (2 diffs)
-
Source/WebCore/DerivedSources.make (modified) (1 diff)
-
Source/WebCore/PAL/ChangeLog (modified) (1 diff)
-
Source/WebCore/PAL/Configurations/FeatureDefines.xcconfig (modified) (2 diffs)
-
Source/WebCore/Sources.txt (modified) (3 diffs)
-
Source/WebCore/SourcesCocoa.txt (modified) (1 diff)
-
Source/WebCore/WebCore.xcodeproj/project.pbxproj (modified) (9 diffs)
-
Source/WebCore/bindings/js/JSWebMetalRenderPassAttachmentDescriptorCustom.cpp (moved) (moved from trunk/Source/WebCore/bindings/js/JSWebGPURenderPassAttachmentDescriptorCustom.cpp ) (1 diff)
-
Source/WebCore/bindings/js/JSWebMetalRenderingContextCustom.cpp (moved) (moved from trunk/Source/WebCore/bindings/js/JSWebGPURenderingContextCustom.cpp ) (2 diffs)
-
Source/WebCore/bindings/js/WebCoreBuiltinNames.h (modified) (1 diff)
-
Source/WebCore/dom/Document.cpp (modified) (2 diffs)
-
Source/WebCore/dom/Document.h (modified) (2 diffs)
-
Source/WebCore/dom/Document.idl (modified) (1 diff)
-
Source/WebCore/html/HTMLCanvasElement.cpp (modified) (6 diffs)
-
Source/WebCore/html/HTMLCanvasElement.h (modified) (2 diffs)
-
Source/WebCore/html/HTMLCanvasElement.idl (modified) (1 diff)
-
Source/WebCore/html/canvas/CanvasRenderingContext.h (modified) (1 diff)
-
Source/WebCore/html/canvas/WebGPURenderingContext.cpp (deleted)
-
Source/WebCore/html/canvas/WebMetalBuffer.cpp (moved) (moved from trunk/Source/WebCore/html/canvas/WebGPUBuffer.cpp ) (1 diff)
-
Source/WebCore/html/canvas/WebMetalBuffer.h (moved) (moved from trunk/Source/WebCore/html/canvas/WebGPUBuffer.h ) (3 diffs)
-
Source/WebCore/html/canvas/WebMetalBuffer.idl (moved) (moved from trunk/Source/WebCore/html/canvas/WebGPUBuffer.idl ) (1 diff)
-
Source/WebCore/html/canvas/WebMetalCommandBuffer.cpp (moved) (moved from trunk/Source/WebCore/html/canvas/WebGPUCommandBuffer.cpp ) (1 diff)
-
Source/WebCore/html/canvas/WebMetalCommandBuffer.h (moved) (moved from trunk/Source/WebCore/html/canvas/WebGPUCommandBuffer.h ) (3 diffs)
-
Source/WebCore/html/canvas/WebMetalCommandBuffer.idl (moved) (moved from trunk/Source/WebCore/html/canvas/WebGPUCommandBuffer.idl ) (1 diff)
-
Source/WebCore/html/canvas/WebMetalCommandQueue.cpp (moved) (moved from trunk/Source/WebCore/html/canvas/WebGPUCommandQueue.cpp ) (1 diff)
-
Source/WebCore/html/canvas/WebMetalCommandQueue.h (moved) (moved from trunk/Source/WebCore/html/canvas/WebGPUCommandQueue.h ) (2 diffs)
-
Source/WebCore/html/canvas/WebMetalCommandQueue.idl (moved) (moved from trunk/Source/WebCore/html/canvas/WebGPUCommandQueue.idl ) (1 diff)
-
Source/WebCore/html/canvas/WebMetalComputeCommandEncoder.cpp (moved) (moved from trunk/Source/WebCore/html/canvas/WebGPUComputeCommandEncoder.cpp ) (1 diff)
-
Source/WebCore/html/canvas/WebMetalComputeCommandEncoder.h (moved) (moved from trunk/Source/WebCore/html/canvas/WebGPUComputeCommandEncoder.h ) (2 diffs)
-
Source/WebCore/html/canvas/WebMetalComputeCommandEncoder.idl (moved) (moved from trunk/Source/WebCore/html/canvas/WebGPUComputeCommandEncoder.idl ) (1 diff)
-
Source/WebCore/html/canvas/WebMetalComputePipelineState.cpp (moved) (moved from trunk/Source/WebCore/html/canvas/WebGPUComputePipelineState.cpp ) (1 diff)
-
Source/WebCore/html/canvas/WebMetalComputePipelineState.h (moved) (moved from trunk/Source/WebCore/html/canvas/WebGPUComputePipelineState.h ) (2 diffs)
-
Source/WebCore/html/canvas/WebMetalComputePipelineState.idl (moved) (moved from trunk/Source/WebCore/html/canvas/WebGPUComputePipelineState.idl ) (1 diff)
-
Source/WebCore/html/canvas/WebMetalDepthStencilDescriptor.cpp (moved) (moved from trunk/Source/WebCore/html/canvas/WebGPUDepthStencilDescriptor.cpp ) (1 diff)
-
Source/WebCore/html/canvas/WebMetalDepthStencilDescriptor.h (moved) (moved from trunk/Source/WebCore/html/canvas/WebGPUDepthStencilDescriptor.h ) (4 diffs)
-
Source/WebCore/html/canvas/WebMetalDepthStencilDescriptor.idl (moved) (moved from trunk/Source/WebCore/html/canvas/WebGPUDepthStencilDescriptor.idl ) (2 diffs)
-
Source/WebCore/html/canvas/WebMetalDepthStencilState.cpp (moved) (moved from trunk/Source/WebCore/html/canvas/WebGPUDepthStencilState.cpp ) (1 diff)
-
Source/WebCore/html/canvas/WebMetalDepthStencilState.h (moved) (moved from trunk/Source/WebCore/html/canvas/WebGPUDepthStencilState.h ) (3 diffs)
-
Source/WebCore/html/canvas/WebMetalDepthStencilState.idl (moved) (moved from trunk/Source/WebCore/html/canvas/WebGPURenderPipelineState.idl ) (1 diff)
-
Source/WebCore/html/canvas/WebMetalDrawable.cpp (moved) (moved from trunk/Source/WebCore/html/canvas/WebGPUDrawable.cpp ) (1 diff)
-
Source/WebCore/html/canvas/WebMetalDrawable.h (moved) (moved from trunk/Source/WebCore/html/canvas/WebGPUDrawable.h ) (2 diffs)
-
Source/WebCore/html/canvas/WebMetalDrawable.idl (moved) (moved from trunk/Source/WebCore/html/canvas/WebGPUDrawable.idl ) (1 diff)
-
Source/WebCore/html/canvas/WebMetalEnums.cpp (moved) (moved from trunk/Source/WebCore/html/canvas/WebGPUEnums.cpp ) (4 diffs)
-
Source/WebCore/html/canvas/WebMetalEnums.h (moved) (moved from trunk/Source/WebCore/html/canvas/WebGPUEnums.h ) (3 diffs)
-
Source/WebCore/html/canvas/WebMetalEnums.idl (moved) (moved from trunk/Source/WebCore/html/canvas/WebGPUEnums.idl ) (24 diffs)
-
Source/WebCore/html/canvas/WebMetalFunction.cpp (moved) (moved from trunk/Source/WebCore/html/canvas/WebGPUFunction.cpp ) (1 diff)
-
Source/WebCore/html/canvas/WebMetalFunction.h (moved) (moved from trunk/Source/WebCore/html/canvas/WebGPUFunction.h ) (3 diffs)
-
Source/WebCore/html/canvas/WebMetalFunction.idl (moved) (moved from trunk/Source/WebCore/html/canvas/WebGPUFunction.idl ) (1 diff)
-
Source/WebCore/html/canvas/WebMetalLibrary.cpp (moved) (moved from trunk/Source/WebCore/html/canvas/WebGPULibrary.cpp ) (2 diffs)
-
Source/WebCore/html/canvas/WebMetalLibrary.h (moved) (moved from trunk/Source/WebCore/html/canvas/WebGPULibrary.h ) (3 diffs)
-
Source/WebCore/html/canvas/WebMetalLibrary.idl (moved) (moved from trunk/Source/WebCore/html/canvas/WebGPULibrary.idl ) (2 diffs)
-
Source/WebCore/html/canvas/WebMetalRenderCommandEncoder.cpp (moved) (moved from trunk/Source/WebCore/html/canvas/WebGPURenderCommandEncoder.cpp ) (1 diff)
-
Source/WebCore/html/canvas/WebMetalRenderCommandEncoder.h (moved) (moved from trunk/Source/WebCore/html/canvas/WebGPURenderCommandEncoder.h ) (3 diffs)
-
Source/WebCore/html/canvas/WebMetalRenderCommandEncoder.idl (moved) (moved from trunk/Source/WebCore/html/canvas/WebGPURenderCommandEncoder.idl ) (1 diff)
-
Source/WebCore/html/canvas/WebMetalRenderPassAttachmentDescriptor.cpp (moved) (moved from trunk/Source/WebCore/html/canvas/WebGPURenderPassAttachmentDescriptor.cpp ) (1 diff)
-
Source/WebCore/html/canvas/WebMetalRenderPassAttachmentDescriptor.h (moved) (moved from trunk/Source/WebCore/html/canvas/WebGPURenderPassAttachmentDescriptor.h ) (3 diffs)
-
Source/WebCore/html/canvas/WebMetalRenderPassAttachmentDescriptor.idl (moved) (moved from trunk/Source/WebCore/html/canvas/WebGPURenderPassAttachmentDescriptor.idl ) (1 diff)
-
Source/WebCore/html/canvas/WebMetalRenderPassColorAttachmentDescriptor.cpp (moved) (moved from trunk/Source/WebCore/html/canvas/WebGPURenderPassColorAttachmentDescriptor.cpp ) (1 diff)
-
Source/WebCore/html/canvas/WebMetalRenderPassColorAttachmentDescriptor.h (moved) (moved from trunk/Source/WebCore/html/canvas/WebGPURenderPassColorAttachmentDescriptor.h ) (2 diffs)
-
Source/WebCore/html/canvas/WebMetalRenderPassColorAttachmentDescriptor.idl (moved) (moved from trunk/Source/WebCore/html/canvas/WebGPURenderPassColorAttachmentDescriptor.idl ) (1 diff)
-
Source/WebCore/html/canvas/WebMetalRenderPassDepthAttachmentDescriptor.cpp (moved) (moved from trunk/Source/WebCore/html/canvas/WebGPURenderPassDepthAttachmentDescriptor.cpp ) (1 diff)
-
Source/WebCore/html/canvas/WebMetalRenderPassDepthAttachmentDescriptor.h (moved) (moved from trunk/Source/WebCore/html/canvas/WebGPURenderPassDepthAttachmentDescriptor.h ) (2 diffs)
-
Source/WebCore/html/canvas/WebMetalRenderPassDepthAttachmentDescriptor.idl (moved) (moved from trunk/Source/WebCore/html/canvas/WebGPURenderPassDepthAttachmentDescriptor.idl ) (1 diff)
-
Source/WebCore/html/canvas/WebMetalRenderPassDescriptor.cpp (moved) (moved from trunk/Source/WebCore/html/canvas/WebGPURenderPassDescriptor.cpp ) (2 diffs)
-
Source/WebCore/html/canvas/WebMetalRenderPassDescriptor.h (moved) (moved from trunk/Source/WebCore/html/canvas/WebGPURenderPassDescriptor.h ) (2 diffs)
-
Source/WebCore/html/canvas/WebMetalRenderPassDescriptor.idl (moved) (moved from trunk/Source/WebCore/html/canvas/WebGPURenderPassDescriptor.idl ) (1 diff)
-
Source/WebCore/html/canvas/WebMetalRenderPipelineColorAttachmentDescriptor.cpp (moved) (moved from trunk/Source/WebCore/html/canvas/WebGPURenderPipelineColorAttachmentDescriptor.cpp ) (1 diff)
-
Source/WebCore/html/canvas/WebMetalRenderPipelineColorAttachmentDescriptor.h (moved) (moved from trunk/Source/WebCore/html/canvas/WebGPURenderPipelineColorAttachmentDescriptor.h ) (3 diffs)
-
Source/WebCore/html/canvas/WebMetalRenderPipelineColorAttachmentDescriptor.idl (moved) (moved from trunk/Source/WebCore/html/canvas/WebGPURenderPipelineColorAttachmentDescriptor.idl ) (1 diff)
-
Source/WebCore/html/canvas/WebMetalRenderPipelineDescriptor.cpp (moved) (moved from trunk/Source/WebCore/html/canvas/WebGPURenderPipelineDescriptor.cpp ) (4 diffs)
-
Source/WebCore/html/canvas/WebMetalRenderPipelineDescriptor.h (moved) (moved from trunk/Source/WebCore/html/canvas/WebGPURenderPipelineDescriptor.h ) (3 diffs)
-
Source/WebCore/html/canvas/WebMetalRenderPipelineDescriptor.idl (moved) (moved from trunk/Source/WebCore/html/canvas/WebGPURenderPipelineDescriptor.idl ) (1 diff)
-
Source/WebCore/html/canvas/WebMetalRenderPipelineState.cpp (moved) (moved from trunk/Source/WebCore/html/canvas/WebGPURenderPipelineState.cpp ) (1 diff)
-
Source/WebCore/html/canvas/WebMetalRenderPipelineState.h (moved) (moved from trunk/Source/WebCore/html/canvas/WebGPURenderPipelineState.h ) (3 diffs)
-
Source/WebCore/html/canvas/WebMetalRenderPipelineState.idl (moved) (moved from trunk/Source/WebCore/html/canvas/WebGPUDepthStencilState.idl ) (1 diff)
-
Source/WebCore/html/canvas/WebMetalRenderingContext.cpp (added)
-
Source/WebCore/html/canvas/WebMetalRenderingContext.h (moved) (moved from trunk/Source/WebCore/html/canvas/WebGPURenderingContext.h ) (4 diffs)
-
Source/WebCore/html/canvas/WebMetalRenderingContext.idl (moved) (moved from trunk/Source/WebCore/html/canvas/WebGPURenderingContext.idl ) (2 diffs)
-
Source/WebCore/html/canvas/WebMetalSize.h (moved) (moved from trunk/Source/WebCore/html/canvas/WebGPUSize.h ) (1 diff)
-
Source/WebCore/html/canvas/WebMetalSize.idl (moved) (moved from trunk/Source/WebCore/html/canvas/WebGPUSize.idl ) (1 diff)
-
Source/WebCore/html/canvas/WebMetalTexture.cpp (moved) (moved from trunk/Source/WebCore/html/canvas/WebGPUTexture.cpp ) (1 diff)
-
Source/WebCore/html/canvas/WebMetalTexture.h (moved) (moved from trunk/Source/WebCore/html/canvas/WebGPUTexture.h ) (3 diffs)
-
Source/WebCore/html/canvas/WebMetalTexture.idl (moved) (moved from trunk/Source/WebCore/html/canvas/WebGPUTexture.idl ) (1 diff)
-
Source/WebCore/html/canvas/WebMetalTextureDescriptor.cpp (moved) (moved from trunk/Source/WebCore/html/canvas/WebGPUTextureDescriptor.cpp ) (1 diff)
-
Source/WebCore/html/canvas/WebMetalTextureDescriptor.h (moved) (moved from trunk/Source/WebCore/html/canvas/WebGPUTextureDescriptor.h ) (3 diffs)
-
Source/WebCore/html/canvas/WebMetalTextureDescriptor.idl (moved) (moved from trunk/Source/WebCore/html/canvas/WebGPUTextureDescriptor.idl ) (1 diff)
-
Source/WebCore/inspector/InspectorCanvas.cpp (modified) (2 diffs)
-
Source/WebCore/inspector/agents/InspectorCanvasAgent.cpp (modified) (3 diffs)
-
Source/WebCore/page/RuntimeEnabledFeatures.h (modified) (2 diffs)
-
Source/WebCore/platform/Logging.h (modified) (1 diff)
-
Source/WebCore/platform/graphics/ca/cocoa/PlatformCALayerCocoa.mm (modified) (3 diffs)
-
Source/WebCore/platform/graphics/cocoa/WebMetalLayer.h (moved) (moved from trunk/Source/WebCore/platform/graphics/cocoa/WebGPULayer.h ) (2 diffs)
-
Source/WebCore/platform/graphics/cocoa/WebMetalLayer.mm (moved) (moved from trunk/Source/WebCore/platform/graphics/cocoa/WebGPULayer.mm ) (3 diffs)
-
Source/WebCore/platform/graphics/gpu/GPUBuffer.cpp (modified) (2 diffs)
-
Source/WebCore/platform/graphics/gpu/GPUBuffer.h (modified) (1 diff)
-
Source/WebCore/platform/graphics/gpu/GPUCommandBuffer.cpp (modified) (2 diffs)
-
Source/WebCore/platform/graphics/gpu/GPUCommandBuffer.h (modified) (1 diff)
-
Source/WebCore/platform/graphics/gpu/GPUCommandQueue.cpp (modified) (2 diffs)
-
Source/WebCore/platform/graphics/gpu/GPUCommandQueue.h (modified) (1 diff)
-
Source/WebCore/platform/graphics/gpu/GPUComputeCommandEncoder.cpp (modified) (2 diffs)
-
Source/WebCore/platform/graphics/gpu/GPUComputeCommandEncoder.h (modified) (1 diff)
-
Source/WebCore/platform/graphics/gpu/GPUComputePipelineState.cpp (modified) (2 diffs)
-
Source/WebCore/platform/graphics/gpu/GPUComputePipelineState.h (modified) (1 diff)
-
Source/WebCore/platform/graphics/gpu/GPUDepthStencilDescriptor.cpp (modified) (2 diffs)
-
Source/WebCore/platform/graphics/gpu/GPUDepthStencilDescriptor.h (modified) (1 diff)
-
Source/WebCore/platform/graphics/gpu/GPUDepthStencilState.cpp (modified) (2 diffs)
-
Source/WebCore/platform/graphics/gpu/GPUDepthStencilState.h (modified) (1 diff)
-
Source/WebCore/platform/graphics/gpu/GPUDevice.cpp (modified) (2 diffs)
-
Source/WebCore/platform/graphics/gpu/GPUDevice.h (modified) (3 diffs)
-
Source/WebCore/platform/graphics/gpu/GPUDrawable.cpp (modified) (2 diffs)
-
Source/WebCore/platform/graphics/gpu/GPUDrawable.h (modified) (2 diffs)
-
Source/WebCore/platform/graphics/gpu/GPUEnums.h (modified) (1 diff)
-
Source/WebCore/platform/graphics/gpu/GPUFunction.cpp (modified) (2 diffs)
-
Source/WebCore/platform/graphics/gpu/GPUFunction.h (modified) (1 diff)
-
Source/WebCore/platform/graphics/gpu/GPULibrary.cpp (modified) (2 diffs)
-
Source/WebCore/platform/graphics/gpu/GPULibrary.h (modified) (1 diff)
-
Source/WebCore/platform/graphics/gpu/GPURenderCommandEncoder.cpp (modified) (2 diffs)
-
Source/WebCore/platform/graphics/gpu/GPURenderCommandEncoder.h (modified) (1 diff)
-
Source/WebCore/platform/graphics/gpu/GPURenderPassAttachmentDescriptor.cpp (modified) (2 diffs)
-
Source/WebCore/platform/graphics/gpu/GPURenderPassAttachmentDescriptor.h (modified) (1 diff)
-
Source/WebCore/platform/graphics/gpu/GPURenderPassColorAttachmentDescriptor.cpp (modified) (2 diffs)
-
Source/WebCore/platform/graphics/gpu/GPURenderPassColorAttachmentDescriptor.h (modified) (1 diff)
-
Source/WebCore/platform/graphics/gpu/GPURenderPassDepthAttachmentDescriptor.cpp (modified) (2 diffs)
-
Source/WebCore/platform/graphics/gpu/GPURenderPassDepthAttachmentDescriptor.h (modified) (1 diff)
-
Source/WebCore/platform/graphics/gpu/GPURenderPassDescriptor.cpp (modified) (2 diffs)
-
Source/WebCore/platform/graphics/gpu/GPURenderPassDescriptor.h (modified) (1 diff)
-
Source/WebCore/platform/graphics/gpu/GPURenderPipelineColorAttachmentDescriptor.cpp (modified) (2 diffs)
-
Source/WebCore/platform/graphics/gpu/GPURenderPipelineColorAttachmentDescriptor.h (modified) (1 diff)
-
Source/WebCore/platform/graphics/gpu/GPURenderPipelineDescriptor.cpp (modified) (2 diffs)
-
Source/WebCore/platform/graphics/gpu/GPURenderPipelineDescriptor.h (modified) (1 diff)
-
Source/WebCore/platform/graphics/gpu/GPURenderPipelineState.cpp (modified) (2 diffs)
-
Source/WebCore/platform/graphics/gpu/GPURenderPipelineState.h (modified) (1 diff)
-
Source/WebCore/platform/graphics/gpu/GPUSize.h (modified) (1 diff)
-
Source/WebCore/platform/graphics/gpu/GPUTexture.cpp (modified) (2 diffs)
-
Source/WebCore/platform/graphics/gpu/GPUTexture.h (modified) (1 diff)
-
Source/WebCore/platform/graphics/gpu/GPUTextureDescriptor.cpp (modified) (2 diffs)
-
Source/WebCore/platform/graphics/gpu/GPUTextureDescriptor.h (modified) (1 diff)
-
Source/WebCore/platform/graphics/metal/GPUBufferMetal.mm (modified) (2 diffs)
-
Source/WebCore/platform/graphics/metal/GPUCommandBufferMetal.mm (modified) (2 diffs)
-
Source/WebCore/platform/graphics/metal/GPUCommandQueueMetal.mm (modified) (2 diffs)
-
Source/WebCore/platform/graphics/metal/GPUComputeCommandEncoderMetal.mm (modified) (2 diffs)
-
Source/WebCore/platform/graphics/metal/GPUComputePipelineStateMetal.mm (modified) (2 diffs)
-
Source/WebCore/platform/graphics/metal/GPUDepthStencilDescriptorMetal.mm (modified) (2 diffs)
-
Source/WebCore/platform/graphics/metal/GPUDepthStencilStateMetal.mm (modified) (3 diffs)
-
Source/WebCore/platform/graphics/metal/GPUDeviceMetal.mm (modified) (3 diffs)
-
Source/WebCore/platform/graphics/metal/GPUDrawableMetal.mm (modified) (2 diffs)
-
Source/WebCore/platform/graphics/metal/GPUFunctionMetal.mm (modified) (2 diffs)
-
Source/WebCore/platform/graphics/metal/GPULibraryMetal.mm (modified) (3 diffs)
-
Source/WebCore/platform/graphics/metal/GPURenderCommandEncoderMetal.mm (modified) (2 diffs)
-
Source/WebCore/platform/graphics/metal/GPURenderPassAttachmentDescriptorMetal.mm (modified) (2 diffs)
-
Source/WebCore/platform/graphics/metal/GPURenderPassColorAttachmentDescriptorMetal.mm (modified) (2 diffs)
-
Source/WebCore/platform/graphics/metal/GPURenderPassDepthAttachmentDescriptorMetal.mm (modified) (2 diffs)
-
Source/WebCore/platform/graphics/metal/GPURenderPassDescriptorMetal.mm (modified) (2 diffs)
-
Source/WebCore/platform/graphics/metal/GPURenderPipelineColorAttachmentDescriptorMetal.mm (modified) (2 diffs)
-
Source/WebCore/platform/graphics/metal/GPURenderPipelineDescriptorMetal.mm (modified) (2 diffs)
-
Source/WebCore/platform/graphics/metal/GPURenderPipelineStateMetal.mm (modified) (3 diffs)
-
Source/WebCore/platform/graphics/metal/GPUTextureDescriptorMetal.mm (modified) (2 diffs)
-
Source/WebCore/platform/graphics/metal/GPUTextureMetal.mm (modified) (3 diffs)
-
Source/WebCore/testing/InternalSettings.cpp (modified) (3 diffs)
-
Source/WebCore/testing/InternalSettings.h (modified) (2 diffs)
-
Source/WebCore/testing/InternalSettings.idl (modified) (1 diff)
-
Source/WebInspectorUI/ChangeLog (modified) (1 diff)
-
Source/WebInspectorUI/UserInterface/Models/Canvas.js (modified) (3 diffs)
-
Source/WebKit/ChangeLog (modified) (1 diff)
-
Source/WebKit/Configurations/FeatureDefines.xcconfig (modified) (2 diffs)
-
Source/WebKit/Shared/WebPreferences.yaml (modified) (1 diff)
-
Source/WebKit/WebProcess/InjectedBundle/InjectedBundle.cpp (modified) (1 diff)
-
Source/WebKitLegacy/mac/ChangeLog (modified) (1 diff)
-
Source/WebKitLegacy/mac/Configurations/FeatureDefines.xcconfig (modified) (2 diffs)
-
Source/WebKitLegacy/mac/WebView/WebPreferenceKeysPrivate.h (modified) (1 diff)
-
Source/WebKitLegacy/mac/WebView/WebPreferences.mm (modified) (2 diffs)
-
Source/WebKitLegacy/mac/WebView/WebPreferencesPrivate.h (modified) (1 diff)
-
Source/WebKitLegacy/mac/WebView/WebView.mm (modified) (1 diff)
-
Source/cmake/WebKitFeatures.cmake (modified) (1 diff)
-
Tools/ChangeLog (modified) (1 diff)
-
Tools/DumpRenderTree/mac/DumpRenderTree.mm (modified) (2 diffs)
-
Tools/TestWebKitAPI/Configurations/FeatureDefines.xcconfig (modified) (2 diffs)
-
Tools/TestWebKitAPI/Tests/WebCore/mac/GPUBuffer.mm (modified) (1 diff)
-
Tools/TestWebKitAPI/Tests/WebCore/mac/GPUCommandQueue.mm (modified) (1 diff)
-
Tools/TestWebKitAPI/Tests/WebCore/mac/GPUDevice.mm (modified) (1 diff)
-
Tools/TestWebKitAPI/Tests/WebCore/mac/GPUFunction.mm (modified) (1 diff)
-
Tools/TestWebKitAPI/Tests/WebCore/mac/GPULibrary.mm (modified) (1 diff)
-
Tools/WebKitTestRunner/InjectedBundle/InjectedBundle.cpp (modified) (1 diff)
-
Tools/WebKitTestRunner/InjectedBundle/TestRunner.cpp (modified) (1 diff)
-
Tools/WebKitTestRunner/InjectedBundle/TestRunner.h (modified) (1 diff)
-
Websites/webkit.org/ChangeLog (modified) (1 diff)
-
Websites/webkit.org/demos/webgpu (deleted)
-
Websites/webkit.org/demos/webmetal (added)
-
Websites/webkit.org/demos/webmetal/2d.html (copied) (copied from trunk/Websites/webkit.org/demos/webgpu/2d.html ) (2 diffs)
-
Websites/webkit.org/demos/webmetal/2d.jpg (copied) (copied from trunk/Websites/webkit.org/demos/webgpu/2d.jpg )
-
Websites/webkit.org/demos/webmetal/2d.js (copied) (copied from trunk/Websites/webkit.org/demos/webgpu/2d.js ) (4 diffs)
-
Websites/webkit.org/demos/webmetal/circle.svg (copied) (copied from trunk/Websites/webkit.org/demos/webgpu/circle.svg )
-
Websites/webkit.org/demos/webmetal/cubes.html (copied) (copied from trunk/Websites/webkit.org/demos/webgpu/cubes.html ) (2 diffs)
-
Websites/webkit.org/demos/webmetal/cubes.jpg (copied) (copied from trunk/Websites/webkit.org/demos/webgpu/cubes.jpg )
-
Websites/webkit.org/demos/webmetal/cubes.js (copied) (copied from trunk/Websites/webkit.org/demos/webgpu/cubes.js ) (6 diffs)
-
Websites/webkit.org/demos/webmetal/gl-matrix-min.js (copied) (copied from trunk/Websites/webkit.org/demos/webgpu/gl-matrix-min.js )
-
Websites/webkit.org/demos/webmetal/hello.html (copied) (copied from trunk/Websites/webkit.org/demos/webgpu/hello.html ) (2 diffs)
-
Websites/webkit.org/demos/webmetal/hello.jpg (copied) (copied from trunk/Websites/webkit.org/demos/webgpu/hello.jpg )
-
Websites/webkit.org/demos/webmetal/hello.js (copied) (copied from trunk/Websites/webkit.org/demos/webgpu/hello.js ) (4 diffs)
-
Websites/webkit.org/demos/webmetal/index.html (copied) (copied from trunk/Websites/webkit.org/demos/webgpu/index.html ) (3 diffs)
-
Websites/webkit.org/demos/webmetal/shared.css (copied) (copied from trunk/Websites/webkit.org/demos/webgpu/shared.css )
-
Websites/webkit.org/demos/webmetal/shared.js (added)
-
Websites/webkit.org/demos/webmetal/simple.html (copied) (copied from trunk/Websites/webkit.org/demos/webgpu/simple.html ) (2 diffs)
-
Websites/webkit.org/demos/webmetal/simple.jpg (copied) (copied from trunk/Websites/webkit.org/demos/webgpu/simple.jpg )
-
Websites/webkit.org/demos/webmetal/simple.js (copied) (copied from trunk/Websites/webkit.org/demos/webgpu/simple.js ) (6 diffs)
-
Websites/webkit.org/experimental-features.html (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ChangeLog
r236716 r236954 1 2018-10-08 Justin Fan <justin_fan@apple.com> 2 3 WebGPU: Rename old WebGPU prototype to WebMetal 4 https://bugs.webkit.org/show_bug.cgi?id=190325 5 6 Reviewed by Dean Jackson. 7 8 * Source/cmake/WebKitFeatures.cmake: 9 1 10 2018-10-02 Philippe Normand <pnormand@igalia.com> 2 11 -
trunk/LayoutTests/ChangeLog
r236952 r236954 1 2018-10-08 Justin Fan <justin_fan@apple.com> 2 3 WebGPU: Rename old WebGPU prototype to WebMetal 4 https://bugs.webkit.org/show_bug.cgi?id=190325 5 <rdar://problem/44990443> 6 7 Reviewed by Dean Jackson. 8 9 Rename WebGPU prototype files to WebMetal in preparation for implementing the new (Oct 2018) WebGPU interface. 10 11 * fast/canvas/webgpu/webgpu-runtime-flag-expected.txt: Removed. 12 * fast/canvas/webmetal/webmetal-dispatch-expected.txt: Renamed from LayoutTests/fast/canvas/webgpu/webgpu-dispatch-expected.txt. 13 * fast/canvas/webmetal/webmetal-dispatch.html: Renamed from LayoutTests/fast/canvas/webgpu/webgpu-dispatch.html. 14 * fast/canvas/webmetal/webmetal-runtime-flag-expected.txt: Added. 15 * fast/canvas/webmetal/webmetal-runtime-flag.html: Renamed from LayoutTests/fast/canvas/webgpu/webgpu-runtime-flag.html. 16 * inspector/canvas/create-context-webmetal-expected.txt: Renamed from LayoutTests/inspector/canvas/create-context-webgpu-expected.txt. 17 * inspector/canvas/create-context-webmetal.html: Renamed from LayoutTests/inspector/canvas/create-context-webgpu.html. 18 * inspector/canvas/resolveCanvasContext-webgpu-expected.txt: Removed. 19 * inspector/canvas/resolveCanvasContext-webmetal-expected.txt: Added. 20 * inspector/canvas/resolveCanvasContext-webmetal.html: Renamed from LayoutTests/inspector/canvas/resolveCanvasContext-webgpu.html. 21 * platform/gtk/TestExpectations: 22 * platform/ios/TestExpectations: 23 * platform/mac/TestExpectations: 24 * platform/win/TestExpectations: 25 1 26 2018-10-08 Devin Rousso <drousso@apple.com> 2 27 -
trunk/LayoutTests/fast/canvas/webmetal/webmetal-dispatch.html
r236953 r236954 39 39 } 40 40 41 window.internals.settings.setWeb GPUEnabled(true);42 let gpu = document.createElement("canvas").getContext("web gpu");41 window.internals.settings.setWebMetalEnabled(true); 42 let gpu = document.createElement("canvas").getContext("webmetal"); 43 43 let commandQueue = gpu.createCommandQueue(); 44 44 -
trunk/LayoutTests/fast/canvas/webmetal/webmetal-runtime-flag.html
r236953 r236954 19 19 } 20 20 21 window.internals.settings.setWeb GPUEnabled(true);22 var ctx = getContext("web gpu");21 window.internals.settings.setWebMetalEnabled(true); 22 var ctx = getContext("webmetal"); 23 23 if (ctx) 24 output.textContent = "PASS: Web GPUwas available when enabled.";24 output.textContent = "PASS: WebMetal was available when enabled."; 25 25 else 26 output.textContent = "FAIL: Web GPUwas not available when enabled.";26 output.textContent = "FAIL: WebMetal was not available when enabled."; 27 27 28 28 output = document.getElementById("output2"); 29 29 30 window.internals.settings.setWeb GPUEnabled(false);31 var ctx = getContext("web gpu");30 window.internals.settings.setWebMetalEnabled(false); 31 var ctx = getContext("webmetal"); 32 32 if (ctx) 33 output.textContent = "FAIL: Web GPUwas available when disabled.";33 output.textContent = "FAIL: WebMetal was available when disabled."; 34 34 else 35 output.textContent = "PASS: Web GPUwas not available when disabled.";35 output.textContent = "PASS: WebMetal was not available when disabled."; 36 36 } 37 37 -
trunk/LayoutTests/inspector/canvas/create-context-webmetal-expected.txt
r236953 r236954 1 Test that CanvasManager tracks creation and destruction of Web GPUcanvases.1 Test that CanvasManager tracks creation and destruction of WebMetal canvases. 2 2 3 3 4 == Running test suite: Canvas.CreateContextWeb GPU5 -- Running test case: Canvas.CreateContextWeb GPU.NoCanvases4 == Running test suite: Canvas.CreateContextWebMetal 5 -- Running test case: Canvas.CreateContextWebMetal.NoCanvases 6 6 PASS: CanvasManager should have no canvases. 7 7 8 -- Running test case: Canvas.CreateContextWeb GPU.Attached9 PASS: Canvas context should be Web GPU.8 -- Running test case: Canvas.CreateContextWebMetal.Attached 9 PASS: Canvas context should be WebMetal. 10 10 0: getContext - [native code] 11 11 1: createAttachedCanvas - inspector/canvas/resources/create-context-utilities.js:4:36 … … 17 17 PASS: Removed canvas has expected ID. 18 18 19 -- Running test case: Canvas.CreateContextWeb GPU.Detached20 PASS: Canvas context should be Web GPU.19 -- Running test case: Canvas.CreateContextWebMetal.Detached 20 PASS: Canvas context should be WebMetal. 21 21 0: getContext - [native code] 22 22 1: createDetachedCanvas - inspector/canvas/resources/create-context-utilities.js:8:62 … … 28 28 PASS: Removed canvas has expected ID. 29 29 30 -- Running test case: Canvas.CreateContextWeb GPU.CSSCanvas30 -- Running test case: Canvas.CreateContextWebMetal.CSSCanvas 31 31 Create CSS canvas from -webkit-canvas(css-canvas). 32 PASS: Canvas context should be Web GPU.32 PASS: Canvas context should be WebMetal. 33 33 0: getCSSCanvasContext - [native code] 34 34 1: createCSSCanvas - inspector/canvas/resources/create-context-utilities.js:12:47 -
trunk/LayoutTests/inspector/canvas/create-context-webmetal.html
r236953 r236954 7 7 <script> 8 8 if (window.internals) 9 window.internals.settings.setWeb GPUEnabled(true);9 window.internals.settings.setWebMetalEnabled(true); 10 10 11 11 function test() { 12 let suite = initializeTestSuite("Canvas.CreateContextWeb GPU");12 let suite = initializeTestSuite("Canvas.CreateContextWebMetal"); 13 13 14 14 addSimpleTestCase({ 15 15 name: "Attached", 16 expression: `createAttachedCanvas("web gpu")`,17 contextType: WI.Canvas.ContextType.Web GPU,16 expression: `createAttachedCanvas("webmetal")`, 17 contextType: WI.Canvas.ContextType.WebMetal, 18 18 }); 19 19 20 20 addSimpleTestCase({ 21 21 name: "Detached", 22 expression: `createDetachedCanvas("web gpu")`,23 contextType: WI.Canvas.ContextType.Web GPU,22 expression: `createDetachedCanvas("webmetal")`, 23 contextType: WI.Canvas.ContextType.WebMetal, 24 24 }); 25 25 26 addCSSCanvasTestCase(WI.Canvas.ContextType.Web GPU);26 addCSSCanvasTestCase(WI.Canvas.ContextType.WebMetal; 27 27 28 28 suite.runTestCasesAndFinish(); … … 31 31 </head> 32 32 <body onload="runTest()"> 33 <p>Test that CanvasManager tracks creation and destruction of Web GPUcanvases.</p>33 <p>Test that CanvasManager tracks creation and destruction of WebMetal canvases.</p> 34 34 </body> 35 35 </html> -
trunk/LayoutTests/inspector/canvas/resolveCanvasContext-webmetal.html
r236953 r236954 5 5 <script> 6 6 if (window.internals) 7 window.internals.settings.setWeb GPUEnabled(true);7 window.internals.settings.setWebMetalEnabled(true); 8 8 9 9 function load() { 10 window.contextWeb GPU = document.body.appendChild(document.createElement("canvas")).getContext("webgpu");10 window.contextWebMetal = document.body.appendChild(document.createElement("canvas")).getContext("webmetal"); 11 11 12 12 runTest(); … … 15 15 function test() 16 16 { 17 let suite = InspectorTest.createAsyncSuite("Canvas.resolveCanvasContextWeb GPU");17 let suite = InspectorTest.createAsyncSuite("Canvas.resolveCanvasContextWebMetal"); 18 18 19 19 suite.addTestCase({ 20 name: `Canvas.resolveCanvasContextWeb GPU.validIdentifier`,20 name: `Canvas.resolveCanvasContextWebMetal.validIdentifier`, 21 21 description: "Should return a valid object for the given canvas identifier.", 22 22 test(resolve, reject) { 23 let canvas = WI.canvasManager.canvases.find((canvas) => canvas.contextType === WI.Canvas.ContextType.Web GPU);23 let canvas = WI.canvasManager.canvases.find((canvas) => canvas.contextType === WI.Canvas.ContextType.WebMetal); 24 24 if (!canvas) { 25 25 reject(`Missing Canvas.`); … … 31 31 .then(({object}) => { 32 32 InspectorTest.expectEqual(object.type, "object", `Payload should have type "object".`); 33 InspectorTest.expectEqual(object.className, "Web GPURenderingContext", `Payload should have className "WebGPURenderingContext".`);33 InspectorTest.expectEqual(object.className, "WebMetalRenderingContext", `Payload should have className "WebMetalRenderingContext".`); 34 34 }) 35 35 .then(resolve, reject); … … 42 42 </head> 43 43 <body onload="load()"> 44 <p>Tests for the Canvas.resolveCanvasContext command for Web GPUcontexts.</p>44 <p>Tests for the Canvas.resolveCanvasContext command for WebMetal contexts.</p> 45 45 </body> 46 46 </html> -
trunk/LayoutTests/platform/gtk/TestExpectations
r236752 r236954 1115 1115 http/tests/local/fileapi/upload-zip-bundle-as-blob-using-open-panel.html [ Skip ] 1116 1116 1117 # Web GPUis not enabled on GTK+.1118 fast/canvas/web gpu[ Skip ]1119 inspector/canvas/create-context-web gpu.html [ Skip ]1120 inspector/canvas/resolveCanvasContext-web gpu.html [ Skip ]1117 # WebMetal is not enabled on GTK+. 1118 fast/canvas/webmetal [ Skip ] 1119 inspector/canvas/create-context-webmetal.html [ Skip ] 1120 inspector/canvas/resolveCanvasContext-webmetal.html [ Skip ] 1121 1121 1122 1122 # We don't support APPLE_PAY. -
trunk/LayoutTests/platform/ios/TestExpectations
r236937 r236954 37 37 38 38 # WebGPU is not enabled on iOS Simulator. 39 fast/canvas/web gpu40 inspector/canvas/create-context-web gpu.html [ Skip ]41 inspector/canvas/resolveCanvasContext-web gpu.html [ Skip ]39 fast/canvas/webmetal 40 inspector/canvas/create-context-webmetal.html [ Skip ] 41 inspector/canvas/resolveCanvasContext-webmetal.html [ Skip ] 42 42 43 43 # Encrypted Media Extensions are not enabled -
trunk/LayoutTests/platform/mac/TestExpectations
r236919 r236954 1043 1043 webkit.org/b/178028 inspector/canvas/create-context-2d.html [ Pass Timeout ] 1044 1044 webkit.org/b/174066 inspector/canvas/create-context-webgl2.html [ Pass Timeout ] 1045 webkit.org/b/174066 inspector/canvas/create-context-web gpu.html [ Pass Timeout ]1045 webkit.org/b/174066 inspector/canvas/create-context-webmetal.html [ Pass Timeout ] 1046 1046 webkit.org/b/174272 inspector/canvas/css-canvas-clients.html [ Pass Timeout ] 1047 1047 webkit.org/b/174066 inspector/canvas/shaderProgram-add-remove-webgl2.html [ Pass Failure Timeout ] -
trunk/LayoutTests/platform/win/TestExpectations
r236840 r236954 2442 2442 # inspector/debugger/searchInContent-linebreaks.html [ Pass Crash ] # Flaky 2443 2443 2444 inspector/canvas/create-context-web gpu.html [ Skip ]2445 inspector/canvas/resolveCanvasContext-web gpu.html [ Skip ]2444 inspector/canvas/create-context-webmetal.html [ Skip ] 2445 inspector/canvas/resolveCanvasContext-webmetal.html [ Skip ] 2446 2446 2447 2447 ################################################################################ … … 3528 3528 fast/block/positioning/025.html [ Failure ] 3529 3529 fast/block/positioning/fixed-position-stacking-context.html [ Failure ] 3530 fast/canvas/web gpu/webgpu-runtime-flag.html [ Failure ]3530 fast/canvas/webmetal/webmetal-runtime-flag.html [ Failure ] 3531 3531 fast/css/getComputedStyle/computed-style-font-family.html [ Failure ] 3532 3532 fast/css/getComputedStyle/computed-style-without-renderer.html [ Failure ] … … 3643 3643 editing/selection/character-granularity-select-text-with-click-handler.html [ Skip ] 3644 3644 editing/selection/character-granularity-selected-range-after-dismissing-selection.html [ Skip ] 3645 fast/canvas/web gpu/webgpu-dispatch.html [ Skip ]3645 fast/canvas/webmetal/webmetal-dispatch.html [ Skip ] 3646 3646 fast/dom/FileList-iterator-using-open-panel.html [ Skip ] 3647 3647 fast/forms/file/file-input-reset-using-open-panel.html [ Skip ] -
trunk/Source/JavaScriptCore/ChangeLog
r236942 r236954 1 2018-10-08 Justin Fan <justin_fan@apple.com> 2 3 WebGPU: Rename old WebGPU prototype to WebMetal 4 https://bugs.webkit.org/show_bug.cgi?id=190325 5 <rdar://problem/44990443> 6 7 Reviewed by Dean Jackson. 8 9 Rename WebGPU prototype files to WebMetal in preparation for implementing the new (Oct 2018) WebGPU interface. 10 11 * Configurations/FeatureDefines.xcconfig: 12 * inspector/protocol/Canvas.json: 13 * inspector/scripts/codegen/generator.py: 14 1 15 2018-10-08 Aditya Keerthi <akeerthi@apple.com> 2 16 -
trunk/Source/JavaScriptCore/Configurations/FeatureDefines.xcconfig
r236942 r236954 351 351 ENABLE_WEBGL2 = ENABLE_WEBGL2; 352 352 353 ENABLE_WEB GPU = $(ENABLE_WEBGPU_$(WK_PLATFORM_NAME));354 ENABLE_WEB GPU_iphoneos = ENABLE_WEBGPU;355 ENABLE_WEB GPU_watchos = ENABLE_WEBGPU;356 ENABLE_WEB GPU_appletvos = ENABLE_WEBGPU;357 ENABLE_WEB GPU_macosx = ENABLE_WEBGPU;353 ENABLE_WEBMETAL = $(ENABLE_WEBMETAL_$(WK_PLATFORM_NAME)); 354 ENABLE_WEBMETAL_iphoneos = ENABLE_WEBMETAL; 355 ENABLE_WEBMETAL_watchos = ENABLE_WEBMETAL; 356 ENABLE_WEBMETAL_appletvos = ENABLE_WEBMETAL; 357 ENABLE_WEBMETAL_macosx = ENABLE_WEBMETAL; 358 358 359 359 ENABLE_WEB_AUDIO = ENABLE_WEB_AUDIO; … … 373 373 ENABLE_XSLT = ENABLE_XSLT; 374 374 375 FEATURE_DEFINES = $(ENABLE_3D_TRANSFORMS) $(ENABLE_ACCELERATED_2D_CANVAS) $(ENABLE_ACCELERATED_OVERFLOW_SCROLLING) $(ENABLE_APPLE_PAY) $(ENABLE_APPLE_PAY_SESSION_V3) $(ENABLE_APPLE_PAY_SESSION_V4) $(ENABLE_APPLICATION_MANIFEST) $(ENABLE_ATTACHMENT_ELEMENT) $(ENABLE_AVF_CAPTIONS) $(ENABLE_CACHE_PARTITIONING) $(ENABLE_CHANNEL_MESSAGING) $(ENABLE_CONTENT_FILTERING) $(ENABLE_CSS3_TEXT) $(ENABLE_CSS_BOX_DECORATION_BREAK) $(ENABLE_CSS_COMPOSITING) $(ENABLE_CSS_DEVICE_ADAPTATION) $(ENABLE_CSS_IMAGE_ORIENTATION) $(ENABLE_CSS_IMAGE_RESOLUTION) $(ENABLE_CSS_SCROLL_SNAP) $(ENABLE_CSS_SELECTORS_LEVEL4) $(ENABLE_CSS_TRAILING_WORD) $(ENABLE_CURSOR_VISIBILITY) $(ENABLE_CUSTOM_SCHEME_HANDLER) $(ENABLE_DASHBOARD_SUPPORT) $(ENABLE_DATA_INTERACTION) $(ENABLE_DATACUE_VALUE) $(ENABLE_DATALIST_ELEMENT) $(ENABLE_DEVICE_ORIENTATION) $(ENABLE_DRAG_SUPPORT) $(ENABLE_ENCRYPTED_MEDIA) $(ENABLE_EXPERIMENTAL_FEATURES) $(ENABLE_FAST_JIT_PERMISSIONS) $(ENABLE_FILTERS_LEVEL_2) $(ENABLE_FTL_JIT) $(ENABLE_FULLSCREEN_API) $(ENABLE_GAMEPAD) $(ENABLE_GEOLOCATION) $(ENABLE_ICONDATABASE) $(ENABLE_INDEXED_DATABASE) $(ENABLE_INDEXED_DATABASE_IN_WORKERS) $(ENABLE_INPUT_TYPE_COLOR) $(ENABLE_INPUT_TYPE_DATE) $(ENABLE_INPUT_TYPE_DATETIME_INCOMPLETE) $(ENABLE_INPUT_TYPE_DATETIMELOCAL) $(ENABLE_INPUT_TYPE_MONTH) $(ENABLE_INPUT_TYPE_TIME) $(ENABLE_INPUT_TYPE_WEEK) $(ENABLE_INTERSECTION_OBSERVER) $(ENABLE_INTL) $(ENABLE_IOS_GESTURE_EVENTS) $(ENABLE_IOS_TOUCH_EVENTS) $(ENABLE_JIT) $(ENABLE_JS_ASYNC_ITERATION) $(ENABLE_KEYBOARD_CODE_ATTRIBUTE) $(ENABLE_KEYBOARD_KEY_ATTRIBUTE) $(ENABLE_LAYOUT_FORMATTING_CONTEXT) $(ENABLE_LEGACY_CSS_VENDOR_PREFIXES) $(ENABLE_LEGACY_CUSTOM_PROTOCOL_MANAGER) $(ENABLE_LEGACY_ENCRYPTED_MEDIA) $(ENABLE_LETTERPRESS) $(ENABLE_MAC_GESTURE_EVENTS) $(ENABLE_MAC_VIDEO_TOOLBOX) $(ENABLE_MATHML) $(ENABLE_MEDIA_CAPTURE) $(ENABLE_MEDIA_CONTROLS_SCRIPT) $(ENABLE_MEDIA_SESSION) $(ENABLE_MEDIA_SOURCE) $(ENABLE_MEDIA_STATISTICS) $(ENABLE_MEDIA_STREAM) $(ENABLE_METER_ELEMENT) $(ENABLE_MHTML) $(ENABLE_MOUSE_CURSOR_SCALE) $(ENABLE_NAVIGATOR_CONTENT_UTILS) $(ENABLE_NAVIGATOR_STANDALONE) $(ENABLE_NOTIFICATIONS) $(ENABLE_PAYMENT_REQUEST) $(ENABLE_PDFKIT_PLUGIN) $(ENABLE_POINTER_LOCK) $(ENABLE_PUBLIC_SUFFIX_LIST) $(ENABLE_QUOTA) $(ENABLE_REMOTE_INSPECTOR) $(ENABLE_RESOLUTION_MEDIA_QUERY) $(ENABLE_RESOURCE_USAGE) $(ENABLE_RUBBER_BANDING) $(ENABLE_SERVICE_CONTROLS) $(ENABLE_SERVICE_WORKER) $(ENABLE_SPEECH_SYNTHESIS) $(ENABLE_STREAMS_API) $(ENABLE_SUBTLE_CRYPTO) $(ENABLE_SVG_FONTS) $(ENABLE_TELEPHONE_NUMBER_DETECTION) $(ENABLE_TEXT_AUTOSIZING) $(ENABLE_TOUCH_EVENTS) $(ENABLE_USER_MESSAGE_HANDLERS) $(ENABLE_USERSELECT_ALL) $(ENABLE_VARIATION_FONTS) $(ENABLE_VIDEO) $(ENABLE_VIDEO_PRESENTATION_MODE) $(ENABLE_VIDEO_TRACK) $(ENABLE_VIDEO_USES_ELEMENT_FULLSCREEN) $(ENABLE_WEB_AUDIO) $(ENABLE_WEB_AUTHN) $(ENABLE_WEB_RTC) $(ENABLE_WEBASSEMBLY) $(ENABLE_WEBASSEMBLY_STREAMING_API) $(ENABLE_WEBGL) $(ENABLE_WEBGL2) $(ENABLE_WEB GPU) $(ENABLE_WIRELESS_PLAYBACK_TARGET) $(ENABLE_XSLT);375 FEATURE_DEFINES = $(ENABLE_3D_TRANSFORMS) $(ENABLE_ACCELERATED_2D_CANVAS) $(ENABLE_ACCELERATED_OVERFLOW_SCROLLING) $(ENABLE_APPLE_PAY) $(ENABLE_APPLE_PAY_SESSION_V3) $(ENABLE_APPLE_PAY_SESSION_V4) $(ENABLE_APPLICATION_MANIFEST) $(ENABLE_ATTACHMENT_ELEMENT) $(ENABLE_AVF_CAPTIONS) $(ENABLE_CACHE_PARTITIONING) $(ENABLE_CHANNEL_MESSAGING) $(ENABLE_CONTENT_FILTERING) $(ENABLE_CSS3_TEXT) $(ENABLE_CSS_BOX_DECORATION_BREAK) $(ENABLE_CSS_COMPOSITING) $(ENABLE_CSS_DEVICE_ADAPTATION) $(ENABLE_CSS_IMAGE_ORIENTATION) $(ENABLE_CSS_IMAGE_RESOLUTION) $(ENABLE_CSS_SCROLL_SNAP) $(ENABLE_CSS_SELECTORS_LEVEL4) $(ENABLE_CSS_TRAILING_WORD) $(ENABLE_CURSOR_VISIBILITY) $(ENABLE_CUSTOM_SCHEME_HANDLER) $(ENABLE_DASHBOARD_SUPPORT) $(ENABLE_DATA_INTERACTION) $(ENABLE_DATACUE_VALUE) $(ENABLE_DATALIST_ELEMENT) $(ENABLE_DEVICE_ORIENTATION) $(ENABLE_DRAG_SUPPORT) $(ENABLE_ENCRYPTED_MEDIA) $(ENABLE_EXPERIMENTAL_FEATURES) $(ENABLE_FAST_JIT_PERMISSIONS) $(ENABLE_FILTERS_LEVEL_2) $(ENABLE_FTL_JIT) $(ENABLE_FULLSCREEN_API) $(ENABLE_GAMEPAD) $(ENABLE_GEOLOCATION) $(ENABLE_ICONDATABASE) $(ENABLE_INDEXED_DATABASE) $(ENABLE_INDEXED_DATABASE_IN_WORKERS) $(ENABLE_INPUT_TYPE_COLOR) $(ENABLE_INPUT_TYPE_DATE) $(ENABLE_INPUT_TYPE_DATETIME_INCOMPLETE) $(ENABLE_INPUT_TYPE_DATETIMELOCAL) $(ENABLE_INPUT_TYPE_MONTH) $(ENABLE_INPUT_TYPE_TIME) $(ENABLE_INPUT_TYPE_WEEK) $(ENABLE_INTERSECTION_OBSERVER) $(ENABLE_INTL) $(ENABLE_IOS_GESTURE_EVENTS) $(ENABLE_IOS_TOUCH_EVENTS) $(ENABLE_JIT) $(ENABLE_JS_ASYNC_ITERATION) $(ENABLE_KEYBOARD_CODE_ATTRIBUTE) $(ENABLE_KEYBOARD_KEY_ATTRIBUTE) $(ENABLE_LAYOUT_FORMATTING_CONTEXT) $(ENABLE_LEGACY_CSS_VENDOR_PREFIXES) $(ENABLE_LEGACY_CUSTOM_PROTOCOL_MANAGER) $(ENABLE_LEGACY_ENCRYPTED_MEDIA) $(ENABLE_LETTERPRESS) $(ENABLE_MAC_GESTURE_EVENTS) $(ENABLE_MAC_VIDEO_TOOLBOX) $(ENABLE_MATHML) $(ENABLE_MEDIA_CAPTURE) $(ENABLE_MEDIA_CONTROLS_SCRIPT) $(ENABLE_MEDIA_SESSION) $(ENABLE_MEDIA_SOURCE) $(ENABLE_MEDIA_STATISTICS) $(ENABLE_MEDIA_STREAM) $(ENABLE_METER_ELEMENT) $(ENABLE_MHTML) $(ENABLE_MOUSE_CURSOR_SCALE) $(ENABLE_NAVIGATOR_CONTENT_UTILS) $(ENABLE_NAVIGATOR_STANDALONE) $(ENABLE_NOTIFICATIONS) $(ENABLE_PAYMENT_REQUEST) $(ENABLE_PDFKIT_PLUGIN) $(ENABLE_POINTER_LOCK) $(ENABLE_PUBLIC_SUFFIX_LIST) $(ENABLE_QUOTA) $(ENABLE_REMOTE_INSPECTOR) $(ENABLE_RESOLUTION_MEDIA_QUERY) $(ENABLE_RESOURCE_USAGE) $(ENABLE_RUBBER_BANDING) $(ENABLE_SERVICE_CONTROLS) $(ENABLE_SERVICE_WORKER) $(ENABLE_SPEECH_SYNTHESIS) $(ENABLE_STREAMS_API) $(ENABLE_SUBTLE_CRYPTO) $(ENABLE_SVG_FONTS) $(ENABLE_TELEPHONE_NUMBER_DETECTION) $(ENABLE_TEXT_AUTOSIZING) $(ENABLE_TOUCH_EVENTS) $(ENABLE_USER_MESSAGE_HANDLERS) $(ENABLE_USERSELECT_ALL) $(ENABLE_VARIATION_FONTS) $(ENABLE_VIDEO) $(ENABLE_VIDEO_PRESENTATION_MODE) $(ENABLE_VIDEO_TRACK) $(ENABLE_VIDEO_USES_ELEMENT_FULLSCREEN) $(ENABLE_WEB_AUDIO) $(ENABLE_WEB_AUTHN) $(ENABLE_WEB_RTC) $(ENABLE_WEBASSEMBLY) $(ENABLE_WEBASSEMBLY_STREAMING_API) $(ENABLE_WEBGL) $(ENABLE_WEBGL2) $(ENABLE_WEBMETAL) $(ENABLE_WIRELESS_PLAYBACK_TARGET) $(ENABLE_XSLT); -
trunk/Source/JavaScriptCore/inspector/protocol/Canvas.json
r230127 r236954 17 17 "id": "ContextType", 18 18 "type": "string", 19 "enum": ["canvas-2d", "bitmaprenderer", "webgl", "webgl2", "web gpu"],19 "enum": ["canvas-2d", "bitmaprenderer", "webgl", "webgl2", "webmetal"], 20 20 "description": "The type of rendering context backing the canvas element." 21 21 }, -
trunk/Source/JavaScriptCore/inspector/scripts/codegen/generator.py
r236321 r236954 51 51 'webgl': 'WebGL', # Canvas.ContextType.webgl 52 52 'webgl2': 'WebGL2', # Canvas.ContextType.webgl2 53 'web gpu': 'WebGPU', # Canvas.ContextType.webgpu53 'webmetal': 'WebMetal', # Canvas.ContextType.webmetal 54 54 'bitmaprenderer': 'BitmapRenderer', # Canvas.ContextType.bitmaprenderer 55 55 'webrtc': 'WebRTC', # Console.ChannelSource.webrtc -
trunk/Source/WebCore/CMakeLists.txt
r236840 r236954 791 791 html/canvas/OffscreenCanvasRenderingContext2D.idl 792 792 html/canvas/Path2D.idl 793 html/canvas/Web GPUBuffer.idl794 html/canvas/Web GPUCommandBuffer.idl795 html/canvas/Web GPUCommandQueue.idl796 html/canvas/Web GPUComputeCommandEncoder.idl797 html/canvas/Web GPUComputePipelineState.idl798 html/canvas/Web GPUDepthStencilDescriptor.idl799 html/canvas/Web GPUDepthStencilState.idl800 html/canvas/Web GPUDrawable.idl801 html/canvas/Web GPUFunction.idl802 html/canvas/Web GPULibrary.idl803 html/canvas/Web GPURenderCommandEncoder.idl804 html/canvas/Web GPURenderPassAttachmentDescriptor.idl805 html/canvas/Web GPURenderPassColorAttachmentDescriptor.idl806 html/canvas/Web GPURenderPassDepthAttachmentDescriptor.idl807 html/canvas/Web GPURenderPassDescriptor.idl808 html/canvas/Web GPURenderPipelineColorAttachmentDescriptor.idl809 html/canvas/Web GPURenderPipelineDescriptor.idl810 html/canvas/Web GPURenderPipelineState.idl811 html/canvas/Web GPURenderingContext.idl812 html/canvas/Web GPUSize.idl813 html/canvas/Web GPUTexture.idl814 html/canvas/Web GPUTextureDescriptor.idl793 html/canvas/WebMetalBuffer.idl 794 html/canvas/WebMetalCommandBuffer.idl 795 html/canvas/WebMetalCommandQueue.idl 796 html/canvas/WebMetalComputeCommandEncoder.idl 797 html/canvas/WebMetalComputePipelineState.idl 798 html/canvas/WebMetalDepthStencilDescriptor.idl 799 html/canvas/WebMetalDepthStencilState.idl 800 html/canvas/WebMetalDrawable.idl 801 html/canvas/WebMetalFunction.idl 802 html/canvas/WebMetalLibrary.idl 803 html/canvas/WebMetalRenderCommandEncoder.idl 804 html/canvas/WebMetalRenderPassAttachmentDescriptor.idl 805 html/canvas/WebMetalRenderPassColorAttachmentDescriptor.idl 806 html/canvas/WebMetalRenderPassDepthAttachmentDescriptor.idl 807 html/canvas/WebMetalRenderPassDescriptor.idl 808 html/canvas/WebMetalRenderPipelineColorAttachmentDescriptor.idl 809 html/canvas/WebMetalRenderPipelineDescriptor.idl 810 html/canvas/WebMetalRenderPipelineState.idl 811 html/canvas/WebMetalRenderingContext.idl 812 html/canvas/WebMetalSize.idl 813 html/canvas/WebMetalTexture.idl 814 html/canvas/WebMetalTextureDescriptor.idl 815 815 816 816 inspector/CommandLineAPIHost.idl -
trunk/Source/WebCore/ChangeLog
r236945 r236954 1 2018-10-08 Justin Fan <justin_fan@apple.com> 2 3 WebGPU: Rename old WebGPU prototype to WebMetal 4 https://bugs.webkit.org/show_bug.cgi?id=190325 5 <rdar://problem/44990443> 6 7 Reviewed by Dean Jackson. 8 9 Existing WebGPU tests also renamed to reflect WebGPU -> WebMetal change. 10 11 Rename WebGPU prototype files to WebMetal in preparation for implementing the new (Oct 2018) WebGPU interface. 12 13 * CMakeLists.txt: 14 * Configurations/FeatureDefines.xcconfig: 15 * DerivedSources.make: 16 * Sources.txt: 17 * SourcesCocoa.txt: 18 * WebCore.xcodeproj/project.pbxproj: 19 * bindings/js/JSWebMetalRenderPassAttachmentDescriptorCustom.cpp: Renamed from Source/WebCore/bindings/js/JSWebGPURenderPassAttachmentDescriptorCustom.cpp. 20 (WebCore::toJSNewlyCreated): 21 (WebCore::toJS): 22 * bindings/js/JSWebMetalRenderingContextCustom.cpp: Renamed from Source/WebCore/bindings/js/JSWebGPURenderingContextCustom.cpp. 23 (WebCore::JSWebMetalRenderingContext::visitAdditionalChildren): 24 * bindings/js/WebCoreBuiltinNames.h: 25 * dom/Document.cpp: 26 (WebCore::Document::getCSSCanvasContext): 27 * dom/Document.h: 28 * dom/Document.idl: 29 * html/HTMLCanvasElement.cpp: 30 (WebCore::HTMLCanvasElement::getContext): 31 (WebCore::HTMLCanvasElement::isWebMetalType): 32 (WebCore::HTMLCanvasElement::createContextWebMetal): 33 (WebCore::HTMLCanvasElement::getContextWebMetal): 34 (WebCore::HTMLCanvasElement::isWebGPUType): Deleted. 35 (WebCore::HTMLCanvasElement::createContextWebGPU): Deleted. 36 (WebCore::HTMLCanvasElement::getContextWebGPU): Deleted. 37 * html/HTMLCanvasElement.h: 38 * html/HTMLCanvasElement.idl: 39 * html/canvas/CanvasRenderingContext.h: 40 (WebCore::CanvasRenderingContext::isWebMetal const): 41 (WebCore::CanvasRenderingContext::isWebGPU const): Deleted. 42 * html/canvas/WebGPURenderingContext.cpp: Removed. 43 * html/canvas/WebMetalBuffer.cpp: Renamed from Source/WebCore/html/canvas/WebGPUBuffer.cpp. 44 (WebCore::WebMetalBuffer::create): 45 (WebCore::WebMetalBuffer::WebMetalBuffer): 46 * html/canvas/WebMetalBuffer.h: Renamed from Source/WebCore/html/canvas/WebGPUBuffer.h. 47 * html/canvas/WebMetalBuffer.idl: Renamed from Source/WebCore/html/canvas/WebGPUBuffer.idl. 48 * html/canvas/WebMetalCommandBuffer.cpp: Renamed from Source/WebCore/html/canvas/WebGPUCommandBuffer.cpp. 49 (WebCore::WebMetalCommandBuffer::create): 50 (WebCore::WebMetalCommandBuffer::WebMetalCommandBuffer): 51 (WebCore::WebMetalCommandBuffer::~WebMetalCommandBuffer): 52 (WebCore::WebMetalCommandBuffer::commit): 53 (WebCore::WebMetalCommandBuffer::presentDrawable): 54 (WebCore::WebMetalCommandBuffer::createRenderCommandEncoderWithDescriptor): 55 (WebCore::WebMetalCommandBuffer::createComputeCommandEncoder): 56 (WebCore::WebMetalCommandBuffer::completed): 57 * html/canvas/WebMetalCommandBuffer.h: Renamed from Source/WebCore/html/canvas/WebGPUCommandBuffer.h. 58 * html/canvas/WebMetalCommandBuffer.idl: Renamed from Source/WebCore/html/canvas/WebGPUCommandBuffer.idl. 59 * html/canvas/WebMetalCommandQueue.cpp: Renamed from Source/WebCore/html/canvas/WebGPUCommandQueue.cpp. 60 (WebCore::WebMetalCommandQueue::create): 61 (WebCore::WebMetalCommandQueue::WebMetalCommandQueue): 62 (WebCore::WebMetalCommandQueue::createCommandBuffer): 63 * html/canvas/WebMetalCommandQueue.h: Renamed from Source/WebCore/html/canvas/WebGPUCommandQueue.h. 64 * html/canvas/WebMetalCommandQueue.idl: Renamed from Source/WebCore/html/canvas/WebGPUCommandQueue.idl. 65 * html/canvas/WebMetalComputeCommandEncoder.cpp: Renamed from Source/WebCore/html/canvas/WebGPUComputeCommandEncoder.cpp. 66 (WebCore::GPUSizeMake): 67 (WebCore::WebMetalComputeCommandEncoder::create): 68 (WebCore::WebMetalComputeCommandEncoder::WebMetalComputeCommandEncoder): 69 (WebCore::WebMetalComputeCommandEncoder::setComputePipelineState): 70 (WebCore::WebMetalComputeCommandEncoder::setBuffer): 71 (WebCore::WebMetalComputeCommandEncoder::dispatch): 72 (WebCore::WebMetalComputeCommandEncoder::endEncoding): 73 * html/canvas/WebMetalComputeCommandEncoder.h: Renamed from Source/WebCore/html/canvas/WebGPUComputeCommandEncoder.h. 74 * html/canvas/WebMetalComputeCommandEncoder.idl: Renamed from Source/WebCore/html/canvas/WebGPUComputeCommandEncoder.idl. 75 * html/canvas/WebMetalComputePipelineState.cpp: Renamed from Source/WebCore/html/canvas/WebGPUComputePipelineState.cpp. 76 (WebCore::WebMetalComputePipelineState::create): 77 (WebCore::WebMetalComputePipelineState::WebMetalComputePipelineState): 78 * html/canvas/WebMetalComputePipelineState.h: Renamed from Source/WebCore/html/canvas/WebGPUComputePipelineState.h. 79 * html/canvas/WebMetalComputePipelineState.idl: Renamed from Source/WebCore/html/canvas/WebGPUComputePipelineState.idl. 80 * html/canvas/WebMetalDepthStencilDescriptor.cpp: Renamed from Source/WebCore/html/canvas/WebGPUDepthStencilDescriptor.cpp. 81 (WebCore::WebMetalDepthStencilDescriptor::create): 82 (WebCore::WebMetalDepthStencilDescriptor::depthWriteEnabled const): 83 (WebCore::WebMetalDepthStencilDescriptor::setDepthWriteEnabled): 84 (WebCore::WebMetalDepthStencilDescriptor::depthCompareFunction const): 85 (WebCore::WebMetalDepthStencilDescriptor::setDepthCompareFunction): 86 * html/canvas/WebMetalDepthStencilDescriptor.h: Renamed from Source/WebCore/html/canvas/WebGPUDepthStencilDescriptor.h. 87 * html/canvas/WebMetalDepthStencilDescriptor.idl: Renamed from Source/WebCore/html/canvas/WebGPUDepthStencilDescriptor.idl. 88 * html/canvas/WebMetalDepthStencilState.cpp: Renamed from Source/WebCore/html/canvas/WebGPUDepthStencilState.cpp. 89 (WebCore::WebMetalDepthStencilState::create): 90 (WebCore::WebMetalDepthStencilState::WebMetalDepthStencilState): 91 (WebCore::WebMetalDepthStencilState::label const): 92 (WebCore::WebMetalDepthStencilState::setLabel): 93 * html/canvas/WebMetalDepthStencilState.h: Renamed from Source/WebCore/html/canvas/WebGPUDepthStencilState.h. 94 * html/canvas/WebMetalDepthStencilState.idl: Renamed from Source/WebCore/html/canvas/WebGPURenderPipelineState.idl. 95 * html/canvas/WebMetalDrawable.cpp: Renamed from Source/WebCore/html/canvas/WebGPUDrawable.cpp. 96 (WebCore::WebMetalDrawable::create): 97 (WebCore::WebMetalDrawable::WebMetalDrawable): 98 * html/canvas/WebMetalDrawable.h: Renamed from Source/WebCore/html/canvas/WebGPUDrawable.h. 99 (WebCore::WebMetalDrawable::texture): 100 * html/canvas/WebMetalDrawable.idl: Renamed from Source/WebCore/html/canvas/WebGPUDrawable.idl. 101 * html/canvas/WebMetalEnums.cpp: Renamed from Source/WebCore/html/canvas/WebGPUEnums.cpp. 102 (WebCore::toWebMetalCompareFunction): 103 (WebCore::web3DCompareFunctionName): 104 (WebCore::toGPUCompareFunction): 105 * html/canvas/WebMetalEnums.h: Renamed from Source/WebCore/html/canvas/WebGPUEnums.h. 106 * html/canvas/WebMetalEnums.idl: Renamed from Source/WebCore/html/canvas/WebGPUEnums.idl. 107 * html/canvas/WebMetalFunction.cpp: Renamed from Source/WebCore/html/canvas/WebGPUFunction.cpp. 108 (WebCore::WebMetalFunction::create): 109 (WebCore::WebMetalFunction::WebMetalFunction): 110 * html/canvas/WebMetalFunction.h: Renamed from Source/WebCore/html/canvas/WebGPUFunction.h. 111 * html/canvas/WebMetalFunction.idl: Renamed from Source/WebCore/html/canvas/WebGPUFunction.idl. 112 * html/canvas/WebMetalLibrary.cpp: Renamed from Source/WebCore/html/canvas/WebGPULibrary.cpp. 113 (WebCore::WebMetalLibrary::create): 114 (WebCore::WebMetalLibrary::WebMetalLibrary): 115 (WebCore::WebMetalLibrary::functionNames const): 116 (WebCore::WebMetalLibrary::functionWithName const): 117 * html/canvas/WebMetalLibrary.h: Renamed from Source/WebCore/html/canvas/WebGPULibrary.h. 118 * html/canvas/WebMetalLibrary.idl: Renamed from Source/WebCore/html/canvas/WebGPULibrary.idl. 119 * html/canvas/WebMetalRenderCommandEncoder.cpp: Renamed from Source/WebCore/html/canvas/WebGPURenderCommandEncoder.cpp. 120 (WebCore::WebMetalRenderCommandEncoder::create): 121 (WebCore::WebMetalRenderCommandEncoder::WebMetalRenderCommandEncoder): 122 (WebCore::WebMetalRenderCommandEncoder::setRenderPipelineState): 123 (WebCore::WebMetalRenderCommandEncoder::setDepthStencilState): 124 (WebCore::WebMetalRenderCommandEncoder::setVertexBuffer): 125 (WebCore::WebMetalRenderCommandEncoder::setFragmentBuffer): 126 (WebCore::WebMetalRenderCommandEncoder::drawPrimitives): 127 (WebCore::WebMetalRenderCommandEncoder::endEncoding): 128 * html/canvas/WebMetalRenderCommandEncoder.h: Renamed from Source/WebCore/html/canvas/WebGPURenderCommandEncoder.h. 129 * html/canvas/WebMetalRenderCommandEncoder.idl: Renamed from Source/WebCore/html/canvas/WebGPURenderCommandEncoder.idl. 130 * html/canvas/WebMetalRenderPassAttachmentDescriptor.cpp: Renamed from Source/WebCore/html/canvas/WebGPURenderPassAttachmentDescriptor.cpp. 131 (WebCore::WebMetalRenderPassAttachmentDescriptor::WebMetalRenderPassAttachmentDescriptor): 132 (WebCore::WebMetalRenderPassAttachmentDescriptor::loadAction const): 133 (WebCore::WebMetalRenderPassAttachmentDescriptor::setLoadAction): 134 (WebCore::WebMetalRenderPassAttachmentDescriptor::storeAction const): 135 (WebCore::WebMetalRenderPassAttachmentDescriptor::setStoreAction): 136 (WebCore::WebMetalRenderPassAttachmentDescriptor::texture const): 137 (WebCore::WebMetalRenderPassAttachmentDescriptor::setTexture): 138 * html/canvas/WebMetalRenderPassAttachmentDescriptor.h: Renamed from Source/WebCore/html/canvas/WebGPURenderPassAttachmentDescriptor.h. 139 * html/canvas/WebMetalRenderPassAttachmentDescriptor.idl: Renamed from Source/WebCore/html/canvas/WebGPURenderPassAttachmentDescriptor.idl. 140 * html/canvas/WebMetalRenderPassColorAttachmentDescriptor.cpp: Renamed from Source/WebCore/html/canvas/WebGPURenderPassColorAttachmentDescriptor.cpp. 141 (WebCore::WebMetalRenderPassColorAttachmentDescriptor::create): 142 (WebCore::WebMetalRenderPassColorAttachmentDescriptor::WebMetalRenderPassColorAttachmentDescriptor): 143 (WebCore::WebMetalRenderPassColorAttachmentDescriptor::descriptor const): 144 (WebCore::WebMetalRenderPassColorAttachmentDescriptor::clearColor const): 145 (WebCore::WebMetalRenderPassColorAttachmentDescriptor::setClearColor): 146 * html/canvas/WebMetalRenderPassColorAttachmentDescriptor.h: Renamed from Source/WebCore/html/canvas/WebGPURenderPassColorAttachmentDescriptor.h. 147 * html/canvas/WebMetalRenderPassColorAttachmentDescriptor.idl: Renamed from Source/WebCore/html/canvas/WebGPURenderPassColorAttachmentDescriptor.idl. 148 * html/canvas/WebMetalRenderPassDepthAttachmentDescriptor.cpp: Renamed from Source/WebCore/html/canvas/WebGPURenderPassDepthAttachmentDescriptor.cpp. 149 (WebCore::WebMetalRenderPassDepthAttachmentDescriptor::create): 150 (WebCore::WebMetalRenderPassDepthAttachmentDescriptor::WebMetalRenderPassDepthAttachmentDescriptor): 151 (WebCore::WebMetalRenderPassDepthAttachmentDescriptor::clearDepth const): 152 (WebCore::WebMetalRenderPassDepthAttachmentDescriptor::setClearDepth): 153 (WebCore::WebMetalRenderPassDepthAttachmentDescriptor::descriptor const): 154 * html/canvas/WebMetalRenderPassDepthAttachmentDescriptor.h: Renamed from Source/WebCore/html/canvas/WebGPURenderPassDepthAttachmentDescriptor.h. 155 * html/canvas/WebMetalRenderPassDepthAttachmentDescriptor.idl: Renamed from Source/WebCore/html/canvas/WebGPURenderPassDepthAttachmentDescriptor.idl. 156 * html/canvas/WebMetalRenderPassDescriptor.cpp: Renamed from Source/WebCore/html/canvas/WebGPURenderPassDescriptor.cpp. 157 (WebCore::WebMetalRenderPassDescriptor::create): 158 (WebCore::WebMetalRenderPassDescriptor::depthAttachment): 159 (WebCore::WebMetalRenderPassDescriptor::colorAttachments): 160 * html/canvas/WebMetalRenderPassDescriptor.h: Renamed from Source/WebCore/html/canvas/WebGPURenderPassDescriptor.h. 161 * html/canvas/WebMetalRenderPassDescriptor.idl: Renamed from Source/WebCore/html/canvas/WebGPURenderPassDescriptor.idl. 162 * html/canvas/WebMetalRenderPipelineColorAttachmentDescriptor.cpp: Renamed from Source/WebCore/html/canvas/WebGPURenderPipelineColorAttachmentDescriptor.cpp. 163 (WebCore::WebMetalRenderPipelineColorAttachmentDescriptor::create): 164 (WebCore::WebMetalRenderPipelineColorAttachmentDescriptor::WebMetalRenderPipelineColorAttachmentDescriptor): 165 (WebCore::WebMetalRenderPipelineColorAttachmentDescriptor::pixelFormat const): 166 (WebCore::WebMetalRenderPipelineColorAttachmentDescriptor::setPixelFormat): 167 * html/canvas/WebMetalRenderPipelineColorAttachmentDescriptor.h: Renamed from Source/WebCore/html/canvas/WebGPURenderPipelineColorAttachmentDescriptor.h. 168 * html/canvas/WebMetalRenderPipelineColorAttachmentDescriptor.idl: Renamed from Source/WebCore/html/canvas/WebGPURenderPipelineColorAttachmentDescriptor.idl. 169 * html/canvas/WebMetalRenderPipelineDescriptor.cpp: Renamed from Source/WebCore/html/canvas/WebGPURenderPipelineDescriptor.cpp. 170 (WebCore::WebMetalRenderPipelineDescriptor::create): 171 (WebCore::WebMetalRenderPipelineDescriptor::vertexFunction const): 172 (WebCore::WebMetalRenderPipelineDescriptor::setVertexFunction): 173 (WebCore::WebMetalRenderPipelineDescriptor::fragmentFunction const): 174 (WebCore::WebMetalRenderPipelineDescriptor::setFragmentFunction): 175 (WebCore::WebMetalRenderPipelineDescriptor::colorAttachments): 176 (WebCore::WebMetalRenderPipelineDescriptor::depthAttachmentPixelFormat const): 177 (WebCore::WebMetalRenderPipelineDescriptor::setDepthAttachmentPixelFormat): 178 (WebCore::WebMetalRenderPipelineDescriptor::reset): 179 * html/canvas/WebMetalRenderPipelineDescriptor.h: Renamed from Source/WebCore/html/canvas/WebGPURenderPipelineDescriptor.h. 180 * html/canvas/WebMetalRenderPipelineDescriptor.idl: Renamed from Source/WebCore/html/canvas/WebGPURenderPipelineDescriptor.idl. 181 * html/canvas/WebMetalRenderPipelineState.cpp: Renamed from Source/WebCore/html/canvas/WebGPURenderPipelineState.cpp. 182 (WebCore::WebMetalRenderPipelineState::create): 183 (WebCore::WebMetalRenderPipelineState::WebMetalRenderPipelineState): 184 (WebCore::WebMetalRenderPipelineState::label const): 185 (WebCore::WebMetalRenderPipelineState::setLabel): 186 * html/canvas/WebMetalRenderPipelineState.h: Renamed from Source/WebCore/html/canvas/WebGPURenderPipelineState.h. 187 * html/canvas/WebMetalRenderPipelineState.idl: Renamed from Source/WebCore/html/canvas/WebGPUDepthStencilState.idl. 188 * html/canvas/WebMetalRenderingContext.cpp: Added. 189 (WebCore::WebMetalRenderingContext::create): 190 (WebCore::WebMetalRenderingContext::WebMetalRenderingContext): 191 (WebCore::WebMetalRenderingContext::canvas const): 192 (WebCore::WebMetalRenderingContext::initializeNewContext): 193 (WebCore::WebMetalRenderingContext::clampedCanvasSize const): 194 (WebCore::WebMetalRenderingContext::hasPendingActivity const): 195 (WebCore::WebMetalRenderingContext::stop): 196 (WebCore::WebMetalRenderingContext::activeDOMObjectName const): 197 (WebCore::WebMetalRenderingContext::canSuspendForDocumentSuspension const): 198 (WebCore::WebMetalRenderingContext::platformLayer const): 199 (WebCore::WebMetalRenderingContext::markLayerComposited): 200 (WebCore::WebMetalRenderingContext::reshape): 201 (WebCore::WebMetalRenderingContext::createLibrary): 202 (WebCore::WebMetalRenderingContext::createRenderPipelineState): 203 (WebCore::WebMetalRenderingContext::createDepthStencilState): 204 (WebCore::WebMetalRenderingContext::createComputePipelineState): 205 (WebCore::WebMetalRenderingContext::createCommandQueue): 206 (WebCore::WebMetalRenderingContext::nextDrawable): 207 (WebCore::WebMetalRenderingContext::createBuffer): 208 (WebCore::WebMetalRenderingContext::createTexture): 209 * html/canvas/WebMetalRenderingContext.h: Renamed from Source/WebCore/html/canvas/WebGPURenderingContext.h. 210 * html/canvas/WebMetalRenderingContext.idl: Renamed from Source/WebCore/html/canvas/WebGPURenderingContext.idl. 211 * html/canvas/WebMetalSize.h: Renamed from Source/WebCore/html/canvas/WebGPUSize.h. 212 * html/canvas/WebMetalSize.idl: Renamed from Source/WebCore/html/canvas/WebGPUSize.idl. 213 * html/canvas/WebMetalTexture.cpp: Renamed from Source/WebCore/html/canvas/WebGPUTexture.cpp. 214 (WebCore::WebMetalTexture::create): 215 (WebCore::WebMetalTexture::WebMetalTexture): 216 * html/canvas/WebMetalTexture.h: Renamed from Source/WebCore/html/canvas/WebGPUTexture.h. 217 * html/canvas/WebMetalTexture.idl: Renamed from Source/WebCore/html/canvas/WebGPUTexture.idl. 218 * html/canvas/WebMetalTextureDescriptor.cpp: Renamed from Source/WebCore/html/canvas/WebGPUTextureDescriptor.cpp. 219 (WebCore::WebMetalTextureDescriptor::create): 220 (WebCore::WebMetalTextureDescriptor::WebMetalTextureDescriptor): 221 (WebCore::WebMetalTextureDescriptor::width const): 222 (WebCore::WebMetalTextureDescriptor::setWidth): 223 (WebCore::WebMetalTextureDescriptor::height const): 224 (WebCore::WebMetalTextureDescriptor::setHeight): 225 (WebCore::WebMetalTextureDescriptor::sampleCount const): 226 (WebCore::WebMetalTextureDescriptor::setSampleCount): 227 (WebCore::WebMetalTextureDescriptor::textureType const): 228 (WebCore::WebMetalTextureDescriptor::setTextureType): 229 (WebCore::WebMetalTextureDescriptor::storageMode const): 230 (WebCore::WebMetalTextureDescriptor::setStorageMode): 231 (WebCore::WebMetalTextureDescriptor::usage const): 232 (WebCore::WebMetalTextureDescriptor::setUsage): 233 * html/canvas/WebMetalTextureDescriptor.h: Renamed from Source/WebCore/html/canvas/WebGPUTextureDescriptor.h. 234 * html/canvas/WebMetalTextureDescriptor.idl: Renamed from Source/WebCore/html/canvas/WebGPUTextureDescriptor.idl. 235 * inspector/InspectorCanvas.cpp: 236 (WebCore::InspectorCanvas::buildObjectForCanvas): 237 * inspector/agents/InspectorCanvasAgent.cpp: 238 (WebCore::InspectorCanvasAgent::requestContent): 239 (WebCore::contextAsScriptValue): 240 * page/RuntimeEnabledFeatures.h: 241 (WebCore::RuntimeEnabledFeatures::setWebMetalEnabled): 242 (WebCore::RuntimeEnabledFeatures::webMetalEnabled const): 243 (WebCore::RuntimeEnabledFeatures::setWebGPUEnabled): Deleted. 244 (WebCore::RuntimeEnabledFeatures::webGPUEnabled const): Deleted. 245 * platform/Logging.h: 246 * platform/graphics/ca/cocoa/PlatformCALayerCocoa.mm: 247 (WebCore::PlatformCALayerCocoa::layerTypeForPlatformLayer): 248 (WebCore::PlatformCALayerCocoa::PlatformCALayerCocoa): 249 * platform/graphics/cocoa/WebMetalLayer.h: Renamed from Source/WebCore/platform/graphics/cocoa/WebGPULayer.h. 250 * platform/graphics/cocoa/WebMetalLayer.mm: Renamed from Source/WebCore/platform/graphics/cocoa/WebGPULayer.mm. 251 (-[WebMetalLayer initWithGPUDevice:]): 252 * platform/graphics/gpu/GPUBuffer.cpp: 253 (WebCore::GPUBuffer::~GPUBuffer): 254 * platform/graphics/gpu/GPUBuffer.h: 255 * platform/graphics/gpu/GPUCommandBuffer.cpp: 256 (WebCore::GPUCommandBuffer::~GPUCommandBuffer): 257 * platform/graphics/gpu/GPUCommandBuffer.h: 258 * platform/graphics/gpu/GPUCommandQueue.cpp: 259 (WebCore::GPUCommandQueue::~GPUCommandQueue): 260 * platform/graphics/gpu/GPUCommandQueue.h: 261 * platform/graphics/gpu/GPUComputeCommandEncoder.cpp: 262 (WebCore::GPUComputeCommandEncoder::~GPUComputeCommandEncoder): 263 * platform/graphics/gpu/GPUComputeCommandEncoder.h: 264 * platform/graphics/gpu/GPUComputePipelineState.cpp: 265 (WebCore::GPUComputePipelineState::~GPUComputePipelineState): 266 * platform/graphics/gpu/GPUComputePipelineState.h: 267 * platform/graphics/gpu/GPUDepthStencilDescriptor.cpp: 268 (WebCore::GPUDepthStencilDescriptor::~GPUDepthStencilDescriptor): 269 * platform/graphics/gpu/GPUDepthStencilDescriptor.h: 270 * platform/graphics/gpu/GPUDepthStencilState.cpp: 271 (WebCore::GPUDepthStencilState::~GPUDepthStencilState): 272 * platform/graphics/gpu/GPUDepthStencilState.h: 273 * platform/graphics/gpu/GPUDevice.cpp: 274 (WebCore::GPUDevice::~GPUDevice): 275 * platform/graphics/gpu/GPUDevice.h: 276 (WebCore::GPUDevice::layer const): 277 * platform/graphics/gpu/GPUDrawable.cpp: 278 (WebCore::GPUDrawable::~GPUDrawable): 279 * platform/graphics/gpu/GPUDrawable.h: 280 * platform/graphics/gpu/GPUEnums.h: 281 * platform/graphics/gpu/GPUFunction.cpp: 282 (WebCore::GPUFunction::~GPUFunction): 283 * platform/graphics/gpu/GPUFunction.h: 284 * platform/graphics/gpu/GPULibrary.cpp: 285 (WebCore::GPULibrary::~GPULibrary): 286 * platform/graphics/gpu/GPULibrary.h: 287 * platform/graphics/gpu/GPURenderCommandEncoder.cpp: 288 (WebCore::GPURenderCommandEncoder::~GPURenderCommandEncoder): 289 * platform/graphics/gpu/GPURenderCommandEncoder.h: 290 * platform/graphics/gpu/GPURenderPassAttachmentDescriptor.cpp: 291 (WebCore::GPURenderPassAttachmentDescriptor::~GPURenderPassAttachmentDescriptor): 292 * platform/graphics/gpu/GPURenderPassAttachmentDescriptor.h: 293 * platform/graphics/gpu/GPURenderPassColorAttachmentDescriptor.cpp: 294 (WebCore::GPURenderPassColorAttachmentDescriptor::~GPURenderPassColorAttachmentDescriptor): 295 * platform/graphics/gpu/GPURenderPassColorAttachmentDescriptor.h: 296 * platform/graphics/gpu/GPURenderPassDepthAttachmentDescriptor.cpp: 297 (WebCore::GPURenderPassDepthAttachmentDescriptor::~GPURenderPassDepthAttachmentDescriptor): 298 * platform/graphics/gpu/GPURenderPassDepthAttachmentDescriptor.h: 299 * platform/graphics/gpu/GPURenderPassDescriptor.cpp: 300 (WebCore::GPURenderPassDescriptor::~GPURenderPassDescriptor): 301 * platform/graphics/gpu/GPURenderPassDescriptor.h: 302 * platform/graphics/gpu/GPURenderPipelineColorAttachmentDescriptor.cpp: 303 (WebCore::GPURenderPipelineColorAttachmentDescriptor::~GPURenderPipelineColorAttachmentDescriptor): 304 * platform/graphics/gpu/GPURenderPipelineColorAttachmentDescriptor.h: 305 * platform/graphics/gpu/GPURenderPipelineDescriptor.cpp: 306 (WebCore::GPURenderPipelineDescriptor::~GPURenderPipelineDescriptor): 307 * platform/graphics/gpu/GPURenderPipelineDescriptor.h: 308 * platform/graphics/gpu/GPURenderPipelineState.cpp: 309 (WebCore::GPURenderPipelineState::~GPURenderPipelineState): 310 * platform/graphics/gpu/GPURenderPipelineState.h: 311 * platform/graphics/gpu/GPUSize.h: 312 * platform/graphics/gpu/GPUTexture.cpp: 313 (WebCore::GPUTexture::~GPUTexture): 314 * platform/graphics/gpu/GPUTexture.h: 315 * platform/graphics/gpu/GPUTextureDescriptor.cpp: 316 (WebCore::GPUTextureDescriptor::~GPUTextureDescriptor): 317 * platform/graphics/gpu/GPUTextureDescriptor.h: 318 * platform/graphics/metal/GPUBufferMetal.mm: 319 (WebCore::GPUBuffer::GPUBuffer): 320 * platform/graphics/metal/GPUCommandBufferMetal.mm: 321 * platform/graphics/metal/GPUCommandQueueMetal.mm: 322 * platform/graphics/metal/GPUComputeCommandEncoderMetal.mm: 323 * platform/graphics/metal/GPUComputePipelineStateMetal.mm: 324 (WebCore::GPUComputePipelineState::GPUComputePipelineState): 325 * platform/graphics/metal/GPUDepthStencilDescriptorMetal.mm: 326 * platform/graphics/metal/GPUDepthStencilStateMetal.mm: 327 (WebCore::GPUDepthStencilState::setLabel const): 328 * platform/graphics/metal/GPUDeviceMetal.mm: 329 (WebCore::GPUDevice::reshape const): 330 * platform/graphics/metal/GPUDrawableMetal.mm: 331 (WebCore::GPUDrawable::release): 332 * platform/graphics/metal/GPUFunctionMetal.mm: 333 * platform/graphics/metal/GPULibraryMetal.mm: 334 (WebCore::GPULibrary::GPULibrary): 335 * platform/graphics/metal/GPURenderCommandEncoderMetal.mm: 336 (WebCore::GPURenderCommandEncoder::GPURenderCommandEncoder): 337 * platform/graphics/metal/GPURenderPassAttachmentDescriptorMetal.mm: 338 * platform/graphics/metal/GPURenderPassColorAttachmentDescriptorMetal.mm: 339 * platform/graphics/metal/GPURenderPassDepthAttachmentDescriptorMetal.mm: 340 * platform/graphics/metal/GPURenderPassDescriptorMetal.mm: 341 * platform/graphics/metal/GPURenderPipelineColorAttachmentDescriptorMetal.mm: 342 * platform/graphics/metal/GPURenderPipelineDescriptorMetal.mm: 343 * platform/graphics/metal/GPURenderPipelineStateMetal.mm: 344 (WebCore::GPURenderPipelineState::setLabel const): 345 * platform/graphics/metal/GPUTextureDescriptorMetal.mm: 346 * platform/graphics/metal/GPUTextureMetal.mm: 347 (WebCore::GPUTexture::GPUTexture): 348 * testing/InternalSettings.cpp: 349 (WebCore::InternalSettings::Backup::Backup): 350 (WebCore::InternalSettings::Backup::restoreTo): 351 (WebCore::InternalSettings::setWebMetalEnabled): 352 (WebCore::InternalSettings::setWebGPUEnabled): Deleted. 353 * testing/InternalSettings.h: 354 * testing/InternalSettings.idl: 355 1 356 2018-10-08 Dean Jackson <dino@apple.com> 2 357 -
trunk/Source/WebCore/Configurations/FeatureDefines.xcconfig
r236942 r236954 351 351 ENABLE_WEBGL2 = ENABLE_WEBGL2; 352 352 353 ENABLE_WEB GPU = $(ENABLE_WEBGPU_$(WK_PLATFORM_NAME));354 ENABLE_WEB GPU_iphoneos = ENABLE_WEBGPU;355 ENABLE_WEB GPU_watchos = ENABLE_WEBGPU;356 ENABLE_WEB GPU_appletvos = ENABLE_WEBGPU;357 ENABLE_WEB GPU_macosx = ENABLE_WEBGPU;353 ENABLE_WEBMETAL = $(ENABLE_WEBMETAL_$(WK_PLATFORM_NAME)); 354 ENABLE_WEBMETAL_iphoneos = ENABLE_WEBMETAL; 355 ENABLE_WEBMETAL_watchos = ENABLE_WEBMETAL; 356 ENABLE_WEBMETAL_appletvos = ENABLE_WEBMETAL; 357 ENABLE_WEBMETAL_macosx = ENABLE_WEBMETAL; 358 358 359 359 ENABLE_WEB_AUDIO = ENABLE_WEB_AUDIO; … … 373 373 ENABLE_XSLT = ENABLE_XSLT; 374 374 375 FEATURE_DEFINES = $(ENABLE_3D_TRANSFORMS) $(ENABLE_ACCELERATED_2D_CANVAS) $(ENABLE_ACCELERATED_OVERFLOW_SCROLLING) $(ENABLE_APPLE_PAY) $(ENABLE_APPLE_PAY_SESSION_V3) $(ENABLE_APPLE_PAY_SESSION_V4) $(ENABLE_APPLICATION_MANIFEST) $(ENABLE_ATTACHMENT_ELEMENT) $(ENABLE_AVF_CAPTIONS) $(ENABLE_CACHE_PARTITIONING) $(ENABLE_CHANNEL_MESSAGING) $(ENABLE_CONTENT_FILTERING) $(ENABLE_CSS3_TEXT) $(ENABLE_CSS_BOX_DECORATION_BREAK) $(ENABLE_CSS_COMPOSITING) $(ENABLE_CSS_DEVICE_ADAPTATION) $(ENABLE_CSS_IMAGE_ORIENTATION) $(ENABLE_CSS_IMAGE_RESOLUTION) $(ENABLE_CSS_SCROLL_SNAP) $(ENABLE_CSS_SELECTORS_LEVEL4) $(ENABLE_CSS_TRAILING_WORD) $(ENABLE_CURSOR_VISIBILITY) $(ENABLE_CUSTOM_SCHEME_HANDLER) $(ENABLE_DASHBOARD_SUPPORT) $(ENABLE_DATA_INTERACTION) $(ENABLE_DATACUE_VALUE) $(ENABLE_DATALIST_ELEMENT) $(ENABLE_DEVICE_ORIENTATION) $(ENABLE_DRAG_SUPPORT) $(ENABLE_ENCRYPTED_MEDIA) $(ENABLE_EXPERIMENTAL_FEATURES) $(ENABLE_FAST_JIT_PERMISSIONS) $(ENABLE_FILTERS_LEVEL_2) $(ENABLE_FTL_JIT) $(ENABLE_FULLSCREEN_API) $(ENABLE_GAMEPAD) $(ENABLE_GEOLOCATION) $(ENABLE_ICONDATABASE) $(ENABLE_INDEXED_DATABASE) $(ENABLE_INDEXED_DATABASE_IN_WORKERS) $(ENABLE_INPUT_TYPE_COLOR) $(ENABLE_INPUT_TYPE_DATE) $(ENABLE_INPUT_TYPE_DATETIME_INCOMPLETE) $(ENABLE_INPUT_TYPE_DATETIMELOCAL) $(ENABLE_INPUT_TYPE_MONTH) $(ENABLE_INPUT_TYPE_TIME) $(ENABLE_INPUT_TYPE_WEEK) $(ENABLE_INTERSECTION_OBSERVER) $(ENABLE_INTL) $(ENABLE_IOS_GESTURE_EVENTS) $(ENABLE_IOS_TOUCH_EVENTS) $(ENABLE_JIT) $(ENABLE_JS_ASYNC_ITERATION) $(ENABLE_KEYBOARD_CODE_ATTRIBUTE) $(ENABLE_KEYBOARD_KEY_ATTRIBUTE) $(ENABLE_LAYOUT_FORMATTING_CONTEXT) $(ENABLE_LEGACY_CSS_VENDOR_PREFIXES) $(ENABLE_LEGACY_CUSTOM_PROTOCOL_MANAGER) $(ENABLE_LEGACY_ENCRYPTED_MEDIA) $(ENABLE_LETTERPRESS) $(ENABLE_MAC_GESTURE_EVENTS) $(ENABLE_MAC_VIDEO_TOOLBOX) $(ENABLE_MATHML) $(ENABLE_MEDIA_CAPTURE) $(ENABLE_MEDIA_CONTROLS_SCRIPT) $(ENABLE_MEDIA_SESSION) $(ENABLE_MEDIA_SOURCE) $(ENABLE_MEDIA_STATISTICS) $(ENABLE_MEDIA_STREAM) $(ENABLE_METER_ELEMENT) $(ENABLE_MHTML) $(ENABLE_MOUSE_CURSOR_SCALE) $(ENABLE_NAVIGATOR_CONTENT_UTILS) $(ENABLE_NAVIGATOR_STANDALONE) $(ENABLE_NOTIFICATIONS) $(ENABLE_PAYMENT_REQUEST) $(ENABLE_PDFKIT_PLUGIN) $(ENABLE_POINTER_LOCK) $(ENABLE_PUBLIC_SUFFIX_LIST) $(ENABLE_QUOTA) $(ENABLE_REMOTE_INSPECTOR) $(ENABLE_RESOLUTION_MEDIA_QUERY) $(ENABLE_RESOURCE_USAGE) $(ENABLE_RUBBER_BANDING) $(ENABLE_SERVICE_CONTROLS) $(ENABLE_SERVICE_WORKER) $(ENABLE_SPEECH_SYNTHESIS) $(ENABLE_STREAMS_API) $(ENABLE_SUBTLE_CRYPTO) $(ENABLE_SVG_FONTS) $(ENABLE_TELEPHONE_NUMBER_DETECTION) $(ENABLE_TEXT_AUTOSIZING) $(ENABLE_TOUCH_EVENTS) $(ENABLE_USER_MESSAGE_HANDLERS) $(ENABLE_USERSELECT_ALL) $(ENABLE_VARIATION_FONTS) $(ENABLE_VIDEO) $(ENABLE_VIDEO_PRESENTATION_MODE) $(ENABLE_VIDEO_TRACK) $(ENABLE_VIDEO_USES_ELEMENT_FULLSCREEN) $(ENABLE_WEB_AUDIO) $(ENABLE_WEB_AUTHN) $(ENABLE_WEB_RTC) $(ENABLE_WEBASSEMBLY) $(ENABLE_WEBASSEMBLY_STREAMING_API) $(ENABLE_WEBGL) $(ENABLE_WEBGL2) $(ENABLE_WEB GPU) $(ENABLE_WIRELESS_PLAYBACK_TARGET) $(ENABLE_XSLT);375 FEATURE_DEFINES = $(ENABLE_3D_TRANSFORMS) $(ENABLE_ACCELERATED_2D_CANVAS) $(ENABLE_ACCELERATED_OVERFLOW_SCROLLING) $(ENABLE_APPLE_PAY) $(ENABLE_APPLE_PAY_SESSION_V3) $(ENABLE_APPLE_PAY_SESSION_V4) $(ENABLE_APPLICATION_MANIFEST) $(ENABLE_ATTACHMENT_ELEMENT) $(ENABLE_AVF_CAPTIONS) $(ENABLE_CACHE_PARTITIONING) $(ENABLE_CHANNEL_MESSAGING) $(ENABLE_CONTENT_FILTERING) $(ENABLE_CSS3_TEXT) $(ENABLE_CSS_BOX_DECORATION_BREAK) $(ENABLE_CSS_COMPOSITING) $(ENABLE_CSS_DEVICE_ADAPTATION) $(ENABLE_CSS_IMAGE_ORIENTATION) $(ENABLE_CSS_IMAGE_RESOLUTION) $(ENABLE_CSS_SCROLL_SNAP) $(ENABLE_CSS_SELECTORS_LEVEL4) $(ENABLE_CSS_TRAILING_WORD) $(ENABLE_CURSOR_VISIBILITY) $(ENABLE_CUSTOM_SCHEME_HANDLER) $(ENABLE_DASHBOARD_SUPPORT) $(ENABLE_DATA_INTERACTION) $(ENABLE_DATACUE_VALUE) $(ENABLE_DATALIST_ELEMENT) $(ENABLE_DEVICE_ORIENTATION) $(ENABLE_DRAG_SUPPORT) $(ENABLE_ENCRYPTED_MEDIA) $(ENABLE_EXPERIMENTAL_FEATURES) $(ENABLE_FAST_JIT_PERMISSIONS) $(ENABLE_FILTERS_LEVEL_2) $(ENABLE_FTL_JIT) $(ENABLE_FULLSCREEN_API) $(ENABLE_GAMEPAD) $(ENABLE_GEOLOCATION) $(ENABLE_ICONDATABASE) $(ENABLE_INDEXED_DATABASE) $(ENABLE_INDEXED_DATABASE_IN_WORKERS) $(ENABLE_INPUT_TYPE_COLOR) $(ENABLE_INPUT_TYPE_DATE) $(ENABLE_INPUT_TYPE_DATETIME_INCOMPLETE) $(ENABLE_INPUT_TYPE_DATETIMELOCAL) $(ENABLE_INPUT_TYPE_MONTH) $(ENABLE_INPUT_TYPE_TIME) $(ENABLE_INPUT_TYPE_WEEK) $(ENABLE_INTERSECTION_OBSERVER) $(ENABLE_INTL) $(ENABLE_IOS_GESTURE_EVENTS) $(ENABLE_IOS_TOUCH_EVENTS) $(ENABLE_JIT) $(ENABLE_JS_ASYNC_ITERATION) $(ENABLE_KEYBOARD_CODE_ATTRIBUTE) $(ENABLE_KEYBOARD_KEY_ATTRIBUTE) $(ENABLE_LAYOUT_FORMATTING_CONTEXT) $(ENABLE_LEGACY_CSS_VENDOR_PREFIXES) $(ENABLE_LEGACY_CUSTOM_PROTOCOL_MANAGER) $(ENABLE_LEGACY_ENCRYPTED_MEDIA) $(ENABLE_LETTERPRESS) $(ENABLE_MAC_GESTURE_EVENTS) $(ENABLE_MAC_VIDEO_TOOLBOX) $(ENABLE_MATHML) $(ENABLE_MEDIA_CAPTURE) $(ENABLE_MEDIA_CONTROLS_SCRIPT) $(ENABLE_MEDIA_SESSION) $(ENABLE_MEDIA_SOURCE) $(ENABLE_MEDIA_STATISTICS) $(ENABLE_MEDIA_STREAM) $(ENABLE_METER_ELEMENT) $(ENABLE_MHTML) $(ENABLE_MOUSE_CURSOR_SCALE) $(ENABLE_NAVIGATOR_CONTENT_UTILS) $(ENABLE_NAVIGATOR_STANDALONE) $(ENABLE_NOTIFICATIONS) $(ENABLE_PAYMENT_REQUEST) $(ENABLE_PDFKIT_PLUGIN) $(ENABLE_POINTER_LOCK) $(ENABLE_PUBLIC_SUFFIX_LIST) $(ENABLE_QUOTA) $(ENABLE_REMOTE_INSPECTOR) $(ENABLE_RESOLUTION_MEDIA_QUERY) $(ENABLE_RESOURCE_USAGE) $(ENABLE_RUBBER_BANDING) $(ENABLE_SERVICE_CONTROLS) $(ENABLE_SERVICE_WORKER) $(ENABLE_SPEECH_SYNTHESIS) $(ENABLE_STREAMS_API) $(ENABLE_SUBTLE_CRYPTO) $(ENABLE_SVG_FONTS) $(ENABLE_TELEPHONE_NUMBER_DETECTION) $(ENABLE_TEXT_AUTOSIZING) $(ENABLE_TOUCH_EVENTS) $(ENABLE_USER_MESSAGE_HANDLERS) $(ENABLE_USERSELECT_ALL) $(ENABLE_VARIATION_FONTS) $(ENABLE_VIDEO) $(ENABLE_VIDEO_PRESENTATION_MODE) $(ENABLE_VIDEO_TRACK) $(ENABLE_VIDEO_USES_ELEMENT_FULLSCREEN) $(ENABLE_WEB_AUDIO) $(ENABLE_WEB_AUTHN) $(ENABLE_WEB_RTC) $(ENABLE_WEBASSEMBLY) $(ENABLE_WEBASSEMBLY_STREAMING_API) $(ENABLE_WEBGL) $(ENABLE_WEBGL2) $(ENABLE_WEBMETAL) $(ENABLE_WIRELESS_PLAYBACK_TARGET) $(ENABLE_XSLT); -
trunk/Source/WebCore/DerivedSources.make
r236840 r236954 745 745 $(WebCore)/html/canvas/WebGLVertexArrayObject.idl \ 746 746 $(WebCore)/html/canvas/WebGLVertexArrayObjectOES.idl \ 747 $(WebCore)/html/canvas/Web GPUBuffer.idl \748 $(WebCore)/html/canvas/Web GPUCommandBuffer.idl \749 $(WebCore)/html/canvas/Web GPUCommandQueue.idl \750 $(WebCore)/html/canvas/Web GPUComputeCommandEncoder.idl \751 $(WebCore)/html/canvas/Web GPUComputePipelineState.idl \752 $(WebCore)/html/canvas/Web GPUDepthStencilDescriptor.idl \753 $(WebCore)/html/canvas/Web GPUDepthStencilState.idl \754 $(WebCore)/html/canvas/Web GPUDrawable.idl \755 $(WebCore)/html/canvas/Web GPUFunction.idl \756 $(WebCore)/html/canvas/Web GPULibrary.idl \757 $(WebCore)/html/canvas/Web GPURenderCommandEncoder.idl \758 $(WebCore)/html/canvas/Web GPURenderingContext.idl \759 $(WebCore)/html/canvas/Web GPURenderPassAttachmentDescriptor.idl \760 $(WebCore)/html/canvas/Web GPURenderPassColorAttachmentDescriptor.idl \761 $(WebCore)/html/canvas/Web GPURenderPassDepthAttachmentDescriptor.idl \762 $(WebCore)/html/canvas/Web GPURenderPassDescriptor.idl \763 $(WebCore)/html/canvas/Web GPURenderPipelineColorAttachmentDescriptor.idl \764 $(WebCore)/html/canvas/Web GPURenderPipelineDescriptor.idl \765 $(WebCore)/html/canvas/Web GPURenderPipelineState.idl \766 $(WebCore)/html/canvas/Web GPUSize.idl \767 $(WebCore)/html/canvas/Web GPUTexture.idl \768 $(WebCore)/html/canvas/Web GPUTextureDescriptor.idl \747 $(WebCore)/html/canvas/WebMetalBuffer.idl \ 748 $(WebCore)/html/canvas/WebMetalCommandBuffer.idl \ 749 $(WebCore)/html/canvas/WebMetalCommandQueue.idl \ 750 $(WebCore)/html/canvas/WebMetalComputeCommandEncoder.idl \ 751 $(WebCore)/html/canvas/WebMetalComputePipelineState.idl \ 752 $(WebCore)/html/canvas/WebMetalDepthStencilDescriptor.idl \ 753 $(WebCore)/html/canvas/WebMetalDepthStencilState.idl \ 754 $(WebCore)/html/canvas/WebMetalDrawable.idl \ 755 $(WebCore)/html/canvas/WebMetalFunction.idl \ 756 $(WebCore)/html/canvas/WebMetalLibrary.idl \ 757 $(WebCore)/html/canvas/WebMetalRenderCommandEncoder.idl \ 758 $(WebCore)/html/canvas/WebMetalRenderingContext.idl \ 759 $(WebCore)/html/canvas/WebMetalRenderPassAttachmentDescriptor.idl \ 760 $(WebCore)/html/canvas/WebMetalRenderPassColorAttachmentDescriptor.idl \ 761 $(WebCore)/html/canvas/WebMetalRenderPassDepthAttachmentDescriptor.idl \ 762 $(WebCore)/html/canvas/WebMetalRenderPassDescriptor.idl \ 763 $(WebCore)/html/canvas/WebMetalRenderPipelineColorAttachmentDescriptor.idl \ 764 $(WebCore)/html/canvas/WebMetalRenderPipelineDescriptor.idl \ 765 $(WebCore)/html/canvas/WebMetalRenderPipelineState.idl \ 766 $(WebCore)/html/canvas/WebMetalSize.idl \ 767 $(WebCore)/html/canvas/WebMetalTexture.idl \ 768 $(WebCore)/html/canvas/WebMetalTextureDescriptor.idl \ 769 769 $(WebCore)/html/track/AudioTrack.idl \ 770 770 $(WebCore)/html/track/AudioTrackList.idl \ -
trunk/Source/WebCore/PAL/ChangeLog
r236942 r236954 1 2018-10-08 Justin Fan <justin_fan@apple.com> 2 3 WebGPU: Rename old WebGPU prototype to WebMetal 4 https://bugs.webkit.org/show_bug.cgi?id=190325 5 <rdar://problem/44990443> 6 7 Reviewed by Dean Jackson. 8 9 Rename WebGPU prototype files to WebMetal in preparation for implementing the new (Oct 2018) WebGPU interface. 10 11 * Configurations/FeatureDefines.xcconfig: 12 1 13 2018-10-08 Aditya Keerthi <akeerthi@apple.com> 2 14 -
trunk/Source/WebCore/PAL/Configurations/FeatureDefines.xcconfig
r236942 r236954 351 351 ENABLE_WEBGL2 = ENABLE_WEBGL2; 352 352 353 ENABLE_WEB GPU = $(ENABLE_WEBGPU_$(WK_PLATFORM_NAME));354 ENABLE_WEB GPU_iphoneos = ENABLE_WEBGPU;355 ENABLE_WEB GPU_watchos = ENABLE_WEBGPU;356 ENABLE_WEB GPU_appletvos = ENABLE_WEBGPU;357 ENABLE_WEB GPU_macosx = ENABLE_WEBGPU;353 ENABLE_WEBMETAL = $(ENABLE_WEBMETAL_$(WK_PLATFORM_NAME)); 354 ENABLE_WEBMETAL_iphoneos = ENABLE_WEBMETAL; 355 ENABLE_WEBMETAL_watchos = ENABLE_WEBMETAL; 356 ENABLE_WEBMETAL_appletvos = ENABLE_WEBMETAL; 357 ENABLE_WEBMETAL_macosx = ENABLE_WEBMETAL; 358 358 359 359 ENABLE_WEB_AUDIO = ENABLE_WEB_AUDIO; … … 373 373 ENABLE_XSLT = ENABLE_XSLT; 374 374 375 FEATURE_DEFINES = $(ENABLE_3D_TRANSFORMS) $(ENABLE_ACCELERATED_2D_CANVAS) $(ENABLE_ACCELERATED_OVERFLOW_SCROLLING) $(ENABLE_APPLE_PAY) $(ENABLE_APPLE_PAY_SESSION_V3) $(ENABLE_APPLE_PAY_SESSION_V4) $(ENABLE_APPLICATION_MANIFEST) $(ENABLE_ATTACHMENT_ELEMENT) $(ENABLE_AVF_CAPTIONS) $(ENABLE_CACHE_PARTITIONING) $(ENABLE_CHANNEL_MESSAGING) $(ENABLE_CONTENT_FILTERING) $(ENABLE_CSS3_TEXT) $(ENABLE_CSS_BOX_DECORATION_BREAK) $(ENABLE_CSS_COMPOSITING) $(ENABLE_CSS_DEVICE_ADAPTATION) $(ENABLE_CSS_IMAGE_ORIENTATION) $(ENABLE_CSS_IMAGE_RESOLUTION) $(ENABLE_CSS_SCROLL_SNAP) $(ENABLE_CSS_SELECTORS_LEVEL4) $(ENABLE_CSS_TRAILING_WORD) $(ENABLE_CURSOR_VISIBILITY) $(ENABLE_CUSTOM_SCHEME_HANDLER) $(ENABLE_DASHBOARD_SUPPORT) $(ENABLE_DATA_INTERACTION) $(ENABLE_DATACUE_VALUE) $(ENABLE_DATALIST_ELEMENT) $(ENABLE_DEVICE_ORIENTATION) $(ENABLE_DRAG_SUPPORT) $(ENABLE_ENCRYPTED_MEDIA) $(ENABLE_EXPERIMENTAL_FEATURES) $(ENABLE_FAST_JIT_PERMISSIONS) $(ENABLE_FILTERS_LEVEL_2) $(ENABLE_FTL_JIT) $(ENABLE_FULLSCREEN_API) $(ENABLE_GAMEPAD) $(ENABLE_GEOLOCATION) $(ENABLE_ICONDATABASE) $(ENABLE_INDEXED_DATABASE) $(ENABLE_INDEXED_DATABASE_IN_WORKERS) $(ENABLE_INPUT_TYPE_COLOR) $(ENABLE_INPUT_TYPE_DATE) $(ENABLE_INPUT_TYPE_DATETIME_INCOMPLETE) $(ENABLE_INPUT_TYPE_DATETIMELOCAL) $(ENABLE_INPUT_TYPE_MONTH) $(ENABLE_INPUT_TYPE_TIME) $(ENABLE_INPUT_TYPE_WEEK) $(ENABLE_INTERSECTION_OBSERVER) $(ENABLE_INTL) $(ENABLE_IOS_GESTURE_EVENTS) $(ENABLE_IOS_TOUCH_EVENTS) $(ENABLE_JIT) $(ENABLE_JS_ASYNC_ITERATION) $(ENABLE_KEYBOARD_CODE_ATTRIBUTE) $(ENABLE_KEYBOARD_KEY_ATTRIBUTE) $(ENABLE_LAYOUT_FORMATTING_CONTEXT) $(ENABLE_LEGACY_CSS_VENDOR_PREFIXES) $(ENABLE_LEGACY_CUSTOM_PROTOCOL_MANAGER) $(ENABLE_LEGACY_ENCRYPTED_MEDIA) $(ENABLE_LETTERPRESS) $(ENABLE_MAC_GESTURE_EVENTS) $(ENABLE_MAC_VIDEO_TOOLBOX) $(ENABLE_MATHML) $(ENABLE_MEDIA_CAPTURE) $(ENABLE_MEDIA_CONTROLS_SCRIPT) $(ENABLE_MEDIA_SESSION) $(ENABLE_MEDIA_SOURCE) $(ENABLE_MEDIA_STATISTICS) $(ENABLE_MEDIA_STREAM) $(ENABLE_METER_ELEMENT) $(ENABLE_MHTML) $(ENABLE_MOUSE_CURSOR_SCALE) $(ENABLE_NAVIGATOR_CONTENT_UTILS) $(ENABLE_NAVIGATOR_STANDALONE) $(ENABLE_NOTIFICATIONS) $(ENABLE_PAYMENT_REQUEST) $(ENABLE_PDFKIT_PLUGIN) $(ENABLE_POINTER_LOCK) $(ENABLE_PUBLIC_SUFFIX_LIST) $(ENABLE_QUOTA) $(ENABLE_REMOTE_INSPECTOR) $(ENABLE_RESOLUTION_MEDIA_QUERY) $(ENABLE_RESOURCE_USAGE) $(ENABLE_RUBBER_BANDING) $(ENABLE_SERVICE_CONTROLS) $(ENABLE_SERVICE_WORKER) $(ENABLE_SPEECH_SYNTHESIS) $(ENABLE_STREAMS_API) $(ENABLE_SUBTLE_CRYPTO) $(ENABLE_SVG_FONTS) $(ENABLE_TELEPHONE_NUMBER_DETECTION) $(ENABLE_TEXT_AUTOSIZING) $(ENABLE_TOUCH_EVENTS) $(ENABLE_USER_MESSAGE_HANDLERS) $(ENABLE_USERSELECT_ALL) $(ENABLE_VARIATION_FONTS) $(ENABLE_VIDEO) $(ENABLE_VIDEO_PRESENTATION_MODE) $(ENABLE_VIDEO_TRACK) $(ENABLE_VIDEO_USES_ELEMENT_FULLSCREEN) $(ENABLE_WEB_AUDIO) $(ENABLE_WEB_AUTHN) $(ENABLE_WEB_RTC) $(ENABLE_WEBASSEMBLY) $(ENABLE_WEBASSEMBLY_STREAMING_API) $(ENABLE_WEBGL) $(ENABLE_WEBGL2) $(ENABLE_WEB GPU) $(ENABLE_WIRELESS_PLAYBACK_TARGET) $(ENABLE_XSLT);375 FEATURE_DEFINES = $(ENABLE_3D_TRANSFORMS) $(ENABLE_ACCELERATED_2D_CANVAS) $(ENABLE_ACCELERATED_OVERFLOW_SCROLLING) $(ENABLE_APPLE_PAY) $(ENABLE_APPLE_PAY_SESSION_V3) $(ENABLE_APPLE_PAY_SESSION_V4) $(ENABLE_APPLICATION_MANIFEST) $(ENABLE_ATTACHMENT_ELEMENT) $(ENABLE_AVF_CAPTIONS) $(ENABLE_CACHE_PARTITIONING) $(ENABLE_CHANNEL_MESSAGING) $(ENABLE_CONTENT_FILTERING) $(ENABLE_CSS3_TEXT) $(ENABLE_CSS_BOX_DECORATION_BREAK) $(ENABLE_CSS_COMPOSITING) $(ENABLE_CSS_DEVICE_ADAPTATION) $(ENABLE_CSS_IMAGE_ORIENTATION) $(ENABLE_CSS_IMAGE_RESOLUTION) $(ENABLE_CSS_SCROLL_SNAP) $(ENABLE_CSS_SELECTORS_LEVEL4) $(ENABLE_CSS_TRAILING_WORD) $(ENABLE_CURSOR_VISIBILITY) $(ENABLE_CUSTOM_SCHEME_HANDLER) $(ENABLE_DASHBOARD_SUPPORT) $(ENABLE_DATA_INTERACTION) $(ENABLE_DATACUE_VALUE) $(ENABLE_DATALIST_ELEMENT) $(ENABLE_DEVICE_ORIENTATION) $(ENABLE_DRAG_SUPPORT) $(ENABLE_ENCRYPTED_MEDIA) $(ENABLE_EXPERIMENTAL_FEATURES) $(ENABLE_FAST_JIT_PERMISSIONS) $(ENABLE_FILTERS_LEVEL_2) $(ENABLE_FTL_JIT) $(ENABLE_FULLSCREEN_API) $(ENABLE_GAMEPAD) $(ENABLE_GEOLOCATION) $(ENABLE_ICONDATABASE) $(ENABLE_INDEXED_DATABASE) $(ENABLE_INDEXED_DATABASE_IN_WORKERS) $(ENABLE_INPUT_TYPE_COLOR) $(ENABLE_INPUT_TYPE_DATE) $(ENABLE_INPUT_TYPE_DATETIME_INCOMPLETE) $(ENABLE_INPUT_TYPE_DATETIMELOCAL) $(ENABLE_INPUT_TYPE_MONTH) $(ENABLE_INPUT_TYPE_TIME) $(ENABLE_INPUT_TYPE_WEEK) $(ENABLE_INTERSECTION_OBSERVER) $(ENABLE_INTL) $(ENABLE_IOS_GESTURE_EVENTS) $(ENABLE_IOS_TOUCH_EVENTS) $(ENABLE_JIT) $(ENABLE_JS_ASYNC_ITERATION) $(ENABLE_KEYBOARD_CODE_ATTRIBUTE) $(ENABLE_KEYBOARD_KEY_ATTRIBUTE) $(ENABLE_LAYOUT_FORMATTING_CONTEXT) $(ENABLE_LEGACY_CSS_VENDOR_PREFIXES) $(ENABLE_LEGACY_CUSTOM_PROTOCOL_MANAGER) $(ENABLE_LEGACY_ENCRYPTED_MEDIA) $(ENABLE_LETTERPRESS) $(ENABLE_MAC_GESTURE_EVENTS) $(ENABLE_MAC_VIDEO_TOOLBOX) $(ENABLE_MATHML) $(ENABLE_MEDIA_CAPTURE) $(ENABLE_MEDIA_CONTROLS_SCRIPT) $(ENABLE_MEDIA_SESSION) $(ENABLE_MEDIA_SOURCE) $(ENABLE_MEDIA_STATISTICS) $(ENABLE_MEDIA_STREAM) $(ENABLE_METER_ELEMENT) $(ENABLE_MHTML) $(ENABLE_MOUSE_CURSOR_SCALE) $(ENABLE_NAVIGATOR_CONTENT_UTILS) $(ENABLE_NAVIGATOR_STANDALONE) $(ENABLE_NOTIFICATIONS) $(ENABLE_PAYMENT_REQUEST) $(ENABLE_PDFKIT_PLUGIN) $(ENABLE_POINTER_LOCK) $(ENABLE_PUBLIC_SUFFIX_LIST) $(ENABLE_QUOTA) $(ENABLE_REMOTE_INSPECTOR) $(ENABLE_RESOLUTION_MEDIA_QUERY) $(ENABLE_RESOURCE_USAGE) $(ENABLE_RUBBER_BANDING) $(ENABLE_SERVICE_CONTROLS) $(ENABLE_SERVICE_WORKER) $(ENABLE_SPEECH_SYNTHESIS) $(ENABLE_STREAMS_API) $(ENABLE_SUBTLE_CRYPTO) $(ENABLE_SVG_FONTS) $(ENABLE_TELEPHONE_NUMBER_DETECTION) $(ENABLE_TEXT_AUTOSIZING) $(ENABLE_TOUCH_EVENTS) $(ENABLE_USER_MESSAGE_HANDLERS) $(ENABLE_USERSELECT_ALL) $(ENABLE_VARIATION_FONTS) $(ENABLE_VIDEO) $(ENABLE_VIDEO_PRESENTATION_MODE) $(ENABLE_VIDEO_TRACK) $(ENABLE_VIDEO_USES_ELEMENT_FULLSCREEN) $(ENABLE_WEB_AUDIO) $(ENABLE_WEB_AUTHN) $(ENABLE_WEB_RTC) $(ENABLE_WEBASSEMBLY) $(ENABLE_WEBASSEMBLY_STREAMING_API) $(ENABLE_WEBGL) $(ENABLE_WEBGL2) $(ENABLE_WEBMETAL) $(ENABLE_WIRELESS_PLAYBACK_TARGET) $(ENABLE_XSLT); -
trunk/Source/WebCore/Sources.txt
r236914 r236954 456 456 bindings/js/JSWebGL2RenderingContextCustom.cpp 457 457 bindings/js/JSWebGLRenderingContextCustom.cpp 458 bindings/js/JSWeb GPURenderPassAttachmentDescriptorCustom.cpp459 bindings/js/JSWeb GPURenderingContextCustom.cpp458 bindings/js/JSWebMetalRenderPassAttachmentDescriptorCustom.cpp 459 bindings/js/JSWebMetalRenderingContextCustom.cpp 460 460 bindings/js/JSWindowProxy.cpp 461 461 bindings/js/JSWorkerGlobalScopeBase.cpp … … 1112 1112 html/canvas/Path2D.cpp 1113 1113 html/canvas/PlaceholderRenderingContext.cpp 1114 html/canvas/Web GPUBuffer.cpp1115 html/canvas/Web GPUCommandBuffer.cpp1116 html/canvas/Web GPUCommandQueue.cpp1117 html/canvas/Web GPUComputeCommandEncoder.cpp1118 html/canvas/Web GPUComputePipelineState.cpp1119 html/canvas/Web GPUDepthStencilDescriptor.cpp1120 html/canvas/Web GPUDepthStencilState.cpp1121 html/canvas/Web GPUDrawable.cpp1122 html/canvas/Web GPUEnums.cpp1123 html/canvas/Web GPUFunction.cpp1124 html/canvas/Web GPULibrary.cpp1125 html/canvas/Web GPURenderCommandEncoder.cpp1126 html/canvas/Web GPURenderPassAttachmentDescriptor.cpp1127 html/canvas/Web GPURenderPassColorAttachmentDescriptor.cpp1128 html/canvas/Web GPURenderPassDepthAttachmentDescriptor.cpp1129 html/canvas/Web GPURenderPassDescriptor.cpp1130 html/canvas/Web GPURenderPipelineColorAttachmentDescriptor.cpp1131 html/canvas/Web GPURenderPipelineDescriptor.cpp1132 html/canvas/Web GPURenderPipelineState.cpp1133 html/canvas/Web GPURenderingContext.cpp1134 html/canvas/Web GPUTexture.cpp1135 html/canvas/Web GPUTextureDescriptor.cpp1114 html/canvas/WebMetalBuffer.cpp 1115 html/canvas/WebMetalCommandBuffer.cpp 1116 html/canvas/WebMetalCommandQueue.cpp 1117 html/canvas/WebMetalComputeCommandEncoder.cpp 1118 html/canvas/WebMetalComputePipelineState.cpp 1119 html/canvas/WebMetalDepthStencilDescriptor.cpp 1120 html/canvas/WebMetalDepthStencilState.cpp 1121 html/canvas/WebMetalDrawable.cpp 1122 html/canvas/WebMetalEnums.cpp 1123 html/canvas/WebMetalFunction.cpp 1124 html/canvas/WebMetalLibrary.cpp 1125 html/canvas/WebMetalRenderCommandEncoder.cpp 1126 html/canvas/WebMetalRenderPassAttachmentDescriptor.cpp 1127 html/canvas/WebMetalRenderPassColorAttachmentDescriptor.cpp 1128 html/canvas/WebMetalRenderPassDepthAttachmentDescriptor.cpp 1129 html/canvas/WebMetalRenderPassDescriptor.cpp 1130 html/canvas/WebMetalRenderPipelineColorAttachmentDescriptor.cpp 1131 html/canvas/WebMetalRenderPipelineDescriptor.cpp 1132 html/canvas/WebMetalRenderPipelineState.cpp 1133 html/canvas/WebMetalRenderingContext.cpp 1134 html/canvas/WebMetalTexture.cpp 1135 html/canvas/WebMetalTextureDescriptor.cpp 1136 1136 1137 1137 html/forms/FileIconLoader.cpp … … 3145 3145 JSWaveShaperNode.cpp 3146 3146 JSWebAnimation.cpp 3147 JSWeb GPUBuffer.cpp3148 JSWeb GPUCommandBuffer.cpp3149 JSWeb GPUCommandQueue.cpp3150 JSWeb GPUComputeCommandEncoder.cpp3151 JSWeb GPUComputePipelineState.cpp3152 JSWeb GPUDepthStencilDescriptor.cpp3153 JSWeb GPUDepthStencilState.cpp3154 JSWeb GPUDrawable.cpp3155 JSWeb GPUFunction.cpp3156 JSWeb GPULibrary.cpp3157 JSWeb GPURenderCommandEncoder.cpp3158 JSWeb GPURenderPassAttachmentDescriptor.cpp3159 JSWeb GPURenderPassColorAttachmentDescriptor.cpp3160 JSWeb GPURenderPassDepthAttachmentDescriptor.cpp3161 JSWeb GPURenderPassDescriptor.cpp3162 JSWeb GPURenderPipelineColorAttachmentDescriptor.cpp3163 JSWeb GPURenderPipelineDescriptor.cpp3164 JSWeb GPURenderPipelineState.cpp3165 JSWeb GPURenderingContext.cpp3166 JSWeb GPUSize.cpp3167 JSWeb GPUTexture.cpp3168 JSWeb GPUTextureDescriptor.cpp3147 JSWebMetalBuffer.cpp 3148 JSWebMetalCommandBuffer.cpp 3149 JSWebMetalCommandQueue.cpp 3150 JSWebMetalComputeCommandEncoder.cpp 3151 JSWebMetalComputePipelineState.cpp 3152 JSWebMetalDepthStencilDescriptor.cpp 3153 JSWebMetalDepthStencilState.cpp 3154 JSWebMetalDrawable.cpp 3155 JSWebMetalFunction.cpp 3156 JSWebMetalLibrary.cpp 3157 JSWebMetalRenderCommandEncoder.cpp 3158 JSWebMetalRenderPassAttachmentDescriptor.cpp 3159 JSWebMetalRenderPassColorAttachmentDescriptor.cpp 3160 JSWebMetalRenderPassDepthAttachmentDescriptor.cpp 3161 JSWebMetalRenderPassDescriptor.cpp 3162 JSWebMetalRenderPipelineColorAttachmentDescriptor.cpp 3163 JSWebMetalRenderPipelineDescriptor.cpp 3164 JSWebMetalRenderPipelineState.cpp 3165 JSWebMetalRenderingContext.cpp 3166 JSWebMetalSize.cpp 3167 JSWebMetalTexture.cpp 3168 JSWebMetalTextureDescriptor.cpp 3169 3169 JSWebKitAnimationEvent.cpp 3170 3170 JSWebKitCSSMatrix.cpp -
trunk/Source/WebCore/SourcesCocoa.txt
r236938 r236954 312 312 platform/graphics/cocoa/WebCoreDecompressionSession.mm 313 313 platform/graphics/cocoa/WebGLLayer.mm 314 platform/graphics/cocoa/Web GPULayer.mm314 platform/graphics/cocoa/WebMetalLayer.mm 315 315 platform/graphics/cocoa/TextTrackRepresentationCocoa.mm 316 316 -
trunk/Source/WebCore/WebCore.xcodeproj/project.pbxproj
r236943 r236954 909 909 314BE3A71B3103FB00141982 /* NamedImageGeneratedImage.h in Headers */ = {isa = PBXBuildFile; fileRef = 314BE3A51B3103FB00141982 /* NamedImageGeneratedImage.h */; }; 910 910 316BDB861E6E0A2700DE0D5A /* GPUDevice.h in Headers */ = {isa = PBXBuildFile; fileRef = 316BDB851E6E0A2100DE0D5A /* GPUDevice.h */; settings = {ATTRIBUTES = (Private, ); }; }; 911 316BDB8C1E6E153000DE0D5A /* Web GPULayer.h in Headers */ = {isa = PBXBuildFile; fileRef = 316BDB8A1E6E153000DE0D5A /* WebGPULayer.h */; };911 316BDB8C1E6E153000DE0D5A /* WebMetalLayer.h in Headers */ = {isa = PBXBuildFile; fileRef = 316BDB8A1E6E153000DE0D5A /* WebMetalLayer.h */; }; 912 912 316BDB951E70C89700DE0D5A /* GPUFunction.h in Headers */ = {isa = PBXBuildFile; fileRef = 316BDB931E70C89700DE0D5A /* GPUFunction.h */; settings = {ATTRIBUTES = (Private, ); }; }; 913 913 316BDB9B1E70CBBF00DE0D5A /* GPULibrary.h in Headers */ = {isa = PBXBuildFile; fileRef = 316BDB991E70CBBF00DE0D5A /* GPULibrary.h */; settings = {ATTRIBUTES = (Private, ); }; }; … … 6832 6832 316BDB851E6E0A2100DE0D5A /* GPUDevice.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = GPUDevice.h; sourceTree = "<group>"; }; 6833 6833 316BDB881E6E141C00DE0D5A /* GPUDeviceMetal.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = GPUDeviceMetal.mm; sourceTree = "<group>"; }; 6834 316BDB891E6E153000DE0D5A /* WebGPULayer.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = WebGPULayer.mm; sourceTree = "<group>"; }; 6835 316BDB8A1E6E153000DE0D5A /* WebGPULayer.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = WebGPULayer.h; sourceTree = "<group>"; }; 6834 316BDB8A1E6E153000DE0D5A /* WebMetalLayer.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = WebMetalLayer.h; sourceTree = "<group>"; }; 6836 6835 316BDB921E70C89700DE0D5A /* GPUFunction.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = GPUFunction.cpp; sourceTree = "<group>"; }; 6837 6836 316BDB931E70C89700DE0D5A /* GPUFunction.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = GPUFunction.h; sourceTree = "<group>"; }; … … 13597 13596 D01A27AB10C9BFD800026A42 /* SpaceSplitString.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = SpaceSplitString.cpp; sourceTree = "<group>"; }; 13598 13597 D01A27AC10C9BFD800026A42 /* SpaceSplitString.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SpaceSplitString.h; sourceTree = "<group>"; }; 13598 D02F854E21682A4A0088EE74 /* WebMetalCommandQueue.idl */ = {isa = PBXFileReference; lastKnownFileType = text; path = WebMetalCommandQueue.idl; sourceTree = "<group>"; }; 13599 D02F855021682A560088EE74 /* WebMetalComputeCommandEncoder.idl */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = WebMetalComputeCommandEncoder.idl; sourceTree = "<group>"; }; 13600 D02F855121682A560088EE74 /* WebMetalComputePipelineState.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = WebMetalComputePipelineState.h; sourceTree = "<group>"; }; 13601 D02F855221682A910088EE74 /* WebMetalRenderPipelineState.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = WebMetalRenderPipelineState.h; sourceTree = "<group>"; }; 13602 D02F855321682A910088EE74 /* WebMetalRenderPassDescriptor.cpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = WebMetalRenderPassDescriptor.cpp; sourceTree = "<group>"; }; 13603 D02F855421682A910088EE74 /* WebMetalRenderingContext.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = WebMetalRenderingContext.h; sourceTree = "<group>"; }; 13604 D02F855521682A920088EE74 /* WebMetalDepthStencilDescriptor.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = WebMetalDepthStencilDescriptor.h; sourceTree = "<group>"; }; 13605 D02F855621682A920088EE74 /* WebMetalSize.idl */ = {isa = PBXFileReference; lastKnownFileType = text; path = WebMetalSize.idl; sourceTree = "<group>"; }; 13606 D02F855721682A930088EE74 /* WebMetalRenderPassAttachmentDescriptor.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = WebMetalRenderPassAttachmentDescriptor.h; sourceTree = "<group>"; }; 13607 D02F855821682A930088EE74 /* WebMetalTexture.idl */ = {isa = PBXFileReference; lastKnownFileType = text; path = WebMetalTexture.idl; sourceTree = "<group>"; }; 13608 D02F855921682A940088EE74 /* WebMetalRenderPassColorAttachmentDescriptor.cpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = WebMetalRenderPassColorAttachmentDescriptor.cpp; sourceTree = "<group>"; }; 13609 D02F855A21682A940088EE74 /* WebMetalRenderingContext.idl */ = {isa = PBXFileReference; lastKnownFileType = text; path = WebMetalRenderingContext.idl; sourceTree = "<group>"; }; 13610 D02F855B21682A940088EE74 /* WebMetalComputePipelineState.cpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = WebMetalComputePipelineState.cpp; sourceTree = "<group>"; }; 13611 D02F855C21682A950088EE74 /* WebMetalTextureDescriptor.idl */ = {isa = PBXFileReference; lastKnownFileType = text; path = WebMetalTextureDescriptor.idl; sourceTree = "<group>"; }; 13612 D02F855D21682A950088EE74 /* WebMetalRenderPassColorAttachmentDescriptor.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = WebMetalRenderPassColorAttachmentDescriptor.h; sourceTree = "<group>"; }; 13613 D02F855E21682A960088EE74 /* WebMetalRenderPipelineDescriptor.cpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = WebMetalRenderPipelineDescriptor.cpp; sourceTree = "<group>"; }; 13614 D02F855F21682A960088EE74 /* WebMetalRenderPipelineState.cpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = WebMetalRenderPipelineState.cpp; sourceTree = "<group>"; }; 13615 D02F856021682A970088EE74 /* WebMetalRenderPassColorAttachmentDescriptor.idl */ = {isa = PBXFileReference; lastKnownFileType = text; path = WebMetalRenderPassColorAttachmentDescriptor.idl; sourceTree = "<group>"; }; 13616 D02F856121682A970088EE74 /* WebMetalRenderPassAttachmentDescriptor.idl */ = {isa = PBXFileReference; lastKnownFileType = text; path = WebMetalRenderPassAttachmentDescriptor.idl; sourceTree = "<group>"; }; 13617 D02F856221682A980088EE74 /* WebMetalRenderCommandEncoder.cpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = WebMetalRenderCommandEncoder.cpp; sourceTree = "<group>"; }; 13618 D02F856321682A980088EE74 /* WebMetalRenderCommandEncoder.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = WebMetalRenderCommandEncoder.h; sourceTree = "<group>"; }; 13619 D02F856421682A980088EE74 /* WebMetalDepthStencilState.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = WebMetalDepthStencilState.h; sourceTree = "<group>"; }; 13620 D02F856521682A990088EE74 /* WebMetalDepthStencilState.cpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = WebMetalDepthStencilState.cpp; sourceTree = "<group>"; }; 13621 D02F856621682A990088EE74 /* WebMetalRenderPipelineColorAttachmentDescriptor.cpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = WebMetalRenderPipelineColorAttachmentDescriptor.cpp; sourceTree = "<group>"; }; 13622 D02F856721682A9A0088EE74 /* WebMetalRenderPipelineState.idl */ = {isa = PBXFileReference; lastKnownFileType = text; path = WebMetalRenderPipelineState.idl; sourceTree = "<group>"; }; 13623 D02F856821682A9A0088EE74 /* WebMetalRenderPassDepthAttachmentDescriptor.idl */ = {isa = PBXFileReference; lastKnownFileType = text; path = WebMetalRenderPassDepthAttachmentDescriptor.idl; sourceTree = "<group>"; }; 13624 D02F856921682A9B0088EE74 /* WebMetalRenderPassDepthAttachmentDescriptor.cpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = WebMetalRenderPassDepthAttachmentDescriptor.cpp; sourceTree = "<group>"; }; 13625 D02F856A21682A9B0088EE74 /* WebMetalTextureDescriptor.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = WebMetalTextureDescriptor.h; sourceTree = "<group>"; }; 13626 D02F856B21682A9C0088EE74 /* WebMetalRenderPassDescriptor.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = WebMetalRenderPassDescriptor.h; sourceTree = "<group>"; }; 13627 D02F856C21682A9C0088EE74 /* WebMetalLibrary.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = WebMetalLibrary.h; sourceTree = "<group>"; }; 13628 D02F856D21682A9C0088EE74 /* WebMetalSize.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = WebMetalSize.h; sourceTree = "<group>"; }; 13629 D02F856E21682A9D0088EE74 /* WebMetalTextureDescriptor.cpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = WebMetalTextureDescriptor.cpp; sourceTree = "<group>"; }; 13630 D02F856F21682A9D0088EE74 /* WebMetalDrawable.idl */ = {isa = PBXFileReference; lastKnownFileType = text; path = WebMetalDrawable.idl; sourceTree = "<group>"; }; 13631 D02F857021682A9E0088EE74 /* WebMetalEnums.cpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = WebMetalEnums.cpp; sourceTree = "<group>"; }; 13632 D02F857121682A9E0088EE74 /* WebMetalRenderPassAttachmentDescriptor.cpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = WebMetalRenderPassAttachmentDescriptor.cpp; sourceTree = "<group>"; }; 13633 D02F857221682A9E0088EE74 /* WebMetalLibrary.idl */ = {isa = PBXFileReference; lastKnownFileType = text; path = WebMetalLibrary.idl; sourceTree = "<group>"; }; 13634 D02F857321682A9F0088EE74 /* WebMetalTexture.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = WebMetalTexture.h; sourceTree = "<group>"; }; 13635 D02F857421682A9F0088EE74 /* WebMetalEnums.idl */ = {isa = PBXFileReference; lastKnownFileType = text; path = WebMetalEnums.idl; sourceTree = "<group>"; }; 13636 D02F857521682AA00088EE74 /* WebMetalEnums.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = WebMetalEnums.h; sourceTree = "<group>"; }; 13637 D02F857621682AA00088EE74 /* WebMetalDrawable.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = WebMetalDrawable.h; sourceTree = "<group>"; }; 13638 D02F857721682AA10088EE74 /* WebMetalDepthStencilState.idl */ = {isa = PBXFileReference; lastKnownFileType = text; path = WebMetalDepthStencilState.idl; sourceTree = "<group>"; }; 13639 D02F857821682AA10088EE74 /* WebMetalDepthStencilDescriptor.idl */ = {isa = PBXFileReference; lastKnownFileType = text; path = WebMetalDepthStencilDescriptor.idl; sourceTree = "<group>"; }; 13640 D02F857921682AA20088EE74 /* WebMetalFunction.cpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = WebMetalFunction.cpp; sourceTree = "<group>"; }; 13641 D02F857A21682AA20088EE74 /* WebMetalFunction.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = WebMetalFunction.h; sourceTree = "<group>"; }; 13642 D02F857B21682AA20088EE74 /* WebMetalLibrary.cpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = WebMetalLibrary.cpp; sourceTree = "<group>"; }; 13643 D02F857C21682AA30088EE74 /* WebMetalRenderPipelineDescriptor.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = WebMetalRenderPipelineDescriptor.h; sourceTree = "<group>"; }; 13644 D02F857D21682AA30088EE74 /* WebMetalRenderPassDepthAttachmentDescriptor.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = WebMetalRenderPassDepthAttachmentDescriptor.h; sourceTree = "<group>"; }; 13645 D02F857E21682AA40088EE74 /* WebMetalRenderPassDescriptor.idl */ = {isa = PBXFileReference; lastKnownFileType = text; path = WebMetalRenderPassDescriptor.idl; sourceTree = "<group>"; }; 13646 D02F857F21682AA40088EE74 /* WebMetalDrawable.cpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = WebMetalDrawable.cpp; sourceTree = "<group>"; }; 13647 D02F858021682AA40088EE74 /* WebMetalRenderPipelineDescriptor.idl */ = {isa = PBXFileReference; lastKnownFileType = text; path = WebMetalRenderPipelineDescriptor.idl; sourceTree = "<group>"; }; 13648 D02F858121682AA50088EE74 /* WebMetalRenderCommandEncoder.idl */ = {isa = PBXFileReference; lastKnownFileType = text; path = WebMetalRenderCommandEncoder.idl; sourceTree = "<group>"; }; 13649 D02F858221682AA50088EE74 /* WebMetalTexture.cpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = WebMetalTexture.cpp; sourceTree = "<group>"; }; 13650 D02F858321682AA60088EE74 /* WebMetalComputePipelineState.idl */ = {isa = PBXFileReference; lastKnownFileType = text; path = WebMetalComputePipelineState.idl; sourceTree = "<group>"; }; 13651 D02F858421682AA60088EE74 /* WebMetalDepthStencilDescriptor.cpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = WebMetalDepthStencilDescriptor.cpp; sourceTree = "<group>"; }; 13652 D02F858521682AA70088EE74 /* WebMetalRenderPipelineColorAttachmentDescriptor.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = WebMetalRenderPipelineColorAttachmentDescriptor.h; sourceTree = "<group>"; }; 13653 D02F858621682AA70088EE74 /* WebMetalRenderPipelineColorAttachmentDescriptor.idl */ = {isa = PBXFileReference; lastKnownFileType = text; path = WebMetalRenderPipelineColorAttachmentDescriptor.idl; sourceTree = "<group>"; }; 13654 D02F858721682AA70088EE74 /* WebMetalRenderingContext.cpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = WebMetalRenderingContext.cpp; sourceTree = "<group>"; }; 13655 D02F858821682AA80088EE74 /* WebMetalFunction.idl */ = {isa = PBXFileReference; lastKnownFileType = text; path = WebMetalFunction.idl; sourceTree = "<group>"; }; 13599 13656 D036DD8D208FFC0C00F9F4B2 /* WebGLCompressedTextureASTC.idl */ = {isa = PBXFileReference; lastKnownFileType = text; path = WebGLCompressedTextureASTC.idl; sourceTree = "<group>"; }; 13657 D045AD1D2168230B000A6E9B /* WebMetalLayer.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = WebMetalLayer.mm; sourceTree = "<group>"; }; 13658 D045AD1E21682449000A6E9B /* JSWebMetalRenderPassAttachmentDescriptorCustom.cpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = JSWebMetalRenderPassAttachmentDescriptorCustom.cpp; sourceTree = "<group>"; }; 13659 D045AD1F21682449000A6E9B /* JSWebMetalRenderingContextCustom.cpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = JSWebMetalRenderingContextCustom.cpp; sourceTree = "<group>"; }; 13660 D045AD2021682474000A6E9B /* WebMetalComputeCommandEncoder.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = WebMetalComputeCommandEncoder.h; sourceTree = "<group>"; }; 13661 D045AD2121682474000A6E9B /* WebMetalBuffer.cpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = WebMetalBuffer.cpp; sourceTree = "<group>"; }; 13662 D045AD2221682474000A6E9B /* WebMetalCommandBuffer.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = WebMetalCommandBuffer.h; sourceTree = "<group>"; }; 13663 D045AD2321682475000A6E9B /* WebMetalCommandQueue.cpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = WebMetalCommandQueue.cpp; sourceTree = "<group>"; }; 13600 13664 D05CED270A40BB2C00C5AF38 /* FormatBlockCommand.cpp */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.cpp.cpp; path = FormatBlockCommand.cpp; sourceTree = "<group>"; }; 13601 13665 D05CED280A40BB2C00C5AF38 /* FormatBlockCommand.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = FormatBlockCommand.h; sourceTree = "<group>"; }; … … 13616 13680 D0BD4F5A1408850F006839B6 /* DictationCommandIOS.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = DictationCommandIOS.cpp; sourceTree = "<group>"; }; 13617 13681 D0BD4F5B1408850F006839B6 /* DictationCommandIOS.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = DictationCommandIOS.h; sourceTree = "<group>"; }; 13682 D0CAAE98216824A6001C91C7 /* WebMetalBuffer.idl */ = {isa = PBXFileReference; lastKnownFileType = text; path = WebMetalBuffer.idl; sourceTree = "<group>"; }; 13683 D0CAAE9A216824A6001C91C7 /* WebMetalCommandBuffer.idl */ = {isa = PBXFileReference; lastKnownFileType = text; path = WebMetalCommandBuffer.idl; sourceTree = "<group>"; }; 13684 D0CAAE9B216824A7001C91C7 /* WebMetalCommandQueue.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = WebMetalCommandQueue.h; sourceTree = "<group>"; }; 13685 D0CAAE9C216824A7001C91C7 /* WebMetalComputeCommandEncoder.cpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = WebMetalComputeCommandEncoder.cpp; sourceTree = "<group>"; }; 13686 D0CAAE9D216824A7001C91C7 /* WebMetalBuffer.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = WebMetalBuffer.h; sourceTree = "<group>"; }; 13687 D0CAAE9E216824A8001C91C7 /* WebMetalCommandBuffer.cpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = WebMetalCommandBuffer.cpp; sourceTree = "<group>"; }; 13618 13688 D0EDA772143E303C0028E383 /* CachedRawResource.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = CachedRawResource.cpp; sourceTree = "<group>"; }; 13619 13689 D0EDA773143E303C0028E383 /* CachedRawResource.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = CachedRawResource.h; sourceTree = "<group>"; }; … … 17632 17702 31A089021E737B4D003B6609 /* WebGPUTextureDescriptor.h */, 17633 17703 31A089031E737B4D003B6609 /* WebGPUTextureDescriptor.idl */, 17704 D045AD2121682474000A6E9B /* WebMetalBuffer.cpp */, 17705 D0CAAE9D216824A7001C91C7 /* WebMetalBuffer.h */, 17706 D0CAAE98216824A6001C91C7 /* WebMetalBuffer.idl */, 17707 D0CAAE9E216824A8001C91C7 /* WebMetalCommandBuffer.cpp */, 17708 D045AD2221682474000A6E9B /* WebMetalCommandBuffer.h */, 17709 D0CAAE9A216824A6001C91C7 /* WebMetalCommandBuffer.idl */, 17710 D045AD2321682475000A6E9B /* WebMetalCommandQueue.cpp */, 17711 D0CAAE9B216824A7001C91C7 /* WebMetalCommandQueue.h */, 17712 D02F854E21682A4A0088EE74 /* WebMetalCommandQueue.idl */, 17713 D0CAAE9C216824A7001C91C7 /* WebMetalComputeCommandEncoder.cpp */, 17714 D045AD2021682474000A6E9B /* WebMetalComputeCommandEncoder.h */, 17715 D02F855021682A560088EE74 /* WebMetalComputeCommandEncoder.idl */, 17716 D02F855B21682A940088EE74 /* WebMetalComputePipelineState.cpp */, 17717 D02F855121682A560088EE74 /* WebMetalComputePipelineState.h */, 17718 D02F858321682AA60088EE74 /* WebMetalComputePipelineState.idl */, 17719 D02F858421682AA60088EE74 /* WebMetalDepthStencilDescriptor.cpp */, 17720 D02F855521682A920088EE74 /* WebMetalDepthStencilDescriptor.h */, 17721 D02F857821682AA10088EE74 /* WebMetalDepthStencilDescriptor.idl */, 17722 D02F856521682A990088EE74 /* WebMetalDepthStencilState.cpp */, 17723 D02F856421682A980088EE74 /* WebMetalDepthStencilState.h */, 17724 D02F857721682AA10088EE74 /* WebMetalDepthStencilState.idl */, 17725 D02F857F21682AA40088EE74 /* WebMetalDrawable.cpp */, 17726 D02F857621682AA00088EE74 /* WebMetalDrawable.h */, 17727 D02F856F21682A9D0088EE74 /* WebMetalDrawable.idl */, 17728 D02F857021682A9E0088EE74 /* WebMetalEnums.cpp */, 17729 D02F857521682AA00088EE74 /* WebMetalEnums.h */, 17730 D02F857421682A9F0088EE74 /* WebMetalEnums.idl */, 17731 D02F857921682AA20088EE74 /* WebMetalFunction.cpp */, 17732 D02F857A21682AA20088EE74 /* WebMetalFunction.h */, 17733 D02F858821682AA80088EE74 /* WebMetalFunction.idl */, 17734 D02F857B21682AA20088EE74 /* WebMetalLibrary.cpp */, 17735 D02F856C21682A9C0088EE74 /* WebMetalLibrary.h */, 17736 D02F857221682A9E0088EE74 /* WebMetalLibrary.idl */, 17737 D02F856221682A980088EE74 /* WebMetalRenderCommandEncoder.cpp */, 17738 D02F856321682A980088EE74 /* WebMetalRenderCommandEncoder.h */, 17739 D02F858121682AA50088EE74 /* WebMetalRenderCommandEncoder.idl */, 17740 D02F858721682AA70088EE74 /* WebMetalRenderingContext.cpp */, 17741 D02F855421682A910088EE74 /* WebMetalRenderingContext.h */, 17742 D02F855A21682A940088EE74 /* WebMetalRenderingContext.idl */, 17743 D02F857121682A9E0088EE74 /* WebMetalRenderPassAttachmentDescriptor.cpp */, 17744 D02F855721682A930088EE74 /* WebMetalRenderPassAttachmentDescriptor.h */, 17745 D02F856121682A970088EE74 /* WebMetalRenderPassAttachmentDescriptor.idl */, 17746 D02F855921682A940088EE74 /* WebMetalRenderPassColorAttachmentDescriptor.cpp */, 17747 D02F855D21682A950088EE74 /* WebMetalRenderPassColorAttachmentDescriptor.h */, 17748 D02F856021682A970088EE74 /* WebMetalRenderPassColorAttachmentDescriptor.idl */, 17749 D02F856921682A9B0088EE74 /* WebMetalRenderPassDepthAttachmentDescriptor.cpp */, 17750 D02F857D21682AA30088EE74 /* WebMetalRenderPassDepthAttachmentDescriptor.h */, 17751 D02F856821682A9A0088EE74 /* WebMetalRenderPassDepthAttachmentDescriptor.idl */, 17752 D02F855321682A910088EE74 /* WebMetalRenderPassDescriptor.cpp */, 17753 D02F856B21682A9C0088EE74 /* WebMetalRenderPassDescriptor.h */, 17754 D02F857E21682AA40088EE74 /* WebMetalRenderPassDescriptor.idl */, 17755 D02F856621682A990088EE74 /* WebMetalRenderPipelineColorAttachmentDescriptor.cpp */, 17756 D02F858521682AA70088EE74 /* WebMetalRenderPipelineColorAttachmentDescriptor.h */, 17757 D02F858621682AA70088EE74 /* WebMetalRenderPipelineColorAttachmentDescriptor.idl */, 17758 D02F855E21682A960088EE74 /* WebMetalRenderPipelineDescriptor.cpp */, 17759 D02F857C21682AA30088EE74 /* WebMetalRenderPipelineDescriptor.h */, 17760 D02F858021682AA40088EE74 /* WebMetalRenderPipelineDescriptor.idl */, 17761 D02F855F21682A960088EE74 /* WebMetalRenderPipelineState.cpp */, 17762 D02F855221682A910088EE74 /* WebMetalRenderPipelineState.h */, 17763 D02F856721682A9A0088EE74 /* WebMetalRenderPipelineState.idl */, 17764 D02F856D21682A9C0088EE74 /* WebMetalSize.h */, 17765 D02F855621682A920088EE74 /* WebMetalSize.idl */, 17766 D02F858221682AA50088EE74 /* WebMetalTexture.cpp */, 17767 D02F857321682A9F0088EE74 /* WebMetalTexture.h */, 17768 D02F855821682A930088EE74 /* WebMetalTexture.idl */, 17769 D02F856E21682A9D0088EE74 /* WebMetalTextureDescriptor.cpp */, 17770 D02F856A21682A9B0088EE74 /* WebMetalTextureDescriptor.h */, 17771 D02F855C21682A950088EE74 /* WebMetalTextureDescriptor.idl */, 17634 17772 ); 17635 17773 path = canvas; … … 24041 24179 49FFBF3D11C93EE3006A7118 /* WebGLLayer.h */, 24042 24180 49FFBF3E11C93EE3006A7118 /* WebGLLayer.mm */, 24043 316BDB8A1E6E153000DE0D5A /* Web GPULayer.h */,24044 316BDB891E6E153000DE0D5A /* WebGPULayer.mm */,24181 316BDB8A1E6E153000DE0D5A /* WebMetalLayer.h */, 24182 D045AD1D2168230B000A6E9B /* WebMetalLayer.mm */, 24045 24183 ); 24046 24184 path = cocoa; … … 24134 24272 46BCBBC02085007F00710638 /* JSRemoteDOMWindowBase.h */, 24135 24273 931AE3B81FB80EAE00F5EFB2 /* JSValueInWrappedObject.h */, 24274 D045AD1F21682449000A6E9B /* JSWebMetalRenderingContextCustom.cpp */, 24275 D045AD1E21682449000A6E9B /* JSWebMetalRenderPassAttachmentDescriptorCustom.cpp */, 24136 24276 BCBFB53A0DCD29CF0019B3E5 /* JSWindowProxy.cpp */, 24137 24277 BCBFB53B0DCD29CF0019B3E5 /* JSWindowProxy.h */, … … 31115 31255 6F995A261A7078B100A735F4 /* WebGLVertexArrayObject.h in Headers */, 31116 31256 77A17A7812F28642004E02F6 /* WebGLVertexArrayObjectOES.h in Headers */, 31117 316BDB8C1E6E153000DE0D5A /* WebGPULayer.h in Headers */,31118 31257 A5B81CB71FAA44620037D1E6 /* WebHeapAgent.h in Headers */, 31119 31258 A5840E25187B8AC200843B10 /* WebInjectedScriptHost.h in Headers */, … … 31137 31276 0709D7951AE55A29004E42F8 /* WebMediaSessionManagerClient.h in Headers */, 31138 31277 0709D7931AE5557E004E42F8 /* WebMediaSessionManagerMac.h in Headers */, 31278 316BDB8C1E6E153000DE0D5A /* WebMetalLayer.h in Headers */, 31139 31279 E1A3162D134BC32D007C9A4F /* WebNSAttributedStringExtras.h in Headers */, 31140 31280 CD5896E21CD2B15100B3BCC8 /* WebPlaybackControlsManager.h in Headers */, -
trunk/Source/WebCore/bindings/js/JSWebMetalRenderPassAttachmentDescriptorCustom.cpp
r236953 r236954 25 25 26 26 #include "config.h" 27 #include "JSWeb GPURenderPassAttachmentDescriptor.h"27 #include "JSWebMetalRenderPassAttachmentDescriptor.h" 28 28 29 #if ENABLE(WEB GPU)29 #if ENABLE(WEBMETAL) 30 30 31 31 #include "JSDOMBinding.h" 32 #include "JSWeb GPURenderPassColorAttachmentDescriptor.h"33 #include "JSWeb GPURenderPassDepthAttachmentDescriptor.h"34 #include "Web GPURenderPassColorAttachmentDescriptor.h"35 #include "Web GPURenderPassDepthAttachmentDescriptor.h"32 #include "JSWebMetalRenderPassColorAttachmentDescriptor.h" 33 #include "JSWebMetalRenderPassDepthAttachmentDescriptor.h" 34 #include "WebMetalRenderPassColorAttachmentDescriptor.h" 35 #include "WebMetalRenderPassDepthAttachmentDescriptor.h" 36 36 37 37 namespace WebCore { 38 38 39 JSC::JSValue toJSNewlyCreated(JSC::ExecState*, JSDOMGlobalObject* globalObject, Ref<Web GPURenderPassAttachmentDescriptor>&& object)39 JSC::JSValue toJSNewlyCreated(JSC::ExecState*, JSDOMGlobalObject* globalObject, Ref<WebMetalRenderPassAttachmentDescriptor>&& object) 40 40 { 41 41 if (object->isColorAttachmentDescriptor()) 42 return createWrapper<Web GPURenderPassColorAttachmentDescriptor>(globalObject, WTFMove(object));43 return createWrapper<Web GPURenderPassDepthAttachmentDescriptor>(globalObject, WTFMove(object));42 return createWrapper<WebMetalRenderPassColorAttachmentDescriptor>(globalObject, WTFMove(object)); 43 return createWrapper<WebMetalRenderPassDepthAttachmentDescriptor>(globalObject, WTFMove(object)); 44 44 } 45 45 46 JSValue toJS(ExecState* state, JSDOMGlobalObject* globalObject, Web GPURenderPassAttachmentDescriptor& object)46 JSValue toJS(ExecState* state, JSDOMGlobalObject* globalObject, WebMetalRenderPassAttachmentDescriptor& object) 47 47 { 48 48 return wrap(state, globalObject, object); -
trunk/Source/WebCore/bindings/js/JSWebMetalRenderingContextCustom.cpp
r236953 r236954 25 25 26 26 #include "config.h" 27 #include "JSWeb GPURenderingContext.h"27 #include "JSWebMetalRenderingContext.h" 28 28 29 #if ENABLE(WEB GPU)29 #if ENABLE(WEBMETAL) 30 30 31 31 … … 33 33 using namespace JSC; 34 34 35 void JSWeb GPURenderingContext::visitAdditionalChildren(SlotVisitor& visitor)35 void JSWebMetalRenderingContext::visitAdditionalChildren(SlotVisitor& visitor) 36 36 { 37 37 visitor.addOpaqueRoot(&wrapped()); -
trunk/Source/WebCore/bindings/js/WebCoreBuiltinNames.h
r236840 r236954 165 165 macro(WebGL2RenderingContext) \ 166 166 macro(WebGLVertexArrayObject) \ 167 macro(Web GPUBuffer) \168 macro(Web GPUCommandBuffer) \169 macro(Web GPUCommandQueue) \170 macro(Web GPUComputeCommandEncoder) \171 macro(Web GPUComputePipelineState) \172 macro(Web GPUDepthStencilDescriptor) \173 macro(Web GPUDepthStencilState) \174 macro(Web GPUDrawable) \175 macro(Web GPUFunction) \176 macro(Web GPULibrary) \177 macro(Web GPURenderCommandEncoder) \178 macro(Web GPURenderPassAttachmentDescriptor) \179 macro(Web GPURenderPassColorAttachmentDescriptor) \180 macro(Web GPURenderPassDepthAttachmentDescriptor) \181 macro(Web GPURenderPassDescriptor) \182 macro(Web GPURenderPipelineColorAttachmentDescriptor) \183 macro(Web GPURenderPipelineDescriptor) \184 macro(Web GPURenderPipelineState) \185 macro(Web GPURenderingContext) \186 macro(Web GPUSize) \187 macro(Web GPUTexture) \188 macro(Web GPUTextureDescriptor) \167 macro(WebMetalBuffer) \ 168 macro(WebMetalCommandBuffer) \ 169 macro(WebMetalCommandQueue) \ 170 macro(WebMetalComputeCommandEncoder) \ 171 macro(WebMetalComputePipelineState) \ 172 macro(WebMetalDepthStencilDescriptor) \ 173 macro(WebMetalDepthStencilState) \ 174 macro(WebMetalDrawable) \ 175 macro(WebMetalFunction) \ 176 macro(WebMetalLibrary) \ 177 macro(WebMetalRenderCommandEncoder) \ 178 macro(WebMetalRenderPassAttachmentDescriptor) \ 179 macro(WebMetalRenderPassColorAttachmentDescriptor) \ 180 macro(WebMetalRenderPassDepthAttachmentDescriptor) \ 181 macro(WebMetalRenderPassDescriptor) \ 182 macro(WebMetalRenderPipelineColorAttachmentDescriptor) \ 183 macro(WebMetalRenderPipelineDescriptor) \ 184 macro(WebMetalRenderPipelineState) \ 185 macro(WebMetalRenderingContext) \ 186 macro(WebMetalSize) \ 187 macro(WebMetalTexture) \ 188 macro(WebMetalTextureDescriptor) \ 189 189 macro(WebKitMediaKeyError) \ 190 190 macro(WebKitMediaKeyMessageEvent) \ -
trunk/Source/WebCore/dom/Document.cpp
r236888 r236954 310 310 #include "WebGL2RenderingContext.h" 311 311 #endif 312 #if ENABLE(WEB GPU)313 #include "Web GPURenderingContext.h"312 #if ENABLE(WEBMETAL) 313 #include "WebMetalRenderingContext.h" 314 314 #endif 315 315 … … 5830 5830 return RenderingContext { RefPtr<WebGL2RenderingContext> { &downcast<WebGL2RenderingContext>(*context) } }; 5831 5831 #endif 5832 #if ENABLE(WEB GPU)5833 if (is<Web GPURenderingContext>(*context))5834 return RenderingContext { RefPtr<Web GPURenderingContext> { &downcast<WebGPURenderingContext>(*context) } };5832 #if ENABLE(WEBMETAL) 5833 if (is<WebMetalRenderingContext>(*context)) 5834 return RenderingContext { RefPtr<WebMetalRenderingContext> { &downcast<WebMetalRenderingContext>(*context) } }; 5835 5835 #endif 5836 5836 -
trunk/Source/WebCore/dom/Document.h
r236888 r236954 191 191 class WebGL2RenderingContext; 192 192 class WebGLRenderingContext; 193 class Web GPURenderingContext;193 class WebMetalRenderingContext; 194 194 class WindowProxy; 195 195 class XPathEvaluator; … … 318 318 RefPtr<WebGL2RenderingContext>, 319 319 #endif 320 #if ENABLE(WEB GPU)321 RefPtr<Web GPURenderingContext>,320 #if ENABLE(WEBMETAL) 321 RefPtr<WebMetalRenderingContext>, 322 322 #endif 323 323 RefPtr<ImageBitmapRenderingContext>, -
trunk/Source/WebCore/dom/Document.idl
r236550 r236954 26 26 WebGL2RenderingContext or 27 27 #endif 28 #if defined(ENABLE_WEB GPU) && ENABLE_WEBGPU29 Web GPURenderingContext or28 #if defined(ENABLE_WEBMETAL) && ENABLE_WEBMETAL 29 WebMetalRenderingContext or 30 30 #endif 31 31 ImageBitmapRenderingContext or -
trunk/Source/WebCore/html/HTMLCanvasElement.cpp
r236074 r236954 76 76 #endif 77 77 78 #if ENABLE(WEB GPU)79 #include "Web GPURenderingContext.h"78 #if ENABLE(WEBMETAL) 79 #include "WebMetalRenderingContext.h" 80 80 #endif 81 81 … … 239 239 #endif 240 240 241 #if ENABLE(WEB GPU)242 if (m_context->isWeb GPU()) {243 if (!isWeb GPUType(contextId))241 #if ENABLE(WEBMETAL) 242 if (m_context->isWebMetal()) { 243 if (!isWebMetalType(contextId)) 244 244 return std::optional<RenderingContext> { std::nullopt }; 245 return std::optional<RenderingContext> { RefPtr<Web GPURenderingContext> { &downcast<WebGPURenderingContext>(*m_context) } };245 return std::optional<RenderingContext> { RefPtr<WebMetalRenderingContext> { &downcast<WebMetalRenderingContext>(*m_context) } }; 246 246 } 247 247 #endif … … 288 288 #endif 289 289 290 #if ENABLE(WEB GPU)291 if (isWeb GPUType(contextId)) {292 auto context = createContextWeb GPU(contextId);290 #if ENABLE(WEBMETAL) 291 if (isWebMetalType(contextId)) { 292 auto context = createContextWebMetal(contextId); 293 293 if (!context) 294 294 return std::optional<RenderingContext> { std::nullopt }; 295 return std::optional<RenderingContext> { RefPtr<Web GPURenderingContext> { context } };295 return std::optional<RenderingContext> { RefPtr<WebMetalRenderingContext> { context } }; 296 296 } 297 297 #endif … … 308 308 return getContextBitmapRenderer(type); 309 309 310 #if ENABLE(WEB GPU)311 if (HTMLCanvasElement::isWeb GPUType(type) && RuntimeEnabledFeatures::sharedFeatures().webGPUEnabled())312 return getContextWeb GPU(type);310 #if ENABLE(WEBMETAL) 311 if (HTMLCanvasElement::isWebMetalType(type) && RuntimeEnabledFeatures::sharedFeatures().webMetalEnabled()) 312 return getContextWebMetal(type); 313 313 #endif 314 314 … … 438 438 #endif // ENABLE(WEBGL) 439 439 440 #if ENABLE(WEB GPU)441 442 bool HTMLCanvasElement::isWeb GPUType(const String& type)443 { 444 return type == "web gpu";445 } 446 447 Web GPURenderingContext* HTMLCanvasElement::createContextWebGPU(const String& type)448 { 449 ASSERT_UNUSED(type, HTMLCanvasElement::isWeb GPUType(type));440 #if ENABLE(WEBMETAL) 441 442 bool HTMLCanvasElement::isWebMetalType(const String& type) 443 { 444 return type == "webmetal"; 445 } 446 447 WebMetalRenderingContext* HTMLCanvasElement::createContextWebMetal(const String& type) 448 { 449 ASSERT_UNUSED(type, HTMLCanvasElement::isWebMetalType(type)); 450 450 ASSERT(!m_context); 451 451 452 if (!RuntimeEnabledFeatures::sharedFeatures().web GPUEnabled())452 if (!RuntimeEnabledFeatures::sharedFeatures().webMetalEnabled()) 453 453 return nullptr; 454 454 455 m_context = Web GPURenderingContext::create(*this);455 m_context = WebMetalRenderingContext::create(*this); 456 456 if (m_context) { 457 457 // Need to make sure a RenderLayer and compositing layer get created for the Canvas. … … 459 459 } 460 460 461 return static_cast<Web GPURenderingContext*>(m_context.get());462 } 463 464 Web GPURenderingContext* HTMLCanvasElement::getContextWebGPU(const String& type)465 { 466 ASSERT_UNUSED(type, HTMLCanvasElement::isWeb GPUType(type));467 468 if (!RuntimeEnabledFeatures::sharedFeatures().web GPUEnabled())461 return static_cast<WebMetalRenderingContext*>(m_context.get()); 462 } 463 464 WebMetalRenderingContext* HTMLCanvasElement::getContextWebMetal(const String& type) 465 { 466 ASSERT_UNUSED(type, HTMLCanvasElement::isWebMetalType(type)); 467 468 if (!RuntimeEnabledFeatures::sharedFeatures().webMetalEnabled()) 469 469 return nullptr; 470 470 471 if (m_context && !m_context->isWeb GPU())471 if (m_context && !m_context->isWebMetal()) 472 472 return nullptr; 473 473 474 474 if (!m_context) 475 return createContextWeb GPU(type);476 return static_cast<Web GPURenderingContext*>(m_context.get());475 return createContextWebMetal(type); 476 return static_cast<WebMetalRenderingContext*>(m_context.get()); 477 477 } 478 478 #endif -
trunk/Source/WebCore/html/HTMLCanvasElement.h
r229694 r236954 52 52 class MediaStream; 53 53 class WebGLRenderingContextBase; 54 class Web GPURenderingContext;54 class WebMetalRenderingContext; 55 55 struct UncachedString; 56 56 … … 98 98 WebGLRenderingContextBase* getContextWebGL(const String&, WebGLContextAttributes&& = { }); 99 99 #endif 100 #if ENABLE(WEB GPU)101 static bool isWeb GPUType(const String&);102 Web GPURenderingContext* createContextWebGPU(const String&);103 Web GPURenderingContext* getContextWebGPU(const String&);100 #if ENABLE(WEBMETAL) 101 static bool isWebMetalType(const String&); 102 WebMetalRenderingContext* createContextWebMetal(const String&); 103 WebMetalRenderingContext* getContextWebMetal(const String&); 104 104 #endif 105 105 -
trunk/Source/WebCore/html/HTMLCanvasElement.idl
r222997 r236954 32 32 WebGL2RenderingContext or 33 33 #endif 34 #if defined(ENABLE_WEB GPU) && ENABLE_WEBGPU35 Web GPURenderingContext or34 #if defined(ENABLE_WEBMETAL) && ENABLE_WEBMETAL 35 WebMetalRenderingContext or 36 36 #endif 37 37 ImageBitmapRenderingContext or -
trunk/Source/WebCore/html/canvas/CanvasRenderingContext.h
r230229 r236954 56 56 virtual bool isWebGL2() const { return false; } 57 57 bool isWebGL() const { return isWebGL1() || isWebGL2(); } 58 #if ENABLE(WEB GPU)59 virtual bool isWeb GPU() const { return false; }58 #if ENABLE(WEBMETAL) 59 virtual bool isWebMetal() const { return false; } 60 60 #endif 61 61 virtual bool isGPUBased() const { return false; } -
trunk/Source/WebCore/html/canvas/WebMetalBuffer.cpp
r236953 r236954 25 25 26 26 #include "config.h" 27 #include "Web GPUBuffer.h"27 #include "WebMetalBuffer.h" 28 28 29 #if ENABLE(WEB GPU)29 #if ENABLE(WEBMETAL) 30 30 31 31 namespace WebCore { 32 32 33 RefPtr<Web GPUBuffer> WebGPUBuffer::create(GPUBuffer&& buffer)33 RefPtr<WebMetalBuffer> WebMetalBuffer::create(GPUBuffer&& buffer) 34 34 { 35 35 // FIXME: Consider returning null rather than a buffer with length 0 and contents null when creation fails. 36 return adoptRef(*new Web GPUBuffer(WTFMove(buffer)));36 return adoptRef(*new WebMetalBuffer(WTFMove(buffer))); 37 37 } 38 38 39 Web GPUBuffer::WebGPUBuffer(GPUBuffer&& buffer)39 WebMetalBuffer::WebMetalBuffer(GPUBuffer&& buffer) 40 40 : m_buffer { WTFMove(buffer) } 41 41 { -
trunk/Source/WebCore/html/canvas/WebMetalBuffer.h
r236953 r236954 26 26 #pragma once 27 27 28 #if ENABLE(WEB GPU)28 #if ENABLE(WEBMETAL) 29 29 30 30 #include "GPUBuffer.h" … … 34 34 namespace WebCore { 35 35 36 class Web GPUBuffer : public RefCounted<WebGPUBuffer> {36 class WebMetalBuffer : public RefCounted<WebMetalBuffer> { 37 37 public: 38 static RefPtr<Web GPUBuffer> create(GPUBuffer&&);38 static RefPtr<WebMetalBuffer> create(GPUBuffer&&); 39 39 40 40 unsigned length() const { return m_buffer.length(); } … … 44 44 45 45 private: 46 explicit Web GPUBuffer(GPUBuffer&&);46 explicit WebMetalBuffer(GPUBuffer&&); 47 47 48 48 GPUBuffer m_buffer; -
trunk/Source/WebCore/html/canvas/WebMetalBuffer.idl
r236953 r236954 25 25 26 26 [ 27 Conditional=WEB GPU,28 EnabledAtRuntime=Web GPU,27 Conditional=WEBMETAL, 28 EnabledAtRuntime=WebMetal, 29 29 ImplementationLacksVTable 30 ] interface Web GPUBuffer {30 ] interface WebMetalBuffer { 31 31 32 32 readonly attribute unsigned long length; -
trunk/Source/WebCore/html/canvas/WebMetalCommandBuffer.cpp
r236953 r236954 26 26 27 27 #include "config.h" 28 #include "Web GPUCommandBuffer.h"28 #include "WebMetalCommandBuffer.h" 29 29 30 #if ENABLE(WEB GPU)30 #if ENABLE(WEBMETAL) 31 31 32 32 #include "GPUCommandBuffer.h" 33 33 #include "GPUCommandQueue.h" 34 34 #include "Logging.h" 35 #include "Web GPUComputeCommandEncoder.h"36 #include "Web GPUDrawable.h"37 #include "Web GPURenderCommandEncoder.h"38 #include "Web GPURenderPassDescriptor.h"35 #include "WebMetalComputeCommandEncoder.h" 36 #include "WebMetalDrawable.h" 37 #include "WebMetalRenderCommandEncoder.h" 38 #include "WebMetalRenderPassDescriptor.h" 39 39 40 40 namespace WebCore { 41 41 42 Ref<Web GPUCommandBuffer> WebGPUCommandBuffer::create(const GPUCommandQueue& queue)42 Ref<WebMetalCommandBuffer> WebMetalCommandBuffer::create(const GPUCommandQueue& queue) 43 43 { 44 return adoptRef(*new Web GPUCommandBuffer(queue));44 return adoptRef(*new WebMetalCommandBuffer(queue)); 45 45 } 46 46 47 Web GPUCommandBuffer::WebGPUCommandBuffer(const GPUCommandQueue& queue)47 WebMetalCommandBuffer::WebMetalCommandBuffer(const GPUCommandQueue& queue) 48 48 : m_buffer { queue, [this] () { m_completed.resolve(); } } 49 49 { 50 LOG(Web GPU, "WebGPUCommandBuffer::WebGPUCommandBuffer()");50 LOG(WebMetal, "WebMetalCommandBuffer::WebMetalCommandBuffer()"); 51 51 } 52 52 53 Web GPUCommandBuffer::~WebGPUCommandBuffer()53 WebMetalCommandBuffer::~WebMetalCommandBuffer() 54 54 { 55 LOG(Web GPU, "WebGPUCommandBuffer::~WebGPUCommandBuffer()");55 LOG(WebMetal, "WebMetalCommandBuffer::~WebMetalCommandBuffer()"); 56 56 } 57 57 58 void Web GPUCommandBuffer::commit()58 void WebMetalCommandBuffer::commit() 59 59 { 60 LOG(Web GPU, "WebGPUCommandBuffer::commit()");60 LOG(WebMetal, "WebMetalCommandBuffer::commit()"); 61 61 m_buffer.commit(); 62 62 } 63 63 64 void Web GPUCommandBuffer::presentDrawable(WebGPUDrawable& drawable)64 void WebMetalCommandBuffer::presentDrawable(WebMetalDrawable& drawable) 65 65 { 66 LOG(Web GPU, "WebGPUCommandBuffer::presentDrawable()");66 LOG(WebMetal, "WebMetalCommandBuffer::presentDrawable()"); 67 67 m_buffer.presentDrawable(drawable.drawable()); 68 68 } 69 69 70 Ref<Web GPURenderCommandEncoder> WebGPUCommandBuffer::createRenderCommandEncoderWithDescriptor(WebGPURenderPassDescriptor& descriptor)70 Ref<WebMetalRenderCommandEncoder> WebMetalCommandBuffer::createRenderCommandEncoderWithDescriptor(WebMetalRenderPassDescriptor& descriptor) 71 71 { 72 return Web GPURenderCommandEncoder::create(GPURenderCommandEncoder { m_buffer, descriptor.descriptor() });72 return WebMetalRenderCommandEncoder::create(GPURenderCommandEncoder { m_buffer, descriptor.descriptor() }); 73 73 } 74 74 75 Ref<Web GPUComputeCommandEncoder> WebGPUCommandBuffer::createComputeCommandEncoder()75 Ref<WebMetalComputeCommandEncoder> WebMetalCommandBuffer::createComputeCommandEncoder() 76 76 { 77 return Web GPUComputeCommandEncoder::create(GPUComputeCommandEncoder { m_buffer });77 return WebMetalComputeCommandEncoder::create(GPUComputeCommandEncoder { m_buffer }); 78 78 } 79 79 80 DOMPromiseProxy<IDLVoid>& Web GPUCommandBuffer::completed()80 DOMPromiseProxy<IDLVoid>& WebMetalCommandBuffer::completed() 81 81 { 82 82 return m_completed; -
trunk/Source/WebCore/html/canvas/WebMetalCommandBuffer.h
r236953 r236954 27 27 #pragma once 28 28 29 #if ENABLE(WEB GPU)29 #if ENABLE(WEBMETAL) 30 30 31 31 #include "DOMPromiseProxy.h" … … 36 36 namespace WebCore { 37 37 38 class Web GPUComputeCommandEncoder;39 class Web GPUDrawable;40 class Web GPURenderCommandEncoder;41 class Web GPURenderPassDescriptor;38 class WebMetalComputeCommandEncoder; 39 class WebMetalDrawable; 40 class WebMetalRenderCommandEncoder; 41 class WebMetalRenderPassDescriptor; 42 42 43 class Web GPUCommandBuffer : public RefCounted<WebGPUCommandBuffer> {43 class WebMetalCommandBuffer : public RefCounted<WebMetalCommandBuffer> { 44 44 public: 45 ~Web GPUCommandBuffer();46 static Ref<Web GPUCommandBuffer> create(const GPUCommandQueue&);45 ~WebMetalCommandBuffer(); 46 static Ref<WebMetalCommandBuffer> create(const GPUCommandQueue&); 47 47 48 48 void commit(); 49 void presentDrawable(Web GPUDrawable&);49 void presentDrawable(WebMetalDrawable&); 50 50 51 Ref<Web GPURenderCommandEncoder> createRenderCommandEncoderWithDescriptor(WebGPURenderPassDescriptor&);52 Ref<Web GPUComputeCommandEncoder> createComputeCommandEncoder();51 Ref<WebMetalRenderCommandEncoder> createRenderCommandEncoderWithDescriptor(WebMetalRenderPassDescriptor&); 52 Ref<WebMetalComputeCommandEncoder> createComputeCommandEncoder(); 53 53 54 54 DOMPromiseProxy<IDLVoid>& completed(); … … 57 57 58 58 private: 59 explicit Web GPUCommandBuffer(const GPUCommandQueue&);59 explicit WebMetalCommandBuffer(const GPUCommandQueue&); 60 60 61 61 GPUCommandBuffer m_buffer; -
trunk/Source/WebCore/html/canvas/WebMetalCommandBuffer.idl
r236953 r236954 26 26 27 27 [ 28 Conditional=WEB GPU,29 EnabledAtRuntime=Web GPU,28 Conditional=WEBMETAL, 29 EnabledAtRuntime=WebMetal, 30 30 ImplementationLacksVTable 31 ] interface Web GPUCommandBuffer {32 Web GPURenderCommandEncoder createRenderCommandEncoderWithDescriptor(WebGPURenderPassDescriptor descriptor);33 Web GPUComputeCommandEncoder createComputeCommandEncoder();31 ] interface WebMetalCommandBuffer { 32 WebMetalRenderCommandEncoder createRenderCommandEncoderWithDescriptor(WebMetalRenderPassDescriptor descriptor); 33 WebMetalComputeCommandEncoder createComputeCommandEncoder(); 34 34 void commit(); 35 void presentDrawable(Web GPUDrawable drawable);35 void presentDrawable(WebMetalDrawable drawable); 36 36 readonly attribute Promise<void> completed; 37 37 }; -
trunk/Source/WebCore/html/canvas/WebMetalCommandQueue.cpp
r236953 r236954 25 25 26 26 #include "config.h" 27 #include "Web GPUCommandQueue.h"27 #include "WebMetalCommandQueue.h" 28 28 29 #if ENABLE(WEB GPU)29 #if ENABLE(WEBMETAL) 30 30 31 #include "Web GPUCommandBuffer.h"31 #include "WebMetalCommandBuffer.h" 32 32 33 33 namespace WebCore { 34 34 35 Ref<Web GPUCommandQueue> WebGPUCommandQueue::create(GPUCommandQueue&& queue)35 Ref<WebMetalCommandQueue> WebMetalCommandQueue::create(GPUCommandQueue&& queue) 36 36 { 37 return adoptRef(*new Web GPUCommandQueue(WTFMove(queue)));37 return adoptRef(*new WebMetalCommandQueue(WTFMove(queue))); 38 38 } 39 39 40 Web GPUCommandQueue::WebGPUCommandQueue(GPUCommandQueue&& queue)40 WebMetalCommandQueue::WebMetalCommandQueue(GPUCommandQueue&& queue) 41 41 : m_queue { WTFMove(queue) } 42 42 { 43 43 } 44 44 45 Web GPUCommandQueue::~WebGPUCommandQueue() = default;45 WebMetalCommandQueue::~WebMetalCommandQueue() = default; 46 46 47 Ref<Web GPUCommandBuffer> WebGPUCommandQueue::createCommandBuffer()47 Ref<WebMetalCommandBuffer> WebMetalCommandQueue::createCommandBuffer() 48 48 { 49 return Web GPUCommandBuffer::create(m_queue);49 return WebMetalCommandBuffer::create(m_queue); 50 50 } 51 51 -
trunk/Source/WebCore/html/canvas/WebMetalCommandQueue.h
r236953 r236954 26 26 #pragma once 27 27 28 #if ENABLE(WEB GPU)28 #if ENABLE(WEBMETAL) 29 29 30 30 #include "GPUCommandQueue.h" … … 34 34 namespace WebCore { 35 35 36 class Web GPUCommandBuffer;36 class WebMetalCommandBuffer; 37 37 38 class Web GPUCommandQueue : public RefCounted<WebGPUCommandQueue> {38 class WebMetalCommandQueue : public RefCounted<WebMetalCommandQueue> { 39 39 public: 40 ~Web GPUCommandQueue();41 static Ref<Web GPUCommandQueue> create(GPUCommandQueue&&);40 ~WebMetalCommandQueue(); 41 static Ref<WebMetalCommandQueue> create(GPUCommandQueue&&); 42 42 43 43 String label() const { return m_queue.label(); } 44 44 void setLabel(const String& label) { m_queue.setLabel(label); } 45 45 46 Ref<Web GPUCommandBuffer> createCommandBuffer();46 Ref<WebMetalCommandBuffer> createCommandBuffer(); 47 47 48 48 private: 49 explicit Web GPUCommandQueue(GPUCommandQueue&&);49 explicit WebMetalCommandQueue(GPUCommandQueue&&); 50 50 51 51 GPUCommandQueue m_queue; -
trunk/Source/WebCore/html/canvas/WebMetalCommandQueue.idl
r236953 r236954 25 25 26 26 [ 27 Conditional=WEB GPU,28 EnabledAtRuntime=Web GPU,27 Conditional=WEBMETAL, 28 EnabledAtRuntime=WebMetal, 29 29 ImplementationLacksVTable 30 ] interface Web GPUCommandQueue {30 ] interface WebMetalCommandQueue { 31 31 32 32 attribute DOMString label; 33 33 34 Web GPUCommandBuffer createCommandBuffer();34 WebMetalCommandBuffer createCommandBuffer(); 35 35 36 36 }; -
trunk/Source/WebCore/html/canvas/WebMetalComputeCommandEncoder.cpp
r236953 r236954 25 25 26 26 #include "config.h" 27 #include "Web GPUComputeCommandEncoder.h"27 #include "WebMetalComputeCommandEncoder.h" 28 28 29 #if ENABLE(WEB GPU)29 #if ENABLE(WEBMETAL) 30 30 31 31 #include "GPUCommandBuffer.h" 32 32 #include "GPUComputeCommandEncoder.h" 33 33 #include "GPUSize.h" 34 #include "Web GPUBuffer.h"35 #include "Web GPUCommandBuffer.h"36 #include "Web GPUComputePipelineState.h"34 #include "WebMetalBuffer.h" 35 #include "WebMetalCommandBuffer.h" 36 #include "WebMetalComputePipelineState.h" 37 37 38 38 namespace WebCore { 39 39 40 static inline GPUSize GPUSizeMake(Web GPUSize size)40 static inline GPUSize GPUSizeMake(WebMetalSize size) 41 41 { 42 42 return { size.width, size.height, size.depth }; 43 43 } 44 44 45 Ref<Web GPUComputeCommandEncoder> WebGPUComputeCommandEncoder::create(GPUComputeCommandEncoder&& encoder)45 Ref<WebMetalComputeCommandEncoder> WebMetalComputeCommandEncoder::create(GPUComputeCommandEncoder&& encoder) 46 46 { 47 return adoptRef(*new Web GPUComputeCommandEncoder(WTFMove(encoder)));47 return adoptRef(*new WebMetalComputeCommandEncoder(WTFMove(encoder))); 48 48 } 49 49 50 Web GPUComputeCommandEncoder::WebGPUComputeCommandEncoder(GPUComputeCommandEncoder&& encoder)50 WebMetalComputeCommandEncoder::WebMetalComputeCommandEncoder(GPUComputeCommandEncoder&& encoder) 51 51 : m_encoder { WTFMove(encoder) } 52 52 { 53 53 } 54 54 55 void Web GPUComputeCommandEncoder::setComputePipelineState(WebGPUComputePipelineState& pipelineState)55 void WebMetalComputeCommandEncoder::setComputePipelineState(WebMetalComputePipelineState& pipelineState) 56 56 { 57 57 m_encoder.setComputePipelineState(pipelineState.state()); 58 58 } 59 59 60 void Web GPUComputeCommandEncoder::setBuffer(WebGPUBuffer& buffer, unsigned offset, unsigned index)60 void WebMetalComputeCommandEncoder::setBuffer(WebMetalBuffer& buffer, unsigned offset, unsigned index) 61 61 { 62 62 m_encoder.setBuffer(buffer.buffer(), offset, index); 63 63 } 64 64 65 void Web GPUComputeCommandEncoder::dispatch(WebGPUSize threadgroupsPerGrid, WebGPUSize threadsPerThreadgroup)65 void WebMetalComputeCommandEncoder::dispatch(WebMetalSize threadgroupsPerGrid, WebMetalSize threadsPerThreadgroup) 66 66 { 67 67 m_encoder.dispatch(GPUSizeMake(threadgroupsPerGrid), GPUSizeMake(threadsPerThreadgroup)); 68 68 } 69 69 70 void Web GPUComputeCommandEncoder::endEncoding()70 void WebMetalComputeCommandEncoder::endEncoding() 71 71 { 72 72 m_encoder.endEncoding(); -
trunk/Source/WebCore/html/canvas/WebMetalComputeCommandEncoder.h
r236953 r236954 26 26 #pragma once 27 27 28 #if ENABLE(WEB GPU)28 #if ENABLE(WEBMETAL) 29 29 30 30 #include "GPUComputeCommandEncoder.h" 31 #include "Web GPUSize.h"31 #include "WebMetalSize.h" 32 32 #include <wtf/Ref.h> 33 33 #include <wtf/RefCounted.h> … … 35 35 namespace WebCore { 36 36 37 class Web GPUBuffer;38 class Web GPUComputePipelineState;37 class WebMetalBuffer; 38 class WebMetalComputePipelineState; 39 39 40 class Web GPUComputeCommandEncoder : public RefCounted<WebGPUComputeCommandEncoder> {40 class WebMetalComputeCommandEncoder : public RefCounted<WebMetalComputeCommandEncoder> { 41 41 public: 42 static Ref<Web GPUComputeCommandEncoder> create(GPUComputeCommandEncoder&&);42 static Ref<WebMetalComputeCommandEncoder> create(GPUComputeCommandEncoder&&); 43 43 44 void setComputePipelineState(Web GPUComputePipelineState&);45 void setBuffer(Web GPUBuffer&, unsigned, unsigned);46 void dispatch(Web GPUSize, WebGPUSize);44 void setComputePipelineState(WebMetalComputePipelineState&); 45 void setBuffer(WebMetalBuffer&, unsigned, unsigned); 46 void dispatch(WebMetalSize, WebMetalSize); 47 47 void endEncoding(); 48 48 49 49 private: 50 explicit Web GPUComputeCommandEncoder(GPUComputeCommandEncoder&&);50 explicit WebMetalComputeCommandEncoder(GPUComputeCommandEncoder&&); 51 51 52 52 GPUComputeCommandEncoder m_encoder; -
trunk/Source/WebCore/html/canvas/WebMetalComputeCommandEncoder.idl
r236953 r236954 25 25 26 26 [ 27 Conditional=WEB GPU,28 EnabledAtRuntime=Web GPU,27 Conditional=WEBMETAL, 28 EnabledAtRuntime=WebMetal, 29 29 ImplementationLacksVTable 30 ] interface Web GPUComputeCommandEncoder {30 ] interface WebMetalComputeCommandEncoder { 31 31 32 void setComputePipelineState(Web GPUComputePipelineState pipelineState);33 void setBuffer(Web GPUBuffer buffer, unsigned long offset, unsigned long index);34 void dispatch(Web GPUSize threadgroupsPerGrid, WebGPUSize threadsPerThreadgroup);32 void setComputePipelineState(WebMetalComputePipelineState pipelineState); 33 void setBuffer(WebMetalBuffer buffer, unsigned long offset, unsigned long index); 34 void dispatch(WebMetalSize threadgroupsPerGrid, WebMetalSize threadsPerThreadgroup); 35 35 36 36 void endEncoding(); -
trunk/Source/WebCore/html/canvas/WebMetalComputePipelineState.cpp
r236953 r236954 25 25 26 26 #include "config.h" 27 #include "Web GPUComputePipelineState.h"27 #include "WebMetalComputePipelineState.h" 28 28 29 #if ENABLE(WEB GPU)29 #if ENABLE(WEBMETAL) 30 30 31 31 namespace WebCore { 32 32 33 Ref<Web GPUComputePipelineState> WebGPUComputePipelineState::create(GPUComputePipelineState&& state)33 Ref<WebMetalComputePipelineState> WebMetalComputePipelineState::create(GPUComputePipelineState&& state) 34 34 { 35 return adoptRef(*new Web GPUComputePipelineState(WTFMove(state)));35 return adoptRef(*new WebMetalComputePipelineState(WTFMove(state))); 36 36 } 37 37 38 Web GPUComputePipelineState::WebGPUComputePipelineState(GPUComputePipelineState&& state)38 WebMetalComputePipelineState::WebMetalComputePipelineState(GPUComputePipelineState&& state) 39 39 : m_state { WTFMove(state) } 40 40 { -
trunk/Source/WebCore/html/canvas/WebMetalComputePipelineState.h
r236953 r236954 26 26 #pragma once 27 27 28 #if ENABLE(WEB GPU)28 #if ENABLE(WEBMETAL) 29 29 30 30 #include "GPUComputePipelineState.h" … … 34 34 namespace WebCore { 35 35 36 class Web GPUFunction;36 class WebMetalFunction; 37 37 38 class Web GPUComputePipelineState : public RefCounted<WebGPUComputePipelineState> {38 class WebMetalComputePipelineState : public RefCounted<WebMetalComputePipelineState> { 39 39 public: 40 static Ref<Web GPUComputePipelineState> create(GPUComputePipelineState&&);40 static Ref<WebMetalComputePipelineState> create(GPUComputePipelineState&&); 41 41 42 42 GPUComputePipelineState& state() { return m_state; } 43 43 44 44 private: 45 explicit Web GPUComputePipelineState(GPUComputePipelineState&&);45 explicit WebMetalComputePipelineState(GPUComputePipelineState&&); 46 46 47 47 GPUComputePipelineState m_state; -
trunk/Source/WebCore/html/canvas/WebMetalComputePipelineState.idl
r236953 r236954 25 25 26 26 [ 27 Conditional=WEB GPU,28 EnabledAtRuntime=Web GPU,27 Conditional=WEBMETAL, 28 EnabledAtRuntime=WebMetal, 29 29 ImplementationLacksVTable 30 ] interface Web GPUComputePipelineState {30 ] interface WebMetalComputePipelineState { 31 31 }; -
trunk/Source/WebCore/html/canvas/WebMetalDepthStencilDescriptor.cpp
r236953 r236954 25 25 26 26 #include "config.h" 27 #include "Web GPUDepthStencilDescriptor.h"27 #include "WebMetalDepthStencilDescriptor.h" 28 28 29 #if ENABLE(WEB GPU)29 #if ENABLE(WEBMETAL) 30 30 31 31 namespace WebCore { 32 32 33 Ref<Web GPUDepthStencilDescriptor> WebGPUDepthStencilDescriptor::create()33 Ref<WebMetalDepthStencilDescriptor> WebMetalDepthStencilDescriptor::create() 34 34 { 35 return adoptRef(*new Web GPUDepthStencilDescriptor);35 return adoptRef(*new WebMetalDepthStencilDescriptor); 36 36 } 37 37 38 bool Web GPUDepthStencilDescriptor::depthWriteEnabled() const38 bool WebMetalDepthStencilDescriptor::depthWriteEnabled() const 39 39 { 40 40 return m_descriptor.depthWriteEnabled(); 41 41 } 42 42 43 void Web GPUDepthStencilDescriptor::setDepthWriteEnabled(bool newDepthWriteEnabled)43 void WebMetalDepthStencilDescriptor::setDepthWriteEnabled(bool newDepthWriteEnabled) 44 44 { 45 45 m_descriptor.setDepthWriteEnabled(newDepthWriteEnabled); 46 46 } 47 47 48 Web GPUCompareFunction WebGPUDepthStencilDescriptor::depthCompareFunction() const48 WebMetalCompareFunction WebMetalDepthStencilDescriptor::depthCompareFunction() const 49 49 { 50 50 return m_depthCompareFunction; 51 51 } 52 52 53 void Web GPUDepthStencilDescriptor::setDepthCompareFunction(CompareFunction newDepthCompareFunction)53 void WebMetalDepthStencilDescriptor::setDepthCompareFunction(CompareFunction newDepthCompareFunction) 54 54 { 55 55 m_depthCompareFunction = newDepthCompareFunction; -
trunk/Source/WebCore/html/canvas/WebMetalDepthStencilDescriptor.h
r236953 r236954 26 26 #pragma once 27 27 28 #if ENABLE(WEB GPU)28 #if ENABLE(WEBMETAL) 29 29 30 30 #include "GPUDepthStencilDescriptor.h" 31 #include "Web GPUEnums.h"31 #include "WebMetalEnums.h" 32 32 #include <wtf/Ref.h> 33 33 #include <wtf/RefCounted.h> … … 35 35 namespace WebCore { 36 36 37 class Web GPUDepthStencilDescriptor : public RefCounted<WebGPUDepthStencilDescriptor> {37 class WebMetalDepthStencilDescriptor : public RefCounted<WebMetalDepthStencilDescriptor> { 38 38 public: 39 static Ref<Web GPUDepthStencilDescriptor> create();39 static Ref<WebMetalDepthStencilDescriptor> create(); 40 40 41 41 bool depthWriteEnabled() const; 42 42 void setDepthWriteEnabled(bool); 43 43 44 using CompareFunction = Web GPUCompareFunction;44 using CompareFunction = WebMetalCompareFunction; 45 45 CompareFunction depthCompareFunction() const; 46 46 void setDepthCompareFunction(CompareFunction); … … 49 49 50 50 private: 51 Web GPUDepthStencilDescriptor() = default;51 WebMetalDepthStencilDescriptor() = default; 52 52 53 53 // FIXME: The default value of "Always" is defined both here and in the … … 56 56 // there would be no need for a default value here. 57 57 58 Web GPUCompareFunction m_depthCompareFunction { WebGPUCompareFunction::Always };58 WebMetalCompareFunction m_depthCompareFunction { WebMetalCompareFunction::Always }; 59 59 GPUDepthStencilDescriptor m_descriptor; 60 60 }; -
trunk/Source/WebCore/html/canvas/WebMetalDepthStencilDescriptor.idl
r236953 r236954 25 25 26 26 [ 27 Conditional=WEB GPU,28 EnabledAtRuntime=Web GPU29 ] enum Web GPUCompareFunction {27 Conditional=WEBMETAL, 28 EnabledAtRuntime=WebMetal 29 ] enum WebMetalCompareFunction { 30 30 "never", 31 31 "less", … … 40 40 [ 41 41 Constructor, 42 Conditional=WEB GPU,43 EnabledAtRuntime=Web GPU,42 Conditional=WEBMETAL, 43 EnabledAtRuntime=WebMetal, 44 44 ImplementationLacksVTable 45 ] interface Web GPUDepthStencilDescriptor {45 ] interface WebMetalDepthStencilDescriptor { 46 46 47 attribute Web GPUCompareFunction depthCompareFunction;47 attribute WebMetalCompareFunction depthCompareFunction; 48 48 attribute boolean depthWriteEnabled; 49 49 -
trunk/Source/WebCore/html/canvas/WebMetalDepthStencilState.cpp
r236953 r236954 25 25 26 26 #include "config.h" 27 #include "Web GPUDepthStencilState.h"27 #include "WebMetalDepthStencilState.h" 28 28 29 #if ENABLE(WEB GPU)29 #if ENABLE(WEBMETAL) 30 30 31 #include "Web GPUDepthStencilDescriptor.h"31 #include "WebMetalDepthStencilDescriptor.h" 32 32 #include <wtf/text/WTFString.h> 33 33 34 34 namespace WebCore { 35 35 36 Ref<Web GPUDepthStencilState> WebGPUDepthStencilState::create(GPUDepthStencilState&& state)36 Ref<WebMetalDepthStencilState> WebMetalDepthStencilState::create(GPUDepthStencilState&& state) 37 37 { 38 return adoptRef(*new Web GPUDepthStencilState(WTFMove(state)));38 return adoptRef(*new WebMetalDepthStencilState(WTFMove(state))); 39 39 } 40 40 41 Web GPUDepthStencilState::WebGPUDepthStencilState(GPUDepthStencilState&& state)41 WebMetalDepthStencilState::WebMetalDepthStencilState(GPUDepthStencilState&& state) 42 42 : m_state { WTFMove(state) } 43 43 { 44 44 } 45 45 46 String Web GPUDepthStencilState::label() const46 String WebMetalDepthStencilState::label() const 47 47 { 48 48 return m_state.label(); 49 49 } 50 50 51 void Web GPUDepthStencilState::setLabel(const String& label)51 void WebMetalDepthStencilState::setLabel(const String& label) 52 52 { 53 53 m_state.setLabel(label); -
trunk/Source/WebCore/html/canvas/WebMetalDepthStencilState.h
r236953 r236954 26 26 #pragma once 27 27 28 #if ENABLE(WEB GPU)28 #if ENABLE(WEBMETAL) 29 29 30 30 #include "GPUDepthStencilState.h" … … 34 34 namespace WebCore { 35 35 36 class Web GPUDepthStencilState : public RefCounted<WebGPUDepthStencilState> {36 class WebMetalDepthStencilState : public RefCounted<WebMetalDepthStencilState> { 37 37 public: 38 static Ref<Web GPUDepthStencilState> create(GPUDepthStencilState&&);38 static Ref<WebMetalDepthStencilState> create(GPUDepthStencilState&&); 39 39 40 40 String label() const; … … 44 44 45 45 private: 46 explicit Web GPUDepthStencilState(GPUDepthStencilState&&);46 explicit WebMetalDepthStencilState(GPUDepthStencilState&&); 47 47 48 48 GPUDepthStencilState m_state; -
trunk/Source/WebCore/html/canvas/WebMetalDepthStencilState.idl
r236953 r236954 25 25 26 26 [ 27 Conditional=WEB GPU,28 EnabledAtRuntime=Web GPU,27 Conditional=WEBMETAL, 28 EnabledAtRuntime=WebMetal, 29 29 ImplementationLacksVTable 30 ] interface Web GPURenderPipelineState {30 ] interface WebMetalDepthStencilState { 31 31 32 32 attribute DOMString label; -
trunk/Source/WebCore/html/canvas/WebMetalDrawable.cpp
r236953 r236954 25 25 26 26 #include "config.h" 27 #include "Web GPUDrawable.h"27 #include "WebMetalDrawable.h" 28 28 29 #if ENABLE(WEB GPU)29 #if ENABLE(WEBMETAL) 30 30 31 31 #include "GPUTexture.h" 32 #include "Web GPUTexture.h"32 #include "WebMetalTexture.h" 33 33 34 34 namespace WebCore { 35 35 36 Ref<Web GPUDrawable> WebGPUDrawable::create(GPUDrawable&& drawable)36 Ref<WebMetalDrawable> WebMetalDrawable::create(GPUDrawable&& drawable) 37 37 { 38 return adoptRef(*new Web GPUDrawable(WTFMove(drawable)));38 return adoptRef(*new WebMetalDrawable(WTFMove(drawable))); 39 39 } 40 40 41 Web GPUDrawable::WebGPUDrawable(GPUDrawable&& drawable)41 WebMetalDrawable::WebMetalDrawable(GPUDrawable&& drawable) 42 42 : m_drawable { WTFMove(drawable) } 43 , m_texture { Web GPUTexture::create(GPUTexture { m_drawable }) }43 , m_texture { WebMetalTexture::create(GPUTexture { m_drawable }) } 44 44 { 45 45 } 46 46 47 Web GPUDrawable::~WebGPUDrawable() = default;47 WebMetalDrawable::~WebMetalDrawable() = default; 48 48 49 49 } // namespace WebCore -
trunk/Source/WebCore/html/canvas/WebMetalDrawable.h
r236953 r236954 26 26 #pragma once 27 27 28 #if ENABLE(WEB GPU)28 #if ENABLE(WEBMETAL) 29 29 30 30 #include "GPUDrawable.h" … … 34 34 namespace WebCore { 35 35 36 class Web GPUTexture;36 class WebMetalTexture; 37 37 38 class Web GPUDrawable : public RefCounted<WebGPUDrawable> {38 class WebMetalDrawable : public RefCounted<WebMetalDrawable> { 39 39 public: 40 ~Web GPUDrawable();41 static Ref<Web GPUDrawable> create(GPUDrawable&&);40 ~WebMetalDrawable(); 41 static Ref<WebMetalDrawable> create(GPUDrawable&&); 42 42 43 43 GPUDrawable& drawable() { return m_drawable; } 44 Web GPUTexture& texture() { return m_texture.get(); }44 WebMetalTexture& texture() { return m_texture.get(); } 45 45 46 46 private: 47 explicit Web GPUDrawable(GPUDrawable&&);47 explicit WebMetalDrawable(GPUDrawable&&); 48 48 49 49 GPUDrawable m_drawable; 50 Ref<Web GPUTexture> m_texture;50 Ref<WebMetalTexture> m_texture; 51 51 }; 52 52 -
trunk/Source/WebCore/html/canvas/WebMetalDrawable.idl
r236953 r236954 25 25 26 26 [ 27 Conditional=WEB GPU,28 EnabledAtRuntime=Web GPU,27 Conditional=WEBMETAL, 28 EnabledAtRuntime=WebMetal, 29 29 ImplementationLacksVTable 30 ] interface Web GPUDrawable {30 ] interface WebMetalDrawable { 31 31 32 readonly attribute Web GPUTexture texture; // FIXME: Only the framebuffer should have this.32 readonly attribute WebMetalTexture texture; // FIXME: Only the framebuffer should have this. 33 33 34 34 }; -
trunk/Source/WebCore/html/canvas/WebMetalEnums.cpp
r236953 r236954 25 25 26 26 #include "config.h" 27 #include "Web GPUEnums.h"27 #include "WebMetalEnums.h" 28 28 29 #if ENABLE(WEB GPU)29 #if ENABLE(WEBMETAL) 30 30 31 31 #include "GPUEnums.h" … … 34 34 namespace WebCore { 35 35 36 std::optional<Web GPUCompareFunction> toWebGPUCompareFunction(const String& name)36 std::optional<WebMetalCompareFunction> toWebMetalCompareFunction(const String& name) 37 37 { 38 38 if (equalLettersIgnoringASCIICase(name, "never")) 39 return Web GPUCompareFunction::Never;39 return WebMetalCompareFunction::Never; 40 40 if (equalLettersIgnoringASCIICase(name, "less")) 41 return Web GPUCompareFunction::Less;41 return WebMetalCompareFunction::Less; 42 42 if (equalLettersIgnoringASCIICase(name, "equal")) 43 return Web GPUCompareFunction::Equal;43 return WebMetalCompareFunction::Equal; 44 44 if (equalLettersIgnoringASCIICase(name, "lessequal")) 45 return Web GPUCompareFunction::Lessequal;45 return WebMetalCompareFunction::Lessequal; 46 46 if (equalLettersIgnoringASCIICase(name, "greater")) 47 return Web GPUCompareFunction::Greater;47 return WebMetalCompareFunction::Greater; 48 48 if (equalLettersIgnoringASCIICase(name, "notequal")) 49 return Web GPUCompareFunction::Notequal;49 return WebMetalCompareFunction::Notequal; 50 50 if (equalLettersIgnoringASCIICase(name, "greaterequal")) 51 return Web GPUCompareFunction::Greaterequal;51 return WebMetalCompareFunction::Greaterequal; 52 52 if (equalLettersIgnoringASCIICase(name, "always")) 53 return Web GPUCompareFunction::Always;53 return WebMetalCompareFunction::Always; 54 54 55 55 ASSERT_NOT_REACHED(); … … 57 57 } 58 58 59 String web3DCompareFunctionName(Web GPUCompareFunction value)59 String web3DCompareFunctionName(WebMetalCompareFunction value) 60 60 { 61 if (value == Web GPUCompareFunction::Never)61 if (value == WebMetalCompareFunction::Never) 62 62 return "never"_s; 63 if (value == Web GPUCompareFunction::Less)63 if (value == WebMetalCompareFunction::Less) 64 64 return "less"_s; 65 if (value == Web GPUCompareFunction::Equal)65 if (value == WebMetalCompareFunction::Equal) 66 66 return "equal"_s; 67 if (value == Web GPUCompareFunction::Lessequal)67 if (value == WebMetalCompareFunction::Lessequal) 68 68 return "lessequal"_s; 69 if (value == Web GPUCompareFunction::Greater)69 if (value == WebMetalCompareFunction::Greater) 70 70 return "greater"_s; 71 if (value == Web GPUCompareFunction::Notequal)71 if (value == WebMetalCompareFunction::Notequal) 72 72 return "notequal"_s; 73 if (value == Web GPUCompareFunction::Greaterequal)73 if (value == WebMetalCompareFunction::Greaterequal) 74 74 return "greaterequal"_s; 75 if (value == Web GPUCompareFunction::Always)75 if (value == WebMetalCompareFunction::Always) 76 76 return "always"_s; 77 77 … … 80 80 } 81 81 82 GPUCompareFunction toGPUCompareFunction(const Web GPUCompareFunction value)82 GPUCompareFunction toGPUCompareFunction(const WebMetalCompareFunction value) 83 83 { 84 if (value == Web GPUCompareFunction::Never)84 if (value == WebMetalCompareFunction::Never) 85 85 return GPUCompareFunction::Never; 86 if (value == Web GPUCompareFunction::Less)86 if (value == WebMetalCompareFunction::Less) 87 87 return GPUCompareFunction::Less; 88 if (value == Web GPUCompareFunction::Equal)88 if (value == WebMetalCompareFunction::Equal) 89 89 return GPUCompareFunction::Equal; 90 if (value == Web GPUCompareFunction::Lessequal)90 if (value == WebMetalCompareFunction::Lessequal) 91 91 return GPUCompareFunction::LessEqual; 92 if (value == Web GPUCompareFunction::Greater)92 if (value == WebMetalCompareFunction::Greater) 93 93 return GPUCompareFunction::Greater; 94 if (value == Web GPUCompareFunction::Notequal)94 if (value == WebMetalCompareFunction::Notequal) 95 95 return GPUCompareFunction::NotEqual; 96 if (value == Web GPUCompareFunction::Greaterequal)96 if (value == WebMetalCompareFunction::Greaterequal) 97 97 return GPUCompareFunction::GreaterEqual; 98 if (value == Web GPUCompareFunction::Always)98 if (value == WebMetalCompareFunction::Always) 99 99 return GPUCompareFunction::Always; 100 100 -
trunk/Source/WebCore/html/canvas/WebMetalEnums.h
r236953 r236954 26 26 #pragma once 27 27 28 #if ENABLE(WEB GPU)28 #if ENABLE(WEBMETAL) 29 29 30 30 #include <wtf/Forward.h> … … 35 35 enum class GPUCompareFunction; 36 36 37 enum class Web GPUCompareFunction {37 enum class WebMetalCompareFunction { 38 38 Never, 39 39 Less, … … 46 46 }; 47 47 48 std::optional<Web GPUCompareFunction> toWebGPUCompareFunction(const String&);49 String web3DCompareFunctionName(Web GPUCompareFunction);50 GPUCompareFunction toGPUCompareFunction(Web GPUCompareFunction);48 std::optional<WebMetalCompareFunction> toWebMetalCompareFunction(const String&); 49 String web3DCompareFunctionName(WebMetalCompareFunction); 50 GPUCompareFunction toGPUCompareFunction(WebMetalCompareFunction); 51 51 52 52 } // namespace WebCore -
trunk/Source/WebCore/html/canvas/WebMetalEnums.idl
r236953 r236954 25 25 26 26 [ 27 Conditional=WEB GPU,28 EnabledAtRuntime=Web GPU29 ] enum Web GPUPixelFormat {27 Conditional=WEBMETAL, 28 EnabledAtRuntime=WebMetal 29 ] enum WebMetalPixelFormat { 30 30 "BGRA8Unorm" 31 31 }; 32 32 33 33 [ 34 Conditional=WEB GPU,35 EnabledAtRuntime=Web GPU36 ] enum Web GPULoadAction {34 Conditional=WEBMETAL, 35 EnabledAtRuntime=WebMetal 36 ] enum WebMetalLoadAction { 37 37 "dontcare", 38 38 "load", … … 41 41 42 42 [ 43 Conditional=WEB GPU,44 EnabledAtRuntime=Web GPU45 ] enum Web GPUStoreAction {43 Conditional=WEBMETAL, 44 EnabledAtRuntime=WebMetal 45 ] enum WebMetalStoreAction { 46 46 "dontcare", 47 47 "store", … … 50 50 51 51 [ 52 Conditional=WEB GPU,53 EnabledAtRuntime=Web GPU54 ] enum Web GPUPrimitiveType {52 Conditional=WEBMETAL, 53 EnabledAtRuntime=WebMetal 54 ] enum WebMetalPrimitiveType { 55 55 "point", 56 56 "line", … … 61 61 62 62 [ 63 Conditional=WEB GPU,64 EnabledAtRuntime=Web GPU65 ] enum Web GPUFunctionType {63 Conditional=WEBMETAL, 64 EnabledAtRuntime=WebMetal 65 ] enum WebMetalFunctionType { 66 66 "fragment", 67 67 "vertex" … … 69 69 70 70 [ 71 Conditional=WEB GPU,72 EnabledAtRuntime=Web GPU73 ] enum Web GPUStencilOperation {71 Conditional=WEBMETAL, 72 EnabledAtRuntime=WebMetal 73 ] enum WebMetalStencilOperation { 74 74 "keep", 75 75 "zero", … … 83 83 84 84 [ 85 Conditional=WEB GPU,86 EnabledAtRuntime=Web GPU87 ] enum Web GPUStatus {85 Conditional=WEBMETAL, 86 EnabledAtRuntime=WebMetal 87 ] enum WebMetalStatus { 88 88 "notenqueued", 89 89 "enqueued", … … 95 95 96 96 [ 97 Conditional=WEB GPU,98 EnabledAtRuntime=Web GPU99 ] enum Web GPUSamplerAddressMode {97 Conditional=WEBMETAL, 98 EnabledAtRuntime=WebMetal 99 ] enum WebMetalSamplerAddressMode { 100 100 "clamptoedge", 101 101 "mirrorclamptoedge", … … 106 106 107 107 [ 108 Conditional=WEB GPU,109 EnabledAtRuntime=Web GPU110 ] enum Web GPUSamplerMinMagFilter {108 Conditional=WEBMETAL, 109 EnabledAtRuntime=WebMetal 110 ] enum WebMetalSamplerMinMagFilter { 111 111 "nearest", 112 112 "linear" … … 114 114 115 115 [ 116 Conditional=WEB GPU,117 EnabledAtRuntime=Web GPU118 ] enum Web GPUSamplerMipFilter {116 Conditional=WEBMETAL, 117 EnabledAtRuntime=WebMetal 118 ] enum WebMetalSamplerMipFilter { 119 119 "notmipmapped", 120 120 "nearest", … … 123 123 124 124 [ 125 Conditional=WEB GPU,126 EnabledAtRuntime=Web GPU127 ] enum Web GPUCullMode {125 Conditional=WEBMETAL, 126 EnabledAtRuntime=WebMetal 127 ] enum WebMetalCullMode { 128 128 "none", 129 129 "front", … … 132 132 133 133 [ 134 Conditional=WEB GPU,135 EnabledAtRuntime=Web GPU136 ] enum Web GPUIndexType {134 Conditional=WEBMETAL, 135 EnabledAtRuntime=WebMetal 136 ] enum WebMetalIndexType { 137 137 "uint16", 138 138 "uint32" … … 140 140 141 141 [ 142 Conditional=WEB GPU,143 EnabledAtRuntime=Web GPU144 ] enum Web GPUVisibilityResultMode {142 Conditional=WEBMETAL, 143 EnabledAtRuntime=WebMetal 144 ] enum WebMetalVisibilityResultMode { 145 145 "disabled", 146 146 "boolean", … … 149 149 150 150 [ 151 Conditional=WEB GPU,152 EnabledAtRuntime=Web GPU153 ] enum Web GPUWinding {151 Conditional=WEBMETAL, 152 EnabledAtRuntime=WebMetal 153 ] enum WebMetalWinding { 154 154 "clockwise", 155 155 "counterclockwise" … … 157 157 158 158 [ 159 Conditional=WEB GPU,160 EnabledAtRuntime=Web GPU161 ] enum Web GPUDepthClipMode {159 Conditional=WEBMETAL, 160 EnabledAtRuntime=WebMetal 161 ] enum WebMetalDepthClipMode { 162 162 "clip", 163 163 "clamp" … … 165 165 166 166 [ 167 Conditional=WEB GPU,168 EnabledAtRuntime=Web GPU169 ] enum Web GPUTriangleFillMode {167 Conditional=WEBMETAL, 168 EnabledAtRuntime=WebMetal 169 ] enum WebMetalTriangleFillMode { 170 170 "fill", 171 171 "lines" … … 173 173 174 174 [ 175 Conditional=WEB GPU,176 EnabledAtRuntime=Web GPU177 ] enum Web GPUCPUCacheMode {175 Conditional=WEBMETAL, 176 EnabledAtRuntime=WebMetal 177 ] enum WebMetalCPUCacheMode { 178 178 "defaultcache", 179 179 "writecombined" … … 181 181 182 182 [ 183 Conditional=WEB GPU,184 EnabledAtRuntime=Web GPU185 ] enum Web GPUStorageMode {183 Conditional=WEBMETAL, 184 EnabledAtRuntime=WebMetal 185 ] enum WebMetalStorageMode { 186 186 "shared", 187 187 "managed", … … 190 190 191 191 [ 192 Conditional=WEB GPU,193 EnabledAtRuntime=Web GPU194 ] enum Web GPUResourceOptions {192 Conditional=WEBMETAL, 193 EnabledAtRuntime=WebMetal 194 ] enum WebMetalResourceOptions { 195 195 "cpucachemodedefaultcache", 196 196 "cpucachemodewritecombined", … … 203 203 204 204 [ 205 Conditional=WEB GPU,206 EnabledAtRuntime=Web GPU207 ] enum Web GPUTextureUsage {205 Conditional=WEBMETAL, 206 EnabledAtRuntime=WebMetal 207 ] enum WebMetalTextureUsage { 208 208 "unknown", 209 209 "shaderread", … … 214 214 215 215 [ 216 Conditional=WEB GPU,217 EnabledAtRuntime=Web GPU218 ] enum Web GPUBlendOperation {216 Conditional=WEBMETAL, 217 EnabledAtRuntime=WebMetal 218 ] enum WebMetalBlendOperation { 219 219 "add", 220 220 "subtract", … … 225 225 226 226 [ 227 Conditional=WEB GPU,228 EnabledAtRuntime=Web GPU229 ] enum Web GPUBlendFactor {227 Conditional=WEBMETAL, 228 EnabledAtRuntime=WebMetal 229 ] enum WebMetalBlendFactor { 230 230 "zero", 231 231 "one", … … 246 246 247 247 [ 248 Conditional=WEB GPU,249 EnabledAtRuntime=Web GPU250 ] enum Web GPUColorWriteMask {248 Conditional=WEBMETAL, 249 EnabledAtRuntime=WebMetal 250 ] enum WebMetalColorWriteMask { 251 251 "none", 252 252 "red", … … 258 258 259 259 [ 260 Conditional=WEB GPU,261 EnabledAtRuntime=Web GPU262 ] enum Web GPUMultisampleDepthResolveFilter {260 Conditional=WEBMETAL, 261 EnabledAtRuntime=WebMetal 262 ] enum WebMetalMultisampleDepthResolveFilter { 263 263 "sample0", 264 264 "min", … … 267 267 268 268 [ 269 Conditional=WEB GPU,270 EnabledAtRuntime=Web GPU271 ] enum Web GPUFeatureSet {269 Conditional=WEBMETAL, 270 EnabledAtRuntime=WebMetal 271 ] enum WebMetalFeatureSet { 272 272 "level1", 273 273 "level2" -
trunk/Source/WebCore/html/canvas/WebMetalFunction.cpp
r236953 r236954 25 25 26 26 #include "config.h" 27 #include "Web GPUFunction.h"27 #include "WebMetalFunction.h" 28 28 29 #if ENABLE(WEB GPU)29 #if ENABLE(WEBMETAL) 30 30 31 #include "Web GPULibrary.h"31 #include "WebMetalLibrary.h" 32 32 33 33 namespace WebCore { 34 34 35 Ref<Web GPUFunction> WebGPUFunction::create(GPUFunction&& function)35 Ref<WebMetalFunction> WebMetalFunction::create(GPUFunction&& function) 36 36 { 37 return adoptRef(*new Web GPUFunction(WTFMove(function)));37 return adoptRef(*new WebMetalFunction(WTFMove(function))); 38 38 } 39 39 40 Web GPUFunction::WebGPUFunction(GPUFunction&& function)40 WebMetalFunction::WebMetalFunction(GPUFunction&& function) 41 41 : m_function { WTFMove(function) } 42 42 { -
trunk/Source/WebCore/html/canvas/WebMetalFunction.h
r236953 r236954 26 26 #pragma once 27 27 28 #if ENABLE(WEB GPU)28 #if ENABLE(WEBMETAL) 29 29 30 30 #include "GPUFunction.h" … … 35 35 namespace WebCore { 36 36 37 class Web GPUFunction : public RefCounted<WebGPUFunction> {37 class WebMetalFunction : public RefCounted<WebMetalFunction> { 38 38 public: 39 static Ref<Web GPUFunction> create(GPUFunction&&);39 static Ref<WebMetalFunction> create(GPUFunction&&); 40 40 41 41 String name() const { return m_function.name(); } … … 43 43 44 44 private: 45 explicit Web GPUFunction(GPUFunction&&);45 explicit WebMetalFunction(GPUFunction&&); 46 46 47 47 GPUFunction m_function; -
trunk/Source/WebCore/html/canvas/WebMetalFunction.idl
r236953 r236954 25 25 26 26 [ 27 Conditional=WEB GPU,28 EnabledAtRuntime=Web GPU,27 Conditional=WEBMETAL, 28 EnabledAtRuntime=WebMetal, 29 29 ImplementationLacksVTable 30 ] interface Web GPUFunction {30 ] interface WebMetalFunction { 31 31 32 32 readonly attribute DOMString name; -
trunk/Source/WebCore/html/canvas/WebMetalLibrary.cpp
r236953 r236954 25 25 26 26 #include "config.h" 27 #include "Web GPULibrary.h"27 #include "WebMetalLibrary.h" 28 28 29 #if ENABLE(WEB GPU)29 #if ENABLE(WEBMETAL) 30 30 31 #include "Web GPUFunction.h"31 #include "WebMetalFunction.h" 32 32 33 33 namespace WebCore { 34 34 35 Ref<Web GPULibrary> WebGPULibrary::create(GPULibrary&& library, const String& sourceCode)35 Ref<WebMetalLibrary> WebMetalLibrary::create(GPULibrary&& library, const String& sourceCode) 36 36 { 37 return adoptRef(*new Web GPULibrary(WTFMove(library), sourceCode));37 return adoptRef(*new WebMetalLibrary(WTFMove(library), sourceCode)); 38 38 } 39 39 40 Web GPULibrary::WebGPULibrary(GPULibrary&& library, const String& sourceCode)40 WebMetalLibrary::WebMetalLibrary(GPULibrary&& library, const String& sourceCode) 41 41 : m_sourceCode { sourceCode } 42 42 , m_library { WTFMove(library) } … … 44 44 } 45 45 46 Vector<String> Web GPULibrary::functionNames() const46 Vector<String> WebMetalLibrary::functionNames() const 47 47 { 48 48 return m_library.functionNames(); 49 49 } 50 50 51 RefPtr<Web GPUFunction> WebGPULibrary::functionWithName(const String& name) const51 RefPtr<WebMetalFunction> WebMetalLibrary::functionWithName(const String& name) const 52 52 { 53 53 GPUFunction function { m_library, name }; 54 54 if (!function) 55 55 return nullptr; 56 return Web GPUFunction::create(WTFMove(function));56 return WebMetalFunction::create(WTFMove(function)); 57 57 } 58 58 -
trunk/Source/WebCore/html/canvas/WebMetalLibrary.h
r236953 r236954 26 26 #pragma once 27 27 28 #if ENABLE(WEB GPU)28 #if ENABLE(WEBMETAL) 29 29 30 30 #include "GPULibrary.h" … … 34 34 namespace WebCore { 35 35 36 class Web GPUFunction;36 class WebMetalFunction; 37 37 38 class Web GPULibrary : public RefCounted<WebGPULibrary> {38 class WebMetalLibrary : public RefCounted<WebMetalLibrary> { 39 39 public: 40 static Ref<Web GPULibrary> create(GPULibrary&&, const String& sourceCode);40 static Ref<WebMetalLibrary> create(GPULibrary&&, const String& sourceCode); 41 41 42 42 const String& sourceCode() const { return m_sourceCode; } … … 47 47 Vector<String> functionNames() const; 48 48 49 RefPtr<Web GPUFunction> functionWithName(const String&) const;49 RefPtr<WebMetalFunction> functionWithName(const String&) const; 50 50 51 51 private: 52 Web GPULibrary(GPULibrary&&, const String& sourceCode);52 WebMetalLibrary(GPULibrary&&, const String& sourceCode); 53 53 54 54 String m_sourceCode; -
trunk/Source/WebCore/html/canvas/WebMetalLibrary.idl
r236953 r236954 25 25 26 26 [ 27 Conditional=WEB GPU,28 EnabledAtRuntime=Web GPU,27 Conditional=WEBMETAL, 28 EnabledAtRuntime=WebMetal, 29 29 ImplementationLacksVTable 30 ] interface Web GPULibrary {30 ] interface WebMetalLibrary { 31 31 32 32 readonly attribute DOMString sourceCode; … … 34 34 readonly attribute sequence<DOMString> functionNames; 35 35 36 Web GPUFunction? functionWithName(DOMString name);36 WebMetalFunction? functionWithName(DOMString name); 37 37 38 38 }; -
trunk/Source/WebCore/html/canvas/WebMetalRenderCommandEncoder.cpp
r236953 r236954 25 25 26 26 #include "config.h" 27 #include "Web GPURenderCommandEncoder.h"27 #include "WebMetalRenderCommandEncoder.h" 28 28 29 #if ENABLE(WEB GPU)29 #if ENABLE(WEBMETAL) 30 30 31 31 #include "GPUCommandBuffer.h" 32 32 #include "GPURenderPassDescriptor.h" 33 #include "Web GPUBuffer.h"34 #include "Web GPUCommandBuffer.h"35 #include "Web GPUDepthStencilState.h"36 #include "Web GPURenderPassDescriptor.h"37 #include "Web GPURenderPipelineState.h"33 #include "WebMetalBuffer.h" 34 #include "WebMetalCommandBuffer.h" 35 #include "WebMetalDepthStencilState.h" 36 #include "WebMetalRenderPassDescriptor.h" 37 #include "WebMetalRenderPipelineState.h" 38 38 39 39 namespace WebCore { 40 40 41 Ref<Web GPURenderCommandEncoder> WebGPURenderCommandEncoder::create(GPURenderCommandEncoder&& encoder)41 Ref<WebMetalRenderCommandEncoder> WebMetalRenderCommandEncoder::create(GPURenderCommandEncoder&& encoder) 42 42 { 43 return adoptRef(*new Web GPURenderCommandEncoder(WTFMove(encoder)));43 return adoptRef(*new WebMetalRenderCommandEncoder(WTFMove(encoder))); 44 44 } 45 45 46 Web GPURenderCommandEncoder::WebGPURenderCommandEncoder(GPURenderCommandEncoder&& encoder)46 WebMetalRenderCommandEncoder::WebMetalRenderCommandEncoder(GPURenderCommandEncoder&& encoder) 47 47 : m_encoder { WTFMove(encoder) } 48 48 { 49 49 } 50 50 51 Web GPURenderCommandEncoder::~WebGPURenderCommandEncoder() = default;51 WebMetalRenderCommandEncoder::~WebMetalRenderCommandEncoder() = default; 52 52 53 void Web GPURenderCommandEncoder::setRenderPipelineState(WebGPURenderPipelineState& pipelineState)53 void WebMetalRenderCommandEncoder::setRenderPipelineState(WebMetalRenderPipelineState& pipelineState) 54 54 { 55 55 m_encoder.setRenderPipelineState(pipelineState.state()); 56 56 } 57 57 58 void Web GPURenderCommandEncoder::setDepthStencilState(WebGPUDepthStencilState& depthStencilState)58 void WebMetalRenderCommandEncoder::setDepthStencilState(WebMetalDepthStencilState& depthStencilState) 59 59 { 60 60 m_encoder.setDepthStencilState(depthStencilState.state()); 61 61 } 62 62 63 void Web GPURenderCommandEncoder::setVertexBuffer(WebGPUBuffer& buffer, unsigned offset, unsigned index)63 void WebMetalRenderCommandEncoder::setVertexBuffer(WebMetalBuffer& buffer, unsigned offset, unsigned index) 64 64 { 65 65 m_encoder.setVertexBuffer(buffer.buffer(), offset, index); 66 66 } 67 67 68 void Web GPURenderCommandEncoder::setFragmentBuffer(WebGPUBuffer& buffer, unsigned offset, unsigned index)68 void WebMetalRenderCommandEncoder::setFragmentBuffer(WebMetalBuffer& buffer, unsigned offset, unsigned index) 69 69 { 70 70 m_encoder.setFragmentBuffer(buffer.buffer(), offset, index); 71 71 } 72 72 73 void Web GPURenderCommandEncoder::drawPrimitives(unsigned type, unsigned start, unsigned count)73 void WebMetalRenderCommandEncoder::drawPrimitives(unsigned type, unsigned start, unsigned count) 74 74 { 75 75 m_encoder.drawPrimitives(type, start, count); 76 76 } 77 77 78 void Web GPURenderCommandEncoder::endEncoding()78 void WebMetalRenderCommandEncoder::endEncoding() 79 79 { 80 80 return m_encoder.endEncoding(); -
trunk/Source/WebCore/html/canvas/WebMetalRenderCommandEncoder.h
r236953 r236954 26 26 #pragma once 27 27 28 #if ENABLE(WEB GPU)28 #if ENABLE(WEBMETAL) 29 29 30 30 #include "GPURenderCommandEncoder.h" … … 34 34 namespace WebCore { 35 35 36 class Web GPUBuffer;37 class Web GPUDepthStencilState;38 class Web GPURenderPipelineState;36 class WebMetalBuffer; 37 class WebMetalDepthStencilState; 38 class WebMetalRenderPipelineState; 39 39 40 class Web GPURenderCommandEncoder : public RefCounted<WebGPURenderCommandEncoder> {40 class WebMetalRenderCommandEncoder : public RefCounted<WebMetalRenderCommandEncoder> { 41 41 public: 42 ~Web GPURenderCommandEncoder();43 static Ref<Web GPURenderCommandEncoder> create(GPURenderCommandEncoder&&);42 ~WebMetalRenderCommandEncoder(); 43 static Ref<WebMetalRenderCommandEncoder> create(GPURenderCommandEncoder&&); 44 44 45 void setRenderPipelineState(Web GPURenderPipelineState&);46 void setDepthStencilState(Web GPUDepthStencilState&);47 void setVertexBuffer(Web GPUBuffer&, unsigned offset, unsigned index);48 void setFragmentBuffer(Web GPUBuffer&, unsigned offset, unsigned index);45 void setRenderPipelineState(WebMetalRenderPipelineState&); 46 void setDepthStencilState(WebMetalDepthStencilState&); 47 void setVertexBuffer(WebMetalBuffer&, unsigned offset, unsigned index); 48 void setFragmentBuffer(WebMetalBuffer&, unsigned offset, unsigned index); 49 49 void drawPrimitives(unsigned type, unsigned start, unsigned count); 50 50 void endEncoding(); … … 53 53 54 54 private: 55 explicit Web GPURenderCommandEncoder(GPURenderCommandEncoder&&);55 explicit WebMetalRenderCommandEncoder(GPURenderCommandEncoder&&); 56 56 57 57 GPURenderCommandEncoder m_encoder; -
trunk/Source/WebCore/html/canvas/WebMetalRenderCommandEncoder.idl
r236953 r236954 25 25 26 26 [ 27 Conditional=WEB GPU,28 EnabledAtRuntime=Web GPU,27 Conditional=WEBMETAL, 28 EnabledAtRuntime=WebMetal, 29 29 ImplementationLacksVTable 30 ] interface Web GPURenderCommandEncoder {30 ] interface WebMetalRenderCommandEncoder { 31 31 32 void setRenderPipelineState(Web GPURenderPipelineState pipelineState);33 void setDepthStencilState(Web GPUDepthStencilState depthStencilState);34 void setVertexBuffer(Web GPUBuffer buffer, unsigned long offset, unsigned long index);35 void setFragmentBuffer(Web GPUBuffer buffer, unsigned long offset, unsigned long index);32 void setRenderPipelineState(WebMetalRenderPipelineState pipelineState); 33 void setDepthStencilState(WebMetalDepthStencilState depthStencilState); 34 void setVertexBuffer(WebMetalBuffer buffer, unsigned long offset, unsigned long index); 35 void setFragmentBuffer(WebMetalBuffer buffer, unsigned long offset, unsigned long index); 36 36 void drawPrimitives(unsigned long type, unsigned long start, unsigned long count); 37 37 -
trunk/Source/WebCore/html/canvas/WebMetalRenderPassAttachmentDescriptor.cpp
r236953 r236954 25 25 26 26 #include "config.h" 27 #include "Web GPURenderPassAttachmentDescriptor.h"27 #include "WebMetalRenderPassAttachmentDescriptor.h" 28 28 29 #if ENABLE(WEB GPU)29 #if ENABLE(WEBMETAL) 30 30 31 31 #include "GPURenderPassAttachmentDescriptor.h" 32 32 #include "GPUTexture.h" 33 #include "Web GPUTexture.h"33 #include "WebMetalTexture.h" 34 34 35 35 namespace WebCore { 36 36 37 Web GPURenderPassAttachmentDescriptor::WebGPURenderPassAttachmentDescriptor()37 WebMetalRenderPassAttachmentDescriptor::WebMetalRenderPassAttachmentDescriptor() 38 38 { 39 39 } 40 40 41 Web GPURenderPassAttachmentDescriptor::~WebGPURenderPassAttachmentDescriptor() = default;41 WebMetalRenderPassAttachmentDescriptor::~WebMetalRenderPassAttachmentDescriptor() = default; 42 42 43 unsigned Web GPURenderPassAttachmentDescriptor::loadAction() const43 unsigned WebMetalRenderPassAttachmentDescriptor::loadAction() const 44 44 { 45 45 return descriptor().loadAction(); 46 46 } 47 47 48 void Web GPURenderPassAttachmentDescriptor::setLoadAction(unsigned newLoadAction)48 void WebMetalRenderPassAttachmentDescriptor::setLoadAction(unsigned newLoadAction) 49 49 { 50 50 descriptor().setLoadAction(newLoadAction); 51 51 } 52 52 53 unsigned Web GPURenderPassAttachmentDescriptor::storeAction() const53 unsigned WebMetalRenderPassAttachmentDescriptor::storeAction() const 54 54 { 55 55 return descriptor().storeAction(); 56 56 } 57 57 58 void Web GPURenderPassAttachmentDescriptor::setStoreAction(unsigned newStoreAction)58 void WebMetalRenderPassAttachmentDescriptor::setStoreAction(unsigned newStoreAction) 59 59 { 60 60 descriptor().setStoreAction(newStoreAction); 61 61 } 62 62 63 Web GPUTexture* WebGPURenderPassAttachmentDescriptor::texture() const63 WebMetalTexture* WebMetalRenderPassAttachmentDescriptor::texture() const 64 64 { 65 65 return m_texture.get(); 66 66 } 67 67 68 void Web GPURenderPassAttachmentDescriptor::setTexture(RefPtr<WebGPUTexture>&& newTexture)68 void WebMetalRenderPassAttachmentDescriptor::setTexture(RefPtr<WebMetalTexture>&& newTexture) 69 69 { 70 70 // FIXME: Why can't we set this to null? -
trunk/Source/WebCore/html/canvas/WebMetalRenderPassAttachmentDescriptor.h
r236953 r236954 26 26 #pragma once 27 27 28 #if ENABLE(WEB GPU)28 #if ENABLE(WEBMETAL) 29 29 30 30 #include <wtf/Ref.h> … … 34 34 35 35 class GPURenderPassAttachmentDescriptor; 36 class Web GPUTexture;36 class WebMetalTexture; 37 37 38 class Web GPURenderPassAttachmentDescriptor : public RefCounted<WebGPURenderPassAttachmentDescriptor> {38 class WebMetalRenderPassAttachmentDescriptor : public RefCounted<WebMetalRenderPassAttachmentDescriptor> { 39 39 public: 40 virtual ~Web GPURenderPassAttachmentDescriptor();40 virtual ~WebMetalRenderPassAttachmentDescriptor(); 41 41 42 42 unsigned loadAction() const; … … 46 46 void setStoreAction(unsigned); 47 47 48 Web GPUTexture* texture() const;49 void setTexture(RefPtr<Web GPUTexture>&&);48 WebMetalTexture* texture() const; 49 void setTexture(RefPtr<WebMetalTexture>&&); 50 50 51 51 virtual bool isColorAttachmentDescriptor() const = 0; 52 52 53 53 protected: 54 Web GPURenderPassAttachmentDescriptor();54 WebMetalRenderPassAttachmentDescriptor(); 55 55 56 56 private: 57 57 virtual const GPURenderPassAttachmentDescriptor& descriptor() const = 0; 58 58 59 RefPtr<Web GPUTexture> m_texture;59 RefPtr<WebMetalTexture> m_texture; 60 60 }; 61 61 -
trunk/Source/WebCore/html/canvas/WebMetalRenderPassAttachmentDescriptor.idl
r236953 r236954 25 25 26 26 [ 27 Conditional=WEB GPU,28 EnabledAtRuntime=Web GPU,27 Conditional=WEBMETAL, 28 EnabledAtRuntime=WebMetal, 29 29 CustomToJSObject 30 30 ] 31 interface Web GPURenderPassAttachmentDescriptor {31 interface WebMetalRenderPassAttachmentDescriptor { 32 32 33 attribute Web GPUTexture? texture;33 attribute WebMetalTexture? texture; 34 34 35 attribute unsigned long loadAction; // should be Web GPULoadAction36 attribute unsigned long storeAction; // should be Web GPUStoreAction35 attribute unsigned long loadAction; // should be WebMetalLoadAction 36 attribute unsigned long storeAction; // should be WebMetalStoreAction 37 37 38 38 }; -
trunk/Source/WebCore/html/canvas/WebMetalRenderPassColorAttachmentDescriptor.cpp
r236953 r236954 25 25 26 26 #include "config.h" 27 #include "Web GPURenderPassColorAttachmentDescriptor.h"27 #include "WebMetalRenderPassColorAttachmentDescriptor.h" 28 28 29 #if ENABLE(WEB GPU)29 #if ENABLE(WEBMETAL) 30 30 31 31 #include "GPUTexture.h" 32 #include "Web GPUTexture.h"32 #include "WebMetalTexture.h" 33 33 #include <wtf/Vector.h> 34 34 35 35 namespace WebCore { 36 36 37 Ref<Web GPURenderPassColorAttachmentDescriptor> WebGPURenderPassColorAttachmentDescriptor::create(GPURenderPassColorAttachmentDescriptor&& descriptor)37 Ref<WebMetalRenderPassColorAttachmentDescriptor> WebMetalRenderPassColorAttachmentDescriptor::create(GPURenderPassColorAttachmentDescriptor&& descriptor) 38 38 { 39 return adoptRef(*new Web GPURenderPassColorAttachmentDescriptor(WTFMove(descriptor)));39 return adoptRef(*new WebMetalRenderPassColorAttachmentDescriptor(WTFMove(descriptor))); 40 40 } 41 41 42 Web GPURenderPassColorAttachmentDescriptor::WebGPURenderPassColorAttachmentDescriptor(GPURenderPassColorAttachmentDescriptor&& descriptor)42 WebMetalRenderPassColorAttachmentDescriptor::WebMetalRenderPassColorAttachmentDescriptor(GPURenderPassColorAttachmentDescriptor&& descriptor) 43 43 : m_descriptor { WTFMove(descriptor) } 44 44 { 45 45 } 46 46 47 Web GPURenderPassColorAttachmentDescriptor::~WebGPURenderPassColorAttachmentDescriptor() = default;47 WebMetalRenderPassColorAttachmentDescriptor::~WebMetalRenderPassColorAttachmentDescriptor() = default; 48 48 49 const GPURenderPassAttachmentDescriptor& Web GPURenderPassColorAttachmentDescriptor::descriptor() const49 const GPURenderPassAttachmentDescriptor& WebMetalRenderPassColorAttachmentDescriptor::descriptor() const 50 50 { 51 51 return m_descriptor; 52 52 } 53 53 54 Vector<float> Web GPURenderPassColorAttachmentDescriptor::clearColor() const54 Vector<float> WebMetalRenderPassColorAttachmentDescriptor::clearColor() const 55 55 { 56 56 return m_descriptor.clearColor(); 57 57 } 58 58 59 void Web GPURenderPassColorAttachmentDescriptor::setClearColor(const Vector<float>& newClearColor)59 void WebMetalRenderPassColorAttachmentDescriptor::setClearColor(const Vector<float>& newClearColor) 60 60 { 61 61 m_descriptor.setClearColor(newClearColor); -
trunk/Source/WebCore/html/canvas/WebMetalRenderPassColorAttachmentDescriptor.h
r236953 r236954 26 26 #pragma once 27 27 28 #if ENABLE(WEB GPU)28 #if ENABLE(WEBMETAL) 29 29 30 30 #include "GPURenderPassColorAttachmentDescriptor.h" 31 #include "Web GPURenderPassAttachmentDescriptor.h"31 #include "WebMetalRenderPassAttachmentDescriptor.h" 32 32 33 33 namespace WebCore { 34 34 35 class Web GPURenderPassColorAttachmentDescriptor final : public WebGPURenderPassAttachmentDescriptor {35 class WebMetalRenderPassColorAttachmentDescriptor final : public WebMetalRenderPassAttachmentDescriptor { 36 36 public: 37 virtual ~Web GPURenderPassColorAttachmentDescriptor();38 static Ref<Web GPURenderPassColorAttachmentDescriptor> create(GPURenderPassColorAttachmentDescriptor&&);37 virtual ~WebMetalRenderPassColorAttachmentDescriptor(); 38 static Ref<WebMetalRenderPassColorAttachmentDescriptor> create(GPURenderPassColorAttachmentDescriptor&&); 39 39 40 40 Vector<float> clearColor() const; … … 42 42 43 43 private: 44 explicit Web GPURenderPassColorAttachmentDescriptor(GPURenderPassColorAttachmentDescriptor&&);44 explicit WebMetalRenderPassColorAttachmentDescriptor(GPURenderPassColorAttachmentDescriptor&&); 45 45 46 46 const GPURenderPassAttachmentDescriptor& descriptor() const final; -
trunk/Source/WebCore/html/canvas/WebMetalRenderPassColorAttachmentDescriptor.idl
r236953 r236954 25 25 26 26 [ 27 Conditional=WEB GPU,28 EnabledAtRuntime=Web GPU29 ] interface Web GPURenderPassColorAttachmentDescriptor : WebGPURenderPassAttachmentDescriptor {27 Conditional=WEBMETAL, 28 EnabledAtRuntime=WebMetal 29 ] interface WebMetalRenderPassColorAttachmentDescriptor : WebMetalRenderPassAttachmentDescriptor { 30 30 31 31 attribute sequence<float> clearColor; -
trunk/Source/WebCore/html/canvas/WebMetalRenderPassDepthAttachmentDescriptor.cpp
r236953 r236954 25 25 26 26 #include "config.h" 27 #include "Web GPURenderPassDepthAttachmentDescriptor.h"27 #include "WebMetalRenderPassDepthAttachmentDescriptor.h" 28 28 29 #if ENABLE(WEB GPU)29 #if ENABLE(WEBMETAL) 30 30 31 #include "Web GPUTexture.h"31 #include "WebMetalTexture.h" 32 32 33 33 namespace WebCore { 34 34 35 Ref<Web GPURenderPassDepthAttachmentDescriptor> WebGPURenderPassDepthAttachmentDescriptor::create(GPURenderPassDepthAttachmentDescriptor&& descriptor)35 Ref<WebMetalRenderPassDepthAttachmentDescriptor> WebMetalRenderPassDepthAttachmentDescriptor::create(GPURenderPassDepthAttachmentDescriptor&& descriptor) 36 36 { 37 return adoptRef(*new Web GPURenderPassDepthAttachmentDescriptor(WTFMove(descriptor)));37 return adoptRef(*new WebMetalRenderPassDepthAttachmentDescriptor(WTFMove(descriptor))); 38 38 } 39 39 40 Web GPURenderPassDepthAttachmentDescriptor::WebGPURenderPassDepthAttachmentDescriptor(GPURenderPassDepthAttachmentDescriptor&& descriptor)40 WebMetalRenderPassDepthAttachmentDescriptor::WebMetalRenderPassDepthAttachmentDescriptor(GPURenderPassDepthAttachmentDescriptor&& descriptor) 41 41 : m_descriptor { WTFMove(descriptor) } 42 42 { 43 43 } 44 44 45 Web GPURenderPassDepthAttachmentDescriptor::~WebGPURenderPassDepthAttachmentDescriptor() = default;45 WebMetalRenderPassDepthAttachmentDescriptor::~WebMetalRenderPassDepthAttachmentDescriptor() = default; 46 46 47 double Web GPURenderPassDepthAttachmentDescriptor::clearDepth() const47 double WebMetalRenderPassDepthAttachmentDescriptor::clearDepth() const 48 48 { 49 49 return m_descriptor.clearDepth(); 50 50 } 51 51 52 void Web GPURenderPassDepthAttachmentDescriptor::setClearDepth(double newClearDepth)52 void WebMetalRenderPassDepthAttachmentDescriptor::setClearDepth(double newClearDepth) 53 53 { 54 54 m_descriptor.setClearDepth(newClearDepth); 55 55 } 56 56 57 const GPURenderPassAttachmentDescriptor& Web GPURenderPassDepthAttachmentDescriptor::descriptor() const57 const GPURenderPassAttachmentDescriptor& WebMetalRenderPassDepthAttachmentDescriptor::descriptor() const 58 58 { 59 59 return m_descriptor; -
trunk/Source/WebCore/html/canvas/WebMetalRenderPassDepthAttachmentDescriptor.h
r236953 r236954 26 26 #pragma once 27 27 28 #if ENABLE(WEB GPU)28 #if ENABLE(WEBMETAL) 29 29 30 30 #include "GPURenderPassDepthAttachmentDescriptor.h" 31 #include "Web GPURenderPassAttachmentDescriptor.h"31 #include "WebMetalRenderPassAttachmentDescriptor.h" 32 32 33 33 namespace WebCore { 34 34 35 class Web GPURenderPassDepthAttachmentDescriptor final : public WebGPURenderPassAttachmentDescriptor {35 class WebMetalRenderPassDepthAttachmentDescriptor final : public WebMetalRenderPassAttachmentDescriptor { 36 36 public: 37 virtual ~Web GPURenderPassDepthAttachmentDescriptor();38 static Ref<Web GPURenderPassDepthAttachmentDescriptor> create(GPURenderPassDepthAttachmentDescriptor&&);37 virtual ~WebMetalRenderPassDepthAttachmentDescriptor(); 38 static Ref<WebMetalRenderPassDepthAttachmentDescriptor> create(GPURenderPassDepthAttachmentDescriptor&&); 39 39 40 40 double clearDepth() const; … … 42 42 43 43 private: 44 explicit Web GPURenderPassDepthAttachmentDescriptor(GPURenderPassDepthAttachmentDescriptor&&);44 explicit WebMetalRenderPassDepthAttachmentDescriptor(GPURenderPassDepthAttachmentDescriptor&&); 45 45 46 46 const GPURenderPassAttachmentDescriptor& descriptor() const final; -
trunk/Source/WebCore/html/canvas/WebMetalRenderPassDepthAttachmentDescriptor.idl
r236953 r236954 25 25 26 26 [ 27 Conditional=WEB GPU,28 EnabledAtRuntime=Web GPU29 ] interface Web GPURenderPassDepthAttachmentDescriptor : WebGPURenderPassAttachmentDescriptor {27 Conditional=WEBMETAL, 28 EnabledAtRuntime=WebMetal 29 ] interface WebMetalRenderPassDepthAttachmentDescriptor : WebMetalRenderPassAttachmentDescriptor { 30 30 31 31 attribute unrestricted double clearDepth; -
trunk/Source/WebCore/html/canvas/WebMetalRenderPassDescriptor.cpp
r236953 r236954 25 25 26 26 #include "config.h" 27 #include "Web GPURenderPassDescriptor.h"27 #include "WebMetalRenderPassDescriptor.h" 28 28 29 #if ENABLE(WEB GPU)29 #if ENABLE(WEBMETAL) 30 30 31 31 namespace WebCore { 32 32 33 Ref<Web GPURenderPassDescriptor> WebGPURenderPassDescriptor::create()33 Ref<WebMetalRenderPassDescriptor> WebMetalRenderPassDescriptor::create() 34 34 { 35 return adoptRef(*new Web GPURenderPassDescriptor);35 return adoptRef(*new WebMetalRenderPassDescriptor); 36 36 } 37 37 38 Web GPURenderPassDescriptor::WebGPURenderPassDescriptor() = default;38 WebMetalRenderPassDescriptor::WebMetalRenderPassDescriptor() = default; 39 39 40 Web GPURenderPassDescriptor::~WebGPURenderPassDescriptor() = default;40 WebMetalRenderPassDescriptor::~WebMetalRenderPassDescriptor() = default; 41 41 42 Web GPURenderPassDepthAttachmentDescriptor& WebGPURenderPassDescriptor::depthAttachment()42 WebMetalRenderPassDepthAttachmentDescriptor& WebMetalRenderPassDescriptor::depthAttachment() 43 43 { 44 44 if (!m_depthAttachment) 45 m_depthAttachment = Web GPURenderPassDepthAttachmentDescriptor::create(m_descriptor.depthAttachment());45 m_depthAttachment = WebMetalRenderPassDepthAttachmentDescriptor::create(m_descriptor.depthAttachment()); 46 46 return *m_depthAttachment; 47 47 } 48 48 49 const Vector<RefPtr<Web GPURenderPassColorAttachmentDescriptor>>& WebGPURenderPassDescriptor::colorAttachments()49 const Vector<RefPtr<WebMetalRenderPassColorAttachmentDescriptor>>& WebMetalRenderPassDescriptor::colorAttachments() 50 50 { 51 51 if (m_colorAttachments.isEmpty()) { … … 54 54 m_colorAttachments.reserveInitialCapacity(attachments.size()); 55 55 for (auto& attachment : attachments) 56 m_colorAttachments.uncheckedAppend(Web GPURenderPassColorAttachmentDescriptor::create(WTFMove(attachment)));56 m_colorAttachments.uncheckedAppend(WebMetalRenderPassColorAttachmentDescriptor::create(WTFMove(attachment))); 57 57 } 58 58 return m_colorAttachments; -
trunk/Source/WebCore/html/canvas/WebMetalRenderPassDescriptor.h
r236953 r236954 26 26 #pragma once 27 27 28 #if ENABLE(WEB GPU)28 #if ENABLE(WEBMETAL) 29 29 30 30 #include "GPURenderPassDescriptor.h" 31 #include "Web GPURenderPassColorAttachmentDescriptor.h"32 #include "Web GPURenderPassDepthAttachmentDescriptor.h"31 #include "WebMetalRenderPassColorAttachmentDescriptor.h" 32 #include "WebMetalRenderPassDepthAttachmentDescriptor.h" 33 33 #include <wtf/Ref.h> 34 34 #include <wtf/RefCounted.h> … … 37 37 namespace WebCore { 38 38 39 class Web GPURenderPassDescriptor : public RefCounted<WebGPURenderPassDescriptor> {39 class WebMetalRenderPassDescriptor : public RefCounted<WebMetalRenderPassDescriptor> { 40 40 public: 41 ~Web GPURenderPassDescriptor();42 static Ref<Web GPURenderPassDescriptor> create();41 ~WebMetalRenderPassDescriptor(); 42 static Ref<WebMetalRenderPassDescriptor> create(); 43 43 44 Web GPURenderPassDepthAttachmentDescriptor& depthAttachment();45 const Vector<RefPtr<Web GPURenderPassColorAttachmentDescriptor>>& colorAttachments();44 WebMetalRenderPassDepthAttachmentDescriptor& depthAttachment(); 45 const Vector<RefPtr<WebMetalRenderPassColorAttachmentDescriptor>>& colorAttachments(); 46 46 47 47 const GPURenderPassDescriptor& descriptor() const { return m_descriptor; } 48 48 49 49 private: 50 Web GPURenderPassDescriptor();50 WebMetalRenderPassDescriptor(); 51 51 52 Vector<RefPtr<Web GPURenderPassColorAttachmentDescriptor>> m_colorAttachments;53 RefPtr<Web GPURenderPassDepthAttachmentDescriptor> m_depthAttachment;52 Vector<RefPtr<WebMetalRenderPassColorAttachmentDescriptor>> m_colorAttachments; 53 RefPtr<WebMetalRenderPassDepthAttachmentDescriptor> m_depthAttachment; 54 54 55 55 GPURenderPassDescriptor m_descriptor; -
trunk/Source/WebCore/html/canvas/WebMetalRenderPassDescriptor.idl
r236953 r236954 26 26 [ 27 27 Constructor, 28 Conditional=WEB GPU,29 EnabledAtRuntime=Web GPU,28 Conditional=WEBMETAL, 29 EnabledAtRuntime=WebMetal, 30 30 ImplementationLacksVTable 31 ] interface Web GPURenderPassDescriptor {31 ] interface WebMetalRenderPassDescriptor { 32 32 33 readonly attribute sequence<Web GPURenderPassColorAttachmentDescriptor> colorAttachments;34 readonly attribute Web GPURenderPassDepthAttachmentDescriptor depthAttachment;35 //readonly attribute Web GPURenderPassStencilAttachmentDescriptor stencilAttachment;33 readonly attribute sequence<WebMetalRenderPassColorAttachmentDescriptor> colorAttachments; 34 readonly attribute WebMetalRenderPassDepthAttachmentDescriptor depthAttachment; 35 //readonly attribute WebMetalRenderPassStencilAttachmentDescriptor stencilAttachment; 36 36 37 37 // renderTargetArrayLength -
trunk/Source/WebCore/html/canvas/WebMetalRenderPipelineColorAttachmentDescriptor.cpp
r236953 r236954 25 25 26 26 #include "config.h" 27 #include "Web GPURenderPipelineColorAttachmentDescriptor.h"27 #include "WebMetalRenderPipelineColorAttachmentDescriptor.h" 28 28 29 #if ENABLE(WEB GPU)29 #if ENABLE(WEBMETAL) 30 30 31 31 namespace WebCore { 32 32 33 Ref<Web GPURenderPipelineColorAttachmentDescriptor> WebGPURenderPipelineColorAttachmentDescriptor::create(GPURenderPipelineColorAttachmentDescriptor&& descriptor)33 Ref<WebMetalRenderPipelineColorAttachmentDescriptor> WebMetalRenderPipelineColorAttachmentDescriptor::create(GPURenderPipelineColorAttachmentDescriptor&& descriptor) 34 34 { 35 return adoptRef(*new Web GPURenderPipelineColorAttachmentDescriptor(WTFMove(descriptor)));35 return adoptRef(*new WebMetalRenderPipelineColorAttachmentDescriptor(WTFMove(descriptor))); 36 36 } 37 37 38 Web GPURenderPipelineColorAttachmentDescriptor::WebGPURenderPipelineColorAttachmentDescriptor(GPURenderPipelineColorAttachmentDescriptor&& descriptor)38 WebMetalRenderPipelineColorAttachmentDescriptor::WebMetalRenderPipelineColorAttachmentDescriptor(GPURenderPipelineColorAttachmentDescriptor&& descriptor) 39 39 : m_descriptor { WTFMove(descriptor) } 40 40 { 41 41 } 42 42 43 unsigned Web GPURenderPipelineColorAttachmentDescriptor::pixelFormat() const43 unsigned WebMetalRenderPipelineColorAttachmentDescriptor::pixelFormat() const 44 44 { 45 45 return m_descriptor.pixelFormat(); 46 46 } 47 47 48 void Web GPURenderPipelineColorAttachmentDescriptor::setPixelFormat(unsigned newPixelFormat)48 void WebMetalRenderPipelineColorAttachmentDescriptor::setPixelFormat(unsigned newPixelFormat) 49 49 { 50 50 m_descriptor.setPixelFormat(newPixelFormat); -
trunk/Source/WebCore/html/canvas/WebMetalRenderPipelineColorAttachmentDescriptor.h
r236953 r236954 26 26 #pragma once 27 27 28 #if ENABLE(WEB GPU)28 #if ENABLE(WEBMETAL) 29 29 30 30 #include "GPURenderPipelineColorAttachmentDescriptor.h" … … 34 34 namespace WebCore { 35 35 36 class Web GPURenderPipelineColorAttachmentDescriptor : public RefCounted<WebGPURenderPipelineColorAttachmentDescriptor> {36 class WebMetalRenderPipelineColorAttachmentDescriptor : public RefCounted<WebMetalRenderPipelineColorAttachmentDescriptor> { 37 37 public: 38 static Ref<Web GPURenderPipelineColorAttachmentDescriptor> create(GPURenderPipelineColorAttachmentDescriptor&&);38 static Ref<WebMetalRenderPipelineColorAttachmentDescriptor> create(GPURenderPipelineColorAttachmentDescriptor&&); 39 39 40 40 unsigned pixelFormat() const; … … 42 42 43 43 private: 44 explicit Web GPURenderPipelineColorAttachmentDescriptor(GPURenderPipelineColorAttachmentDescriptor&&);44 explicit WebMetalRenderPipelineColorAttachmentDescriptor(GPURenderPipelineColorAttachmentDescriptor&&); 45 45 46 46 GPURenderPipelineColorAttachmentDescriptor m_descriptor; -
trunk/Source/WebCore/html/canvas/WebMetalRenderPipelineColorAttachmentDescriptor.idl
r236953 r236954 25 25 26 26 [ 27 Conditional=WEB GPU,28 EnabledAtRuntime=Web GPU,27 Conditional=WEBMETAL, 28 EnabledAtRuntime=WebMetal, 29 29 ImplementationLacksVTable 30 ] interface Web GPURenderPipelineColorAttachmentDescriptor {30 ] interface WebMetalRenderPipelineColorAttachmentDescriptor { 31 31 32 32 attribute unsigned long pixelFormat; // should be MTLPixelFormat -
trunk/Source/WebCore/html/canvas/WebMetalRenderPipelineDescriptor.cpp
r236953 r236954 25 25 26 26 #include "config.h" 27 #include "Web GPURenderPipelineDescriptor.h"27 #include "WebMetalRenderPipelineDescriptor.h" 28 28 29 #if ENABLE(WEB GPU)29 #if ENABLE(WEBMETAL) 30 30 31 31 #include "GPUFunction.h" 32 32 #include "GPURenderPipelineColorAttachmentDescriptor.h" 33 #include "Web GPUFunction.h"34 #include "Web GPURenderPipelineColorAttachmentDescriptor.h"33 #include "WebMetalFunction.h" 34 #include "WebMetalRenderPipelineColorAttachmentDescriptor.h" 35 35 36 36 namespace WebCore { 37 37 38 Ref<Web GPURenderPipelineDescriptor> WebGPURenderPipelineDescriptor::create()38 Ref<WebMetalRenderPipelineDescriptor> WebMetalRenderPipelineDescriptor::create() 39 39 { 40 return adoptRef(*new Web GPURenderPipelineDescriptor);40 return adoptRef(*new WebMetalRenderPipelineDescriptor); 41 41 } 42 42 43 Web GPURenderPipelineDescriptor::WebGPURenderPipelineDescriptor() = default;43 WebMetalRenderPipelineDescriptor::WebMetalRenderPipelineDescriptor() = default; 44 44 45 Web GPURenderPipelineDescriptor::~WebGPURenderPipelineDescriptor() = default;45 WebMetalRenderPipelineDescriptor::~WebMetalRenderPipelineDescriptor() = default; 46 46 47 Web GPUFunction* WebGPURenderPipelineDescriptor::vertexFunction() const47 WebMetalFunction* WebMetalRenderPipelineDescriptor::vertexFunction() const 48 48 { 49 49 return m_vertexFunction.get(); 50 50 } 51 51 52 void Web GPURenderPipelineDescriptor::setVertexFunction(RefPtr<WebGPUFunction>&& newVertexFunction)52 void WebMetalRenderPipelineDescriptor::setVertexFunction(RefPtr<WebMetalFunction>&& newVertexFunction) 53 53 { 54 54 // FIXME: Why can't we set this to null? … … 61 61 } 62 62 63 Web GPUFunction* WebGPURenderPipelineDescriptor::fragmentFunction() const63 WebMetalFunction* WebMetalRenderPipelineDescriptor::fragmentFunction() const 64 64 { 65 65 return m_fragmentFunction.get(); 66 66 } 67 67 68 void Web GPURenderPipelineDescriptor::setFragmentFunction(RefPtr<WebGPUFunction>&& newFragmentFunction)68 void WebMetalRenderPipelineDescriptor::setFragmentFunction(RefPtr<WebMetalFunction>&& newFragmentFunction) 69 69 { 70 70 // FIXME: Why can't we set this to null? … … 77 77 } 78 78 79 const Vector<RefPtr<Web GPURenderPipelineColorAttachmentDescriptor>>& WebGPURenderPipelineDescriptor::colorAttachments()79 const Vector<RefPtr<WebMetalRenderPipelineColorAttachmentDescriptor>>& WebMetalRenderPipelineDescriptor::colorAttachments() 80 80 { 81 81 if (!m_colorAttachments.size()) { … … 83 83 m_colorAttachments.reserveInitialCapacity(attachments.size()); 84 84 for (auto& attachment : attachments) 85 m_colorAttachments.uncheckedAppend(Web GPURenderPipelineColorAttachmentDescriptor::create(WTFMove(attachment)));85 m_colorAttachments.uncheckedAppend(WebMetalRenderPipelineColorAttachmentDescriptor::create(WTFMove(attachment))); 86 86 } 87 87 return m_colorAttachments; 88 88 } 89 89 90 unsigned Web GPURenderPipelineDescriptor::depthAttachmentPixelFormat() const90 unsigned WebMetalRenderPipelineDescriptor::depthAttachmentPixelFormat() const 91 91 { 92 92 return m_descriptor.depthAttachmentPixelFormat(); 93 93 } 94 94 95 void Web GPURenderPipelineDescriptor::setDepthAttachmentPixelFormat(unsigned newPixelFormat)95 void WebMetalRenderPipelineDescriptor::setDepthAttachmentPixelFormat(unsigned newPixelFormat) 96 96 { 97 97 m_descriptor.setDepthAttachmentPixelFormat(newPixelFormat); 98 98 } 99 99 100 void Web GPURenderPipelineDescriptor::reset()100 void WebMetalRenderPipelineDescriptor::reset() 101 101 { 102 102 m_vertexFunction = nullptr; -
trunk/Source/WebCore/html/canvas/WebMetalRenderPipelineDescriptor.h
r236953 r236954 26 26 #pragma once 27 27 28 #if ENABLE(WEB GPU)28 #if ENABLE(WEBMETAL) 29 29 30 30 #include "GPURenderPipelineDescriptor.h" 31 #include "Web GPURenderPipelineColorAttachmentDescriptor.h"31 #include "WebMetalRenderPipelineColorAttachmentDescriptor.h" 32 32 #include <wtf/Ref.h> 33 33 #include <wtf/RefCounted.h> … … 38 38 class GPUFunction; 39 39 class GPURenderPipelineDescriptor; 40 class Web GPUFunction;41 class Web GPURenderPipelineColorAttachmentDescriptor;40 class WebMetalFunction; 41 class WebMetalRenderPipelineColorAttachmentDescriptor; 42 42 43 class Web GPURenderPipelineDescriptor : public RefCounted<WebGPURenderPipelineDescriptor> {43 class WebMetalRenderPipelineDescriptor : public RefCounted<WebMetalRenderPipelineDescriptor> { 44 44 public: 45 ~Web GPURenderPipelineDescriptor();46 static Ref<Web GPURenderPipelineDescriptor> create();45 ~WebMetalRenderPipelineDescriptor(); 46 static Ref<WebMetalRenderPipelineDescriptor> create(); 47 47 48 Web GPUFunction* vertexFunction() const;49 void setVertexFunction(RefPtr<Web GPUFunction>&&);48 WebMetalFunction* vertexFunction() const; 49 void setVertexFunction(RefPtr<WebMetalFunction>&&); 50 50 51 Web GPUFunction* fragmentFunction() const;52 void setFragmentFunction(RefPtr<Web GPUFunction>&&);51 WebMetalFunction* fragmentFunction() const; 52 void setFragmentFunction(RefPtr<WebMetalFunction>&&); 53 53 54 const Vector<RefPtr<Web GPURenderPipelineColorAttachmentDescriptor>>& colorAttachments();54 const Vector<RefPtr<WebMetalRenderPipelineColorAttachmentDescriptor>>& colorAttachments(); 55 55 56 56 unsigned depthAttachmentPixelFormat() const; … … 62 62 63 63 private: 64 Web GPURenderPipelineDescriptor();64 WebMetalRenderPipelineDescriptor(); 65 65 66 RefPtr<Web GPUFunction> m_vertexFunction;67 RefPtr<Web GPUFunction> m_fragmentFunction;66 RefPtr<WebMetalFunction> m_vertexFunction; 67 RefPtr<WebMetalFunction> m_fragmentFunction; 68 68 69 Vector<RefPtr<Web GPURenderPipelineColorAttachmentDescriptor>> m_colorAttachments;69 Vector<RefPtr<WebMetalRenderPipelineColorAttachmentDescriptor>> m_colorAttachments; 70 70 71 71 GPURenderPipelineDescriptor m_descriptor; -
trunk/Source/WebCore/html/canvas/WebMetalRenderPipelineDescriptor.idl
r236953 r236954 26 26 [ 27 27 Constructor, 28 Conditional=WEB GPU,29 EnabledAtRuntime=Web GPU,28 Conditional=WEBMETAL, 29 EnabledAtRuntime=WebMetal, 30 30 ImplementationLacksVTable 31 ] interface Web GPURenderPipelineDescriptor {31 ] interface WebMetalRenderPipelineDescriptor { 32 32 33 attribute Web GPUFunction? vertexFunction;34 attribute Web GPUFunction? fragmentFunction;33 attribute WebMetalFunction? vertexFunction; 34 attribute WebMetalFunction? fragmentFunction; 35 35 36 readonly attribute sequence<Web GPURenderPipelineColorAttachmentDescriptor> colorAttachments;36 readonly attribute sequence<WebMetalRenderPipelineColorAttachmentDescriptor> colorAttachments; 37 37 38 38 attribute unsigned long depthAttachmentPixelFormat; -
trunk/Source/WebCore/html/canvas/WebMetalRenderPipelineState.cpp
r236953 r236954 25 25 26 26 #include "config.h" 27 #include "Web GPURenderPipelineState.h"27 #include "WebMetalRenderPipelineState.h" 28 28 29 #if ENABLE(WEB GPU)29 #if ENABLE(WEBMETAL) 30 30 31 31 namespace WebCore { 32 32 33 Ref<Web GPURenderPipelineState> WebGPURenderPipelineState::create(GPURenderPipelineState&& state)33 Ref<WebMetalRenderPipelineState> WebMetalRenderPipelineState::create(GPURenderPipelineState&& state) 34 34 { 35 return adoptRef(*new Web GPURenderPipelineState(WTFMove(state)));35 return adoptRef(*new WebMetalRenderPipelineState(WTFMove(state))); 36 36 } 37 37 38 Web GPURenderPipelineState::WebGPURenderPipelineState(GPURenderPipelineState&& state)38 WebMetalRenderPipelineState::WebMetalRenderPipelineState(GPURenderPipelineState&& state) 39 39 : m_state { WTFMove(state) } 40 40 { 41 41 } 42 42 43 String Web GPURenderPipelineState::label() const43 String WebMetalRenderPipelineState::label() const 44 44 { 45 45 return m_state.label(); 46 46 } 47 47 48 void Web GPURenderPipelineState::setLabel(const String& label)48 void WebMetalRenderPipelineState::setLabel(const String& label) 49 49 { 50 50 m_state.setLabel(label); -
trunk/Source/WebCore/html/canvas/WebMetalRenderPipelineState.h
r236953 r236954 26 26 #pragma once 27 27 28 #if ENABLE(WEB GPU)28 #if ENABLE(WEBMETAL) 29 29 30 30 #include "GPURenderPipelineState.h" … … 34 34 namespace WebCore { 35 35 36 class Web GPURenderPipelineState : public RefCounted<WebGPURenderPipelineState> {36 class WebMetalRenderPipelineState : public RefCounted<WebMetalRenderPipelineState> { 37 37 public: 38 static Ref<Web GPURenderPipelineState> create(GPURenderPipelineState&&);38 static Ref<WebMetalRenderPipelineState> create(GPURenderPipelineState&&); 39 39 40 40 String label() const; … … 44 44 45 45 private: 46 explicit Web GPURenderPipelineState(GPURenderPipelineState&&);46 explicit WebMetalRenderPipelineState(GPURenderPipelineState&&); 47 47 48 48 GPURenderPipelineState m_state; -
trunk/Source/WebCore/html/canvas/WebMetalRenderPipelineState.idl
r236953 r236954 25 25 26 26 [ 27 Conditional=WEB GPU,28 EnabledAtRuntime=Web GPU,27 Conditional=WEBMETAL, 28 EnabledAtRuntime=WebMetal, 29 29 ImplementationLacksVTable 30 ] interface Web GPUDepthStencilState {30 ] interface WebMetalRenderPipelineState { 31 31 32 32 attribute DOMString label; -
trunk/Source/WebCore/html/canvas/WebMetalRenderingContext.h
r236953 r236954 27 27 #pragma once 28 28 29 #if ENABLE(WEB GPU)29 #if ENABLE(WEBMETAL) 30 30 31 31 #include "GPUBasedCanvasRenderingContext.h" … … 38 38 namespace WebCore { 39 39 40 class Web GPUBuffer;41 class Web GPUCommandQueue;42 class Web GPUComputePipelineState;43 class Web GPUDepthStencilDescriptor;44 class Web GPUDepthStencilState;45 class Web GPUDrawable;46 class Web GPUFunction;47 class Web GPULibrary;48 class Web GPURenderPipelineDescriptor;49 class Web GPURenderPipelineState;50 class Web GPUTexture;51 class Web GPUTextureDescriptor;40 class WebMetalBuffer; 41 class WebMetalCommandQueue; 42 class WebMetalComputePipelineState; 43 class WebMetalDepthStencilDescriptor; 44 class WebMetalDepthStencilState; 45 class WebMetalDrawable; 46 class WebMetalFunction; 47 class WebMetalLibrary; 48 class WebMetalRenderPipelineDescriptor; 49 class WebMetalRenderPipelineState; 50 class WebMetalTexture; 51 class WebMetalTextureDescriptor; 52 52 53 class Web GPURenderingContext final : public GPUBasedCanvasRenderingContext {53 class WebMetalRenderingContext final : public GPUBasedCanvasRenderingContext { 54 54 public: 55 static std::unique_ptr<Web GPURenderingContext> create(CanvasBase&);55 static std::unique_ptr<WebMetalRenderingContext> create(CanvasBase&); 56 56 57 57 // FIXME: IDL file says this is not nullable, but this function can return null. 58 58 HTMLCanvasElement* canvas() const; 59 59 60 Ref<Web GPULibrary> createLibrary(const String&);61 Ref<Web GPURenderPipelineState> createRenderPipelineState(WebGPURenderPipelineDescriptor&);62 Ref<Web GPUDepthStencilState> createDepthStencilState(WebGPUDepthStencilDescriptor&);63 Ref<Web GPUComputePipelineState> createComputePipelineState(WebGPUFunction&);64 Ref<Web GPUCommandQueue> createCommandQueue();65 Ref<Web GPUDrawable> nextDrawable();66 RefPtr<Web GPUBuffer> createBuffer(JSC::ArrayBufferView&);67 Ref<Web GPUTexture> createTexture(WebGPUTextureDescriptor&);60 Ref<WebMetalLibrary> createLibrary(const String&); 61 Ref<WebMetalRenderPipelineState> createRenderPipelineState(WebMetalRenderPipelineDescriptor&); 62 Ref<WebMetalDepthStencilState> createDepthStencilState(WebMetalDepthStencilDescriptor&); 63 Ref<WebMetalComputePipelineState> createComputePipelineState(WebMetalFunction&); 64 Ref<WebMetalCommandQueue> createCommandQueue(); 65 Ref<WebMetalDrawable> nextDrawable(); 66 RefPtr<WebMetalBuffer> createBuffer(JSC::ArrayBufferView&); 67 Ref<WebMetalTexture> createTexture(WebMetalTextureDescriptor&); 68 68 69 69 const GPUDevice& device() const { return m_device; } 70 70 71 71 private: 72 Web GPURenderingContext(CanvasBase&, GPUDevice&&);72 WebMetalRenderingContext(CanvasBase&, GPUDevice&&); 73 73 74 74 bool hasPendingActivity() const final; … … 80 80 void initializeNewContext(); 81 81 82 bool isWeb GPU() const final { return true; }82 bool isWebMetal() const final { return true; } 83 83 84 84 void reshape(int width, int height) final; … … 91 91 } // namespace WebCore 92 92 93 SPECIALIZE_TYPE_TRAITS_CANVASRENDERINGCONTEXT(WebCore::Web GPURenderingContext, isWebGPU())93 SPECIALIZE_TYPE_TRAITS_CANVASRENDERINGCONTEXT(WebCore::WebMetalRenderingContext, isWebMetal()) 94 94 95 95 #endif -
trunk/Source/WebCore/html/canvas/WebMetalRenderingContext.idl
r236953 r236954 26 26 27 27 [ 28 Conditional=WEB GPU,29 EnabledAtRuntime=Web GPU,28 Conditional=WEBMETAL, 29 EnabledAtRuntime=WebMetal, 30 30 JSCustomMarkFunction, 31 31 DoNotCheckConstants 32 ] interface Web GPURenderingContext {32 ] interface WebMetalRenderingContext { 33 33 // back-reference to the canvas 34 34 readonly attribute HTMLCanvasElement canvas; … … 99 99 // Entry points 100 100 101 Web GPULibrary createLibrary(DOMString sourceCode);101 WebMetalLibrary createLibrary(DOMString sourceCode); 102 102 103 Web GPURenderPipelineState createRenderPipelineState(WebGPURenderPipelineDescriptor descriptor);104 Web GPUDepthStencilState createDepthStencilState(WebGPUDepthStencilDescriptor descriptor);105 Web GPUComputePipelineState createComputePipelineState(WebGPUFunction function);103 WebMetalRenderPipelineState createRenderPipelineState(WebMetalRenderPipelineDescriptor descriptor); 104 WebMetalDepthStencilState createDepthStencilState(WebMetalDepthStencilDescriptor descriptor); 105 WebMetalComputePipelineState createComputePipelineState(WebMetalFunction function); 106 106 107 Web GPUCommandQueue createCommandQueue();107 WebMetalCommandQueue createCommandQueue(); 108 108 109 Web GPUDrawable nextDrawable();109 WebMetalDrawable nextDrawable(); 110 110 111 Web GPUBuffer? createBuffer(ArrayBufferView data);111 WebMetalBuffer? createBuffer(ArrayBufferView data); 112 112 113 Web GPUTexture createTexture(WebGPUTextureDescriptor descriptor);113 WebMetalTexture createTexture(WebMetalTextureDescriptor descriptor); 114 114 115 115 }; -
trunk/Source/WebCore/html/canvas/WebMetalSize.h
r236953 r236954 26 26 #pragma once 27 27 28 #if ENABLE(WEB GPU)28 #if ENABLE(WEBMETAL) 29 29 30 30 namespace WebCore { 31 31 32 struct Web GPUSize {32 struct WebMetalSize { 33 33 unsigned width; 34 34 unsigned height; -
trunk/Source/WebCore/html/canvas/WebMetalSize.idl
r236953 r236954 25 25 26 26 [ 27 Conditional=WEB GPU,28 EnabledAtRuntime=Web GPU29 ] dictionary Web GPUSize {27 Conditional=WEBMETAL, 28 EnabledAtRuntime=WebMetal 29 ] dictionary WebMetalSize { 30 30 unsigned long width; 31 31 unsigned long height; -
trunk/Source/WebCore/html/canvas/WebMetalTexture.cpp
r236953 r236954 25 25 26 26 #include "config.h" 27 #include "Web GPUTexture.h"27 #include "WebMetalTexture.h" 28 28 29 #if ENABLE(WEB GPU)29 #if ENABLE(WEBMETAL) 30 30 31 31 namespace WebCore { 32 32 33 Ref<Web GPUTexture> WebGPUTexture::create(GPUTexture&& texture)33 Ref<WebMetalTexture> WebMetalTexture::create(GPUTexture&& texture) 34 34 { 35 return adoptRef(*new Web GPUTexture(WTFMove(texture)));35 return adoptRef(*new WebMetalTexture(WTFMove(texture))); 36 36 } 37 37 38 Web GPUTexture::WebGPUTexture(GPUTexture&& texture)38 WebMetalTexture::WebMetalTexture(GPUTexture&& texture) 39 39 : m_texture { WTFMove(texture) } 40 40 { -
trunk/Source/WebCore/html/canvas/WebMetalTexture.h
r236953 r236954 26 26 #pragma once 27 27 28 #if ENABLE(WEB GPU)28 #if ENABLE(WEBMETAL) 29 29 30 30 #include "GPUTexture.h" … … 36 36 class GPUTextureDescriptor; 37 37 38 class Web GPUTexture : public RefCounted<WebGPUTexture> {38 class WebMetalTexture : public RefCounted<WebMetalTexture> { 39 39 public: 40 static Ref<Web GPUTexture> create(GPUTexture&&);40 static Ref<WebMetalTexture> create(GPUTexture&&); 41 41 42 42 unsigned width() const { return m_texture.width(); } … … 46 46 47 47 private: 48 explicit Web GPUTexture(GPUTexture&&);48 explicit WebMetalTexture(GPUTexture&&); 49 49 50 50 GPUTexture m_texture; -
trunk/Source/WebCore/html/canvas/WebMetalTexture.idl
r236953 r236954 25 25 26 26 [ 27 Conditional=WEB GPU,28 EnabledAtRuntime=Web GPU,27 Conditional=WEBMETAL, 28 EnabledAtRuntime=WebMetal, 29 29 ImplementationLacksVTable 30 ] interface Web GPUTexture {30 ] interface WebMetalTexture { 31 31 32 32 readonly attribute unsigned long width; -
trunk/Source/WebCore/html/canvas/WebMetalTextureDescriptor.cpp
r236953 r236954 25 25 26 26 #include "config.h" 27 #include "Web GPUTextureDescriptor.h"27 #include "WebMetalTextureDescriptor.h" 28 28 29 #if ENABLE(WEB GPU)29 #if ENABLE(WEBMETAL) 30 30 31 31 namespace WebCore { 32 32 33 Ref<Web GPUTextureDescriptor> WebGPUTextureDescriptor::create(unsigned pixelFormat, unsigned width, unsigned height, bool mipmapped)33 Ref<WebMetalTextureDescriptor> WebMetalTextureDescriptor::create(unsigned pixelFormat, unsigned width, unsigned height, bool mipmapped) 34 34 { 35 return adoptRef(*new Web GPUTextureDescriptor(pixelFormat, width, height, mipmapped));35 return adoptRef(*new WebMetalTextureDescriptor(pixelFormat, width, height, mipmapped)); 36 36 } 37 37 38 Web GPUTextureDescriptor::WebGPUTextureDescriptor(unsigned pixelFormat, unsigned width, unsigned height, bool mipmapped)38 WebMetalTextureDescriptor::WebMetalTextureDescriptor(unsigned pixelFormat, unsigned width, unsigned height, bool mipmapped) 39 39 : m_descriptor { pixelFormat, width, height, mipmapped } 40 40 { 41 41 } 42 42 43 unsigned Web GPUTextureDescriptor::width() const43 unsigned WebMetalTextureDescriptor::width() const 44 44 { 45 45 return m_descriptor.width(); 46 46 } 47 47 48 void Web GPUTextureDescriptor::setWidth(unsigned width)48 void WebMetalTextureDescriptor::setWidth(unsigned width) 49 49 { 50 50 m_descriptor.setWidth(width); 51 51 } 52 52 53 unsigned Web GPUTextureDescriptor::height() const53 unsigned WebMetalTextureDescriptor::height() const 54 54 { 55 55 return m_descriptor.height(); 56 56 } 57 57 58 void Web GPUTextureDescriptor::setHeight(unsigned height)58 void WebMetalTextureDescriptor::setHeight(unsigned height) 59 59 { 60 60 m_descriptor.setHeight(height); 61 61 } 62 62 63 unsigned Web GPUTextureDescriptor::sampleCount() const63 unsigned WebMetalTextureDescriptor::sampleCount() const 64 64 { 65 65 return m_descriptor.sampleCount(); 66 66 } 67 67 68 void Web GPUTextureDescriptor::setSampleCount(unsigned sampleCount)68 void WebMetalTextureDescriptor::setSampleCount(unsigned sampleCount) 69 69 { 70 70 m_descriptor.setSampleCount(sampleCount); 71 71 } 72 72 73 unsigned Web GPUTextureDescriptor::textureType() const73 unsigned WebMetalTextureDescriptor::textureType() const 74 74 { 75 75 return m_descriptor.textureType(); 76 76 } 77 77 78 void Web GPUTextureDescriptor::setTextureType(unsigned textureType)78 void WebMetalTextureDescriptor::setTextureType(unsigned textureType) 79 79 { 80 80 m_descriptor.setTextureType(textureType); 81 81 } 82 82 83 unsigned Web GPUTextureDescriptor::storageMode() const83 unsigned WebMetalTextureDescriptor::storageMode() const 84 84 { 85 85 return m_descriptor.storageMode(); 86 86 } 87 87 88 void Web GPUTextureDescriptor::setStorageMode(unsigned storageMode)88 void WebMetalTextureDescriptor::setStorageMode(unsigned storageMode) 89 89 { 90 90 m_descriptor.setStorageMode(storageMode); 91 91 } 92 92 93 unsigned Web GPUTextureDescriptor::usage() const93 unsigned WebMetalTextureDescriptor::usage() const 94 94 { 95 95 return m_descriptor.usage(); 96 96 } 97 97 98 void Web GPUTextureDescriptor::setUsage(unsigned usage)98 void WebMetalTextureDescriptor::setUsage(unsigned usage) 99 99 { 100 100 m_descriptor.setUsage(usage); -
trunk/Source/WebCore/html/canvas/WebMetalTextureDescriptor.h
r236953 r236954 26 26 #pragma once 27 27 28 #if ENABLE(WEB GPU)28 #if ENABLE(WEBMETAL) 29 29 30 30 #include "GPUTextureDescriptor.h" … … 34 34 namespace WebCore { 35 35 36 class Web GPUTextureDescriptor : public RefCounted<WebGPUTextureDescriptor> {36 class WebMetalTextureDescriptor : public RefCounted<WebMetalTextureDescriptor> { 37 37 public: 38 static Ref<Web GPUTextureDescriptor> create(unsigned pixelFormat, unsigned width, unsigned height, bool mipmapped);38 static Ref<WebMetalTextureDescriptor> create(unsigned pixelFormat, unsigned width, unsigned height, bool mipmapped); 39 39 40 40 unsigned width() const; … … 59 59 60 60 private: 61 Web GPUTextureDescriptor(unsigned pixelFormat, unsigned width, unsigned height, bool mipmapped);61 WebMetalTextureDescriptor(unsigned pixelFormat, unsigned width, unsigned height, bool mipmapped); 62 62 63 63 GPUTextureDescriptor m_descriptor; -
trunk/Source/WebCore/html/canvas/WebMetalTextureDescriptor.idl
r236953 r236954 26 26 [ 27 27 Constructor(unsigned long pixelFormat, unsigned long width, unsigned long height, boolean mipmapped), 28 Conditional=WEB GPU,29 EnabledAtRuntime=Web GPU,28 Conditional=WEBMETAL, 29 EnabledAtRuntime=WebMetal, 30 30 ImplementationLacksVTable 31 ] interface Web GPUTextureDescriptor {31 ] interface WebMetalTextureDescriptor { 32 32 33 33 attribute unsigned long textureType; -
trunk/Source/WebCore/inspector/InspectorCanvas.cpp
r236927 r236954 64 64 #include "WebGL2RenderingContext.h" 65 65 #endif 66 #if ENABLE(WEB GPU)67 #include "Web GPURenderingContext.h"66 #if ENABLE(WEBMETAL) 67 #include "WebMetalRenderingContext.h" 68 68 #endif 69 69 #include <JavaScriptCore/IdentifiersFactory.h> … … 232 232 contextType = Inspector::Protocol::Canvas::ContextType::WebGL2; 233 233 #endif 234 #if ENABLE(WEB GPU)235 else if (is<Web GPURenderingContext>(m_context))236 contextType = Inspector::Protocol::Canvas::ContextType::Web GPU;234 #if ENABLE(WEBMETAL) 235 else if (is<WebMetalRenderingContext>(m_context)) 236 contextType = Inspector::Protocol::Canvas::ContextType::WebMetal; 237 237 #endif 238 238 else { -
trunk/Source/WebCore/inspector/agents/InspectorCanvasAgent.cpp
r236927 r236954 57 57 #endif 58 58 59 #if ENABLE(WEB GPU)60 #include "JSWeb GPURenderingContext.h"59 #if ENABLE(WEBMETAL) 60 #include "JSWebMetalRenderingContext.h" 61 61 #endif 62 62 … … 200 200 } 201 201 202 // FIXME: <https://webkit.org/b/173621> Web Inspector: Support getting the content of Web GPUcontext;202 // FIXME: <https://webkit.org/b/173621> Web Inspector: Support getting the content of WebMetal context; 203 203 errorString = "Unsupported canvas context type"_s; 204 204 } … … 231 231 return toJS(&state, deprecatedGlobalObjectForPrototype(&state), downcast<WebGL2RenderingContext>(context)); 232 232 #endif 233 #if ENABLE(WEB GPU)234 if (is<Web GPURenderingContext>(context))235 return toJS(&state, deprecatedGlobalObjectForPrototype(&state), downcast<Web GPURenderingContext>(context));233 #if ENABLE(WEBMETAL) 234 if (is<WebMetalRenderingContext>(context)) 235 return toJS(&state, deprecatedGlobalObjectForPrototype(&state), downcast<WebMetalRenderingContext>(context)); 236 236 #endif 237 237 if (is<ImageBitmapRenderingContext>(context)) -
trunk/Source/WebCore/page/RuntimeEnabledFeatures.h
r236942 r236954 253 253 #endif 254 254 255 #if ENABLE(WEB GPU)256 void setWeb GPUEnabled(bool isEnabled) { m_isWebGPUEnabled = isEnabled; }257 bool web GPUEnabled() const { return m_isWebGPUEnabled; }255 #if ENABLE(WEBMETAL) 256 void setWebMetalEnabled(bool isEnabled) { m_isWebMetalEnabled = isEnabled; } 257 bool webMetalEnabled() const { return m_isWebMetalEnabled; } 258 258 #endif 259 259 … … 410 410 #endif 411 411 412 #if ENABLE(WEB GPU)413 bool m_isWeb GPUEnabled { false };412 #if ENABLE(WEBMETAL) 413 bool m_isWebMetalEnabled { false }; 414 414 #endif 415 415 -
trunk/Source/WebCore/platform/Logging.h
r235862 r236954 100 100 M(WebAudio) \ 101 101 M(WebGL) \ 102 M(Web GPU) \102 M(WebMetal) \ 103 103 M(WebRTC) \ 104 104 M(WheelEventTestTriggers) \ -
trunk/Source/WebCore/platform/graphics/ca/cocoa/PlatformCALayerCocoa.mm
r236481 r236954 41 41 #import <pal/spi/cocoa/QuartzCoreSPI.h> 42 42 #import <wtf/SoftLinking.h> 43 #if ENABLE(WEB GPU)44 #import "Web GPULayer.h"43 #if ENABLE(WEBMETAL) 44 #import "WebMetalLayer.h" 45 45 #endif 46 46 #import "WebLayer.h" … … 204 204 return LayerTypeContentsProvidedLayer; 205 205 206 #if ENABLE(WEB GPU)207 if ([layer isKindOfClass:[Web GPULayer class]])206 #if ENABLE(WEBMETAL) 207 if ([layer isKindOfClass:[WebMetalLayer class]]) 208 208 return LayerTypeContentsProvidedLayer; 209 209 #endif … … 260 260 break; 261 261 case LayerTypeContentsProvidedLayer: 262 // We don't create PlatformCALayerCocoas wrapped around WebGLLayers or Web GPULayers.262 // We don't create PlatformCALayerCocoas wrapped around WebGLLayers or WebMetalLayers. 263 263 ASSERT_NOT_REACHED(); 264 264 break; -
trunk/Source/WebCore/platform/graphics/cocoa/WebMetalLayer.h
r236953 r236954 26 26 #pragma once 27 27 28 #if ENABLE(WEB GPU)28 #if ENABLE(WEBMETAL) 29 29 30 30 #import <Metal/Metal.h> … … 36 36 37 37 #if !PLATFORM(IOS_SIMULATOR) 38 @interface Web GPULayer : CAMetalLayer {38 @interface WebMetalLayer : CAMetalLayer { 39 39 #else 40 @interface Web GPULayer : CALayer { // FIXME: WebGPU - Disable WebGPUon iOS simulator?40 @interface WebMetalLayer : CALayer { // FIXME: WebMetal - Disable WebMetal on iOS simulator? 41 41 #endif 42 42 WebCore::GPUDevice* _context; -
trunk/Source/WebCore/platform/graphics/cocoa/WebMetalLayer.mm
r236953 r236954 25 25 26 26 #include "config.h" 27 #import "Web GPULayer.h"27 #import "WebMetalLayer.h" 28 28 29 #if ENABLE(WEB GPU)29 #if ENABLE(WEBMETAL) 30 30 31 31 #import "GPUDevice.h" … … 35 35 #import <wtf/RetainPtr.h> 36 36 37 @implementation Web GPULayer37 @implementation WebMetalLayer 38 38 39 39 @synthesize context=_context; … … 44 44 _context = context; 45 45 46 // FIXME: Web GPU- handle retina correctly.46 // FIXME: WebMetal - handle retina correctly. 47 47 _devicePixelRatio = 1; 48 48 -
trunk/Source/WebCore/platform/graphics/gpu/GPUBuffer.cpp
r234258 r236954 27 27 #include "GPUBuffer.h" 28 28 29 #if ENABLE(WEB GPU)29 #if ENABLE(WEBMETAL) 30 30 31 31 #include "Logging.h" … … 36 36 GPUBuffer::~GPUBuffer() 37 37 { 38 LOG(Web GPU, "GPUBuffer::~GPUBuffer()");38 LOG(WebMetal, "GPUBuffer::~GPUBuffer()"); 39 39 } 40 40 -
trunk/Source/WebCore/platform/graphics/gpu/GPUBuffer.h
r234258 r236954 26 26 #pragma once 27 27 28 #if ENABLE(WEB GPU)28 #if ENABLE(WEBMETAL) 29 29 30 30 #include <wtf/RefPtr.h> -
trunk/Source/WebCore/platform/graphics/gpu/GPUCommandBuffer.cpp
r234258 r236954 28 28 #include "GPUCommandBuffer.h" 29 29 30 #if ENABLE(WEB GPU)30 #if ENABLE(WEBMETAL) 31 31 32 32 #include "Logging.h" … … 36 36 GPUCommandBuffer::~GPUCommandBuffer() 37 37 { 38 LOG(Web GPU, "GPUCommandBuffer::~GPUCommandBuffer()");38 LOG(WebMetal, "GPUCommandBuffer::~GPUCommandBuffer()"); 39 39 } 40 40 -
trunk/Source/WebCore/platform/graphics/gpu/GPUCommandBuffer.h
r234258 r236954 27 27 #pragma once 28 28 29 #if ENABLE(WEB GPU)29 #if ENABLE(WEBMETAL) 30 30 31 31 #include <wtf/Function.h> -
trunk/Source/WebCore/platform/graphics/gpu/GPUCommandQueue.cpp
r234258 r236954 27 27 #include "GPUCommandQueue.h" 28 28 29 #if ENABLE(WEB GPU)29 #if ENABLE(WEBMETAL) 30 30 31 31 #include "Logging.h" … … 35 35 GPUCommandQueue::~GPUCommandQueue() 36 36 { 37 LOG(Web GPU, "GPUCommandQueue::~GPUCommandQueue()");37 LOG(WebMetal, "GPUCommandQueue::~GPUCommandQueue()"); 38 38 } 39 39 -
trunk/Source/WebCore/platform/graphics/gpu/GPUCommandQueue.h
r234258 r236954 26 26 #pragma once 27 27 28 #if ENABLE(WEB GPU)28 #if ENABLE(WEBMETAL) 29 29 30 30 #include <wtf/RetainPtr.h> -
trunk/Source/WebCore/platform/graphics/gpu/GPUComputeCommandEncoder.cpp
r234258 r236954 27 27 #include "GPUComputeCommandEncoder.h" 28 28 29 #if ENABLE(WEB GPU)29 #if ENABLE(WEBMETAL) 30 30 31 31 #include "Logging.h" … … 35 35 GPUComputeCommandEncoder::~GPUComputeCommandEncoder() 36 36 { 37 LOG(Web GPU, "GPUComputeCommandEncoder::~GPUComputeCommandEncoder()");37 LOG(WebMetal, "GPUComputeCommandEncoder::~GPUComputeCommandEncoder()"); 38 38 } 39 39 -
trunk/Source/WebCore/platform/graphics/gpu/GPUComputeCommandEncoder.h
r234258 r236954 26 26 #pragma once 27 27 28 #if ENABLE(WEB GPU)28 #if ENABLE(WEBMETAL) 29 29 30 30 #include <wtf/RetainPtr.h> -
trunk/Source/WebCore/platform/graphics/gpu/GPUComputePipelineState.cpp
r234258 r236954 27 27 #include "GPUComputePipelineState.h" 28 28 29 #if ENABLE(WEB GPU)29 #if ENABLE(WEBMETAL) 30 30 31 31 #include "Logging.h" … … 35 35 GPUComputePipelineState::~GPUComputePipelineState() 36 36 { 37 LOG(Web GPU, "GPUComputePipelineState::~GPUComputePipelineState()");37 LOG(WebMetal, "GPUComputePipelineState::~GPUComputePipelineState()"); 38 38 } 39 39 -
trunk/Source/WebCore/platform/graphics/gpu/GPUComputePipelineState.h
r234258 r236954 26 26 #pragma once 27 27 28 #if ENABLE(WEB GPU)28 #if ENABLE(WEBMETAL) 29 29 30 30 #include <wtf/RetainPtr.h> -
trunk/Source/WebCore/platform/graphics/gpu/GPUDepthStencilDescriptor.cpp
r234258 r236954 27 27 #include "GPUDepthStencilDescriptor.h" 28 28 29 #if ENABLE(WEB GPU)29 #if ENABLE(WEBMETAL) 30 30 31 31 #include "Logging.h" … … 35 35 GPUDepthStencilDescriptor::~GPUDepthStencilDescriptor() 36 36 { 37 LOG(Web GPU, "GPUDepthStencilDescriptor::~GPUDepthStencilDescriptor()");37 LOG(WebMetal, "GPUDepthStencilDescriptor::~GPUDepthStencilDescriptor()"); 38 38 } 39 39 -
trunk/Source/WebCore/platform/graphics/gpu/GPUDepthStencilDescriptor.h
r234258 r236954 26 26 #pragma once 27 27 28 #if ENABLE(WEB GPU)28 #if ENABLE(WEBMETAL) 29 29 30 30 #include <wtf/RetainPtr.h> -
trunk/Source/WebCore/platform/graphics/gpu/GPUDepthStencilState.cpp
r234258 r236954 27 27 #include "GPUDepthStencilState.h" 28 28 29 #if ENABLE(WEB GPU)29 #if ENABLE(WEBMETAL) 30 30 31 31 #include "Logging.h" … … 35 35 GPUDepthStencilState::~GPUDepthStencilState() 36 36 { 37 LOG(Web GPU, "GPUDepthStencilState::~GPUDepthStencilState()");37 LOG(WebMetal, "GPUDepthStencilState::~GPUDepthStencilState()"); 38 38 } 39 39 -
trunk/Source/WebCore/platform/graphics/gpu/GPUDepthStencilState.h
r234564 r236954 26 26 #pragma once 27 27 28 #if ENABLE(WEB GPU)28 #if ENABLE(WEBMETAL) 29 29 30 30 #include <wtf/Forward.h> -
trunk/Source/WebCore/platform/graphics/gpu/GPUDevice.cpp
r234258 r236954 27 27 #include "GPUDevice.h" 28 28 29 #if ENABLE(WEB GPU)29 #if ENABLE(WEBMETAL) 30 30 31 31 #include "Logging.h" … … 35 35 GPUDevice::~GPUDevice() 36 36 { 37 LOG(Web GPU, "GPUDevice::~GPUDevice()");37 LOG(WebMetal, "GPUDevice::~GPUDevice()"); 38 38 disconnect(); 39 39 } -
trunk/Source/WebCore/platform/graphics/gpu/GPUDevice.h
r234258 r236954 26 26 #pragma once 27 27 28 #if ENABLE(WEB GPU)28 #if ENABLE(WEBMETAL) 29 29 30 30 #include <wtf/RetainPtr.h> 31 31 32 32 OBJC_CLASS CALayer; 33 OBJC_CLASS Web GPULayer;33 OBJC_CLASS WebMetalLayer; 34 34 35 35 OBJC_PROTOCOL(MTLDevice); … … 47 47 48 48 #if USE(METAL) 49 Web GPULayer *layer() const { return m_layer.get(); }49 WebMetalLayer *layer() const { return m_layer.get(); } 50 50 WEBCORE_EXPORT CALayer *platformLayer() const; 51 51 MTLDevice *metal() const { return m_metal.get(); } … … 58 58 59 59 #if USE(METAL) 60 RetainPtr<Web GPULayer> m_layer;60 RetainPtr<WebMetalLayer> m_layer; 61 61 RetainPtr<MTLDevice> m_metal; 62 62 #endif -
trunk/Source/WebCore/platform/graphics/gpu/GPUDrawable.cpp
r234258 r236954 27 27 #include "GPUDrawable.h" 28 28 29 #if ENABLE(WEB GPU)29 #if ENABLE(WEBMETAL) 30 30 31 31 #include "Logging.h" … … 35 35 GPUDrawable::~GPUDrawable() 36 36 { 37 LOG(Web GPU, "GPUDrawable::~GPUDrawable()");37 LOG(WebMetal, "GPUDrawable::~GPUDrawable()"); 38 38 } 39 39 -
trunk/Source/WebCore/platform/graphics/gpu/GPUDrawable.h
r234258 r236954 26 26 #pragma once 27 27 28 #if ENABLE(WEB GPU)28 #if ENABLE(WEBMETAL) 29 29 30 30 #include <wtf/RetainPtr.h> … … 47 47 MTLDrawable *metal() const; 48 48 49 // FIXME: Web GPU- not all drawables should have this. Only the framebuffer.49 // FIXME: WebMetal - not all drawables should have this. Only the framebuffer. 50 50 MTLTexture *texture() const; 51 51 #endif -
trunk/Source/WebCore/platform/graphics/gpu/GPUEnums.h
r234258 r236954 26 26 #pragma once 27 27 28 #if ENABLE(WEB GPU)28 #if ENABLE(WEBMETAL) 29 29 30 30 namespace WebCore { -
trunk/Source/WebCore/platform/graphics/gpu/GPUFunction.cpp
r234258 r236954 27 27 #include "GPUFunction.h" 28 28 29 #if ENABLE(WEB GPU)29 #if ENABLE(WEBMETAL) 30 30 31 31 #include "Logging.h" … … 35 35 GPUFunction::~GPUFunction() 36 36 { 37 LOG(Web GPU, "GPUFunction::~GPUFunction()");37 LOG(WebMetal, "GPUFunction::~GPUFunction()"); 38 38 } 39 39 -
trunk/Source/WebCore/platform/graphics/gpu/GPUFunction.h
r234258 r236954 26 26 #pragma once 27 27 28 #if ENABLE(WEB GPU)28 #if ENABLE(WEBMETAL) 29 29 30 30 #include <wtf/RetainPtr.h> -
trunk/Source/WebCore/platform/graphics/gpu/GPULibrary.cpp
r234258 r236954 27 27 #include "GPULibrary.h" 28 28 29 #if ENABLE(WEB GPU)29 #if ENABLE(WEBMETAL) 30 30 31 31 #include "Logging.h" … … 35 35 GPULibrary::~GPULibrary() 36 36 { 37 LOG(Web GPU, "GPULibrary::~GPULibrary()");37 LOG(WebMetal, "GPULibrary::~GPULibrary()"); 38 38 } 39 39 -
trunk/Source/WebCore/platform/graphics/gpu/GPULibrary.h
r234258 r236954 26 26 #pragma once 27 27 28 #if ENABLE(WEB GPU)28 #if ENABLE(WEBMETAL) 29 29 30 30 #include <wtf/RetainPtr.h> -
trunk/Source/WebCore/platform/graphics/gpu/GPURenderCommandEncoder.cpp
r234258 r236954 27 27 #include "GPURenderCommandEncoder.h" 28 28 29 #if ENABLE(WEB GPU)29 #if ENABLE(WEBMETAL) 30 30 31 31 #include "Logging.h" … … 35 35 GPURenderCommandEncoder::~GPURenderCommandEncoder() 36 36 { 37 LOG(Web GPU, "GPURenderCommandEncoder::~GPURenderCommandEncoder()");37 LOG(WebMetal, "GPURenderCommandEncoder::~GPURenderCommandEncoder()"); 38 38 } 39 39 -
trunk/Source/WebCore/platform/graphics/gpu/GPURenderCommandEncoder.h
r234258 r236954 26 26 #pragma once 27 27 28 #if ENABLE(WEB GPU)28 #if ENABLE(WEBMETAL) 29 29 30 30 #include <wtf/RetainPtr.h> -
trunk/Source/WebCore/platform/graphics/gpu/GPURenderPassAttachmentDescriptor.cpp
r234258 r236954 27 27 #include "GPURenderPassAttachmentDescriptor.h" 28 28 29 #if ENABLE(WEB GPU)29 #if ENABLE(WEBMETAL) 30 30 31 31 #include "GPUTexture.h" … … 36 36 GPURenderPassAttachmentDescriptor::~GPURenderPassAttachmentDescriptor() 37 37 { 38 LOG(Web GPU, "GPURenderPassAttachmentDescriptor::~GPURenderPassAttachmentDescriptor()");38 LOG(WebMetal, "GPURenderPassAttachmentDescriptor::~GPURenderPassAttachmentDescriptor()"); 39 39 } 40 40 -
trunk/Source/WebCore/platform/graphics/gpu/GPURenderPassAttachmentDescriptor.h
r234258 r236954 26 26 #pragma once 27 27 28 #if ENABLE(WEB GPU)28 #if ENABLE(WEBMETAL) 29 29 30 30 #include <wtf/RetainPtr.h> -
trunk/Source/WebCore/platform/graphics/gpu/GPURenderPassColorAttachmentDescriptor.cpp
r234258 r236954 27 27 #include "GPURenderPassColorAttachmentDescriptor.h" 28 28 29 #if ENABLE(WEB GPU)29 #if ENABLE(WEBMETAL) 30 30 31 31 #include "Logging.h" … … 35 35 GPURenderPassColorAttachmentDescriptor::~GPURenderPassColorAttachmentDescriptor() 36 36 { 37 LOG(Web GPU, "GPURenderPassColorAttachmentDescriptor::~GPURenderPassColorAttachmentDescriptor()");37 LOG(WebMetal, "GPURenderPassColorAttachmentDescriptor::~GPURenderPassColorAttachmentDescriptor()"); 38 38 } 39 39 -
trunk/Source/WebCore/platform/graphics/gpu/GPURenderPassColorAttachmentDescriptor.h
r234258 r236954 26 26 #pragma once 27 27 28 #if ENABLE(WEB GPU)28 #if ENABLE(WEBMETAL) 29 29 30 30 #include "GPURenderPassAttachmentDescriptor.h" -
trunk/Source/WebCore/platform/graphics/gpu/GPURenderPassDepthAttachmentDescriptor.cpp
r234258 r236954 27 27 #include "GPURenderPassDepthAttachmentDescriptor.h" 28 28 29 #if ENABLE(WEB GPU)29 #if ENABLE(WEBMETAL) 30 30 31 31 #include "Logging.h" … … 35 35 GPURenderPassDepthAttachmentDescriptor::~GPURenderPassDepthAttachmentDescriptor() 36 36 { 37 LOG(Web GPU, "GPURenderPassDepthAttachmentDescriptor::~GPURenderPassDepthAttachmentDescriptor()");37 LOG(WebMetal, "GPURenderPassDepthAttachmentDescriptor::~GPURenderPassDepthAttachmentDescriptor()"); 38 38 } 39 39 -
trunk/Source/WebCore/platform/graphics/gpu/GPURenderPassDepthAttachmentDescriptor.h
r234258 r236954 26 26 #pragma once 27 27 28 #if ENABLE(WEB GPU)28 #if ENABLE(WEBMETAL) 29 29 30 30 #include "GPURenderPassAttachmentDescriptor.h" -
trunk/Source/WebCore/platform/graphics/gpu/GPURenderPassDescriptor.cpp
r234258 r236954 27 27 #include "GPURenderPassDescriptor.h" 28 28 29 #if ENABLE(WEB GPU)29 #if ENABLE(WEBMETAL) 30 30 31 31 #include "GPURenderPassDepthAttachmentDescriptor.h" … … 36 36 GPURenderPassDescriptor::~GPURenderPassDescriptor() 37 37 { 38 LOG(Web GPU, "GPURenderPassDescriptor::~GPURenderPassDescriptor()");38 LOG(WebMetal, "GPURenderPassDescriptor::~GPURenderPassDescriptor()"); 39 39 } 40 40 -
trunk/Source/WebCore/platform/graphics/gpu/GPURenderPassDescriptor.h
r234258 r236954 26 26 #pragma once 27 27 28 #if ENABLE(WEB GPU)28 #if ENABLE(WEBMETAL) 29 29 30 30 #include <wtf/RetainPtr.h> -
trunk/Source/WebCore/platform/graphics/gpu/GPURenderPipelineColorAttachmentDescriptor.cpp
r234258 r236954 27 27 #include "GPURenderPipelineColorAttachmentDescriptor.h" 28 28 29 #if ENABLE(WEB GPU)29 #if ENABLE(WEBMETAL) 30 30 31 31 #include "Logging.h" … … 35 35 GPURenderPipelineColorAttachmentDescriptor::~GPURenderPipelineColorAttachmentDescriptor() 36 36 { 37 LOG(Web GPU, "GPURenderPipelineColorAttachmentDescriptor::~GPURenderPipelineColorAttachmentDescriptor()");37 LOG(WebMetal, "GPURenderPipelineColorAttachmentDescriptor::~GPURenderPipelineColorAttachmentDescriptor()"); 38 38 } 39 39 -
trunk/Source/WebCore/platform/graphics/gpu/GPURenderPipelineColorAttachmentDescriptor.h
r234258 r236954 26 26 #pragma once 27 27 28 #if ENABLE(WEB GPU)28 #if ENABLE(WEBMETAL) 29 29 30 30 #include <wtf/RetainPtr.h> -
trunk/Source/WebCore/platform/graphics/gpu/GPURenderPipelineDescriptor.cpp
r234258 r236954 27 27 #include "GPURenderPipelineDescriptor.h" 28 28 29 #if ENABLE(WEB GPU)29 #if ENABLE(WEBMETAL) 30 30 31 31 #include "Logging.h" … … 35 35 GPURenderPipelineDescriptor::~GPURenderPipelineDescriptor() 36 36 { 37 LOG(Web GPU, "GPURenderPipelineDescriptor::~GPURenderPipelineDescriptor()");37 LOG(WebMetal, "GPURenderPipelineDescriptor::~GPURenderPipelineDescriptor()"); 38 38 } 39 39 -
trunk/Source/WebCore/platform/graphics/gpu/GPURenderPipelineDescriptor.h
r234258 r236954 26 26 #pragma once 27 27 28 #if ENABLE(WEB GPU)28 #if ENABLE(WEBMETAL) 29 29 30 30 #include <wtf/RetainPtr.h> -
trunk/Source/WebCore/platform/graphics/gpu/GPURenderPipelineState.cpp
r234258 r236954 27 27 #include "GPURenderPipelineState.h" 28 28 29 #if ENABLE(WEB GPU)29 #if ENABLE(WEBMETAL) 30 30 31 31 #include "Logging.h" … … 35 35 GPURenderPipelineState::~GPURenderPipelineState() 36 36 { 37 LOG(Web GPU, "GPURenderPipelineState::~GPURenderPipelineState()");37 LOG(WebMetal, "GPURenderPipelineState::~GPURenderPipelineState()"); 38 38 } 39 39 -
trunk/Source/WebCore/platform/graphics/gpu/GPURenderPipelineState.h
r234258 r236954 26 26 #pragma once 27 27 28 #if ENABLE(WEB GPU)28 #if ENABLE(WEBMETAL) 29 29 30 30 #include <wtf/RetainPtr.h> -
trunk/Source/WebCore/platform/graphics/gpu/GPUSize.h
r234258 r236954 26 26 #pragma once 27 27 28 #if ENABLE(WEB GPU)28 #if ENABLE(WEBMETAL) 29 29 30 30 namespace WebCore { -
trunk/Source/WebCore/platform/graphics/gpu/GPUTexture.cpp
r234258 r236954 27 27 #include "GPUTexture.h" 28 28 29 #if ENABLE(WEB GPU)29 #if ENABLE(WEBMETAL) 30 30 31 31 #include "Logging.h" … … 35 35 GPUTexture::~GPUTexture() 36 36 { 37 LOG(Web GPU, "GPUTexture::~GPUTexture()");37 LOG(WebMetal, "GPUTexture::~GPUTexture()"); 38 38 } 39 39 -
trunk/Source/WebCore/platform/graphics/gpu/GPUTexture.h
r234258 r236954 26 26 #pragma once 27 27 28 #if ENABLE(WEB GPU)28 #if ENABLE(WEBMETAL) 29 29 30 30 #include <wtf/RetainPtr.h> -
trunk/Source/WebCore/platform/graphics/gpu/GPUTextureDescriptor.cpp
r234258 r236954 27 27 #include "GPUTextureDescriptor.h" 28 28 29 #if ENABLE(WEB GPU)29 #if ENABLE(WEBMETAL) 30 30 31 31 #include "Logging.h" … … 35 35 GPUTextureDescriptor::~GPUTextureDescriptor() 36 36 { 37 LOG(Web GPU, "GPUTextureDescriptor::~GPUTextureDescriptor()");37 LOG(WebMetal, "GPUTextureDescriptor::~GPUTextureDescriptor()"); 38 38 } 39 39 -
trunk/Source/WebCore/platform/graphics/gpu/GPUTextureDescriptor.h
r234258 r236954 26 26 #pragma once 27 27 28 #if ENABLE(WEB GPU)28 #if ENABLE(WEBMETAL) 29 29 30 30 #include <wtf/RetainPtr.h> -
trunk/Source/WebCore/platform/graphics/metal/GPUBufferMetal.mm
r234258 r236954 27 27 #import "GPUBuffer.h" 28 28 29 #if ENABLE(WEB GPU)29 #if ENABLE(WEBMETAL) 30 30 31 31 #import "GPUDevice.h" … … 40 40 GPUBuffer::GPUBuffer(const GPUDevice& device, const JSC::ArrayBufferView& data) 41 41 { 42 LOG(Web GPU, "GPUBuffer::GPUBuffer()");42 LOG(WebMetal, "GPUBuffer::GPUBuffer()"); 43 43 44 44 if (!device.metal()) -
trunk/Source/WebCore/platform/graphics/metal/GPUCommandBufferMetal.mm
r234258 r236954 27 27 #import "GPUCommandBuffer.h" 28 28 29 #if ENABLE(WEB GPU)29 #if ENABLE(WEBMETAL) 30 30 31 31 #import "GPUCommandQueue.h" … … 41 41 : m_metal { [queue.metal() commandBuffer] } 42 42 { 43 LOG(Web GPU, "GPUCommandBuffer::GPUCommandBuffer()");43 LOG(WebMetal, "GPUCommandBuffer::GPUCommandBuffer()"); 44 44 45 45 [m_metal addCompletedHandler:BlockPtr<void (id<MTLCommandBuffer>)>::fromCallable([completedCallback = WTFMove(completedCallback)] (id<MTLCommandBuffer>) mutable { -
trunk/Source/WebCore/platform/graphics/metal/GPUCommandQueueMetal.mm
r235521 r236954 27 27 #import "GPUCommandQueue.h" 28 28 29 #if ENABLE(WEB GPU)29 #if ENABLE(WEBMETAL) 30 30 31 31 #import "GPUDevice.h" … … 42 42 : m_metal { adoptNS([device.metal() newCommandQueue]) } 43 43 { 44 LOG(Web GPU, "GPUCommandQueue::GPUCommandQueue()");44 LOG(WebMetal, "GPUCommandQueue::GPUCommandQueue()"); 45 45 46 46 [m_metal setLabel:commandQueueDefaultLabel]; -
trunk/Source/WebCore/platform/graphics/metal/GPUComputeCommandEncoderMetal.mm
r234258 r236954 27 27 #import "GPUComputeCommandEncoder.h" 28 28 29 #if ENABLE(WEB GPU)29 #if ENABLE(WEBMETAL) 30 30 31 31 #import "GPUBuffer.h" … … 46 46 : m_metal { [buffer.metal() computeCommandEncoder] } 47 47 { 48 LOG(Web GPU, "GPUComputeCommandEncoder::GPUComputeCommandEncoder()");48 LOG(WebMetal, "GPUComputeCommandEncoder::GPUComputeCommandEncoder()"); 49 49 } 50 50 -
trunk/Source/WebCore/platform/graphics/metal/GPUComputePipelineStateMetal.mm
r234258 r236954 27 27 #import "GPUComputePipelineState.h" 28 28 29 #if ENABLE(WEB GPU)29 #if ENABLE(WEBMETAL) 30 30 31 31 #import "GPUDevice.h" … … 38 38 GPUComputePipelineState::GPUComputePipelineState(const GPUDevice& device, const GPUFunction& function) 39 39 { 40 LOG(Web GPU, "GPUComputePipelineState::GPUComputePipelineState()");40 LOG(WebMetal, "GPUComputePipelineState::GPUComputePipelineState()"); 41 41 42 42 if (!function.metal()) -
trunk/Source/WebCore/platform/graphics/metal/GPUDepthStencilDescriptorMetal.mm
r234258 r236954 27 27 #import "GPUDepthStencilDescriptor.h" 28 28 29 #if ENABLE(WEB GPU)29 #if ENABLE(WEBMETAL) 30 30 31 31 #import "GPUEnums.h" … … 38 38 : m_metal { adoptNS([MTLDepthStencilDescriptor new]) } 39 39 { 40 LOG(Web GPU, "GPUDepthStencilDescriptor::GPUDepthStencilDescriptor()");40 LOG(WebMetal, "GPUDepthStencilDescriptor::GPUDepthStencilDescriptor()"); 41 41 } 42 42 -
trunk/Source/WebCore/platform/graphics/metal/GPUDepthStencilStateMetal.mm
r234258 r236954 27 27 #import "GPUDepthStencilState.h" 28 28 29 #if ENABLE(WEB GPU)29 #if ENABLE(WEBMETAL) 30 30 31 31 #import "GPUDepthStencilDescriptor.h" … … 40 40 : m_metal { adoptNS([device.metal() newDepthStencilStateWithDescriptor:descriptor.metal()]) } 41 41 { 42 LOG(Web GPU, "GPUDepthStencilState::GPUDepthStencilState()");42 LOG(WebMetal, "GPUDepthStencilState::GPUDepthStencilState()"); 43 43 } 44 44 … … 55 55 // FIXME: The MTLDepthStencilState protocol does not allow setting the label. 56 56 // The label has to be set on the descriptor when creating the state object. 57 // We should consider changing the Web GPUinterface to not require this!57 // We should consider changing the WebMetal interface to not require this! 58 58 } 59 59 -
trunk/Source/WebCore/platform/graphics/metal/GPUDeviceMetal.mm
r234258 r236954 27 27 #import "GPUDevice.h" 28 28 29 #if ENABLE(WEB GPU)29 #if ENABLE(WEBMETAL) 30 30 31 31 #import "Logging.h" 32 #import "Web GPULayer.h"32 #import "WebMetalLayer.h" 33 33 #import <JavaScriptCore/ArrayBuffer.h> 34 34 #import <Metal/Metal.h> … … 42 42 43 43 if (!m_metal) { 44 LOG(Web GPU, "GPUDevice::GPUDevice -- could not create the device. This usually means Metal is not available on this hardware.");44 LOG(WebMetal, "GPUDevice::GPUDevice -- could not create the device. This usually means Metal is not available on this hardware."); 45 45 return; 46 46 } 47 47 48 LOG(Web GPU, "GPUDevice::GPUDevice Metal device is %p", m_metal.get());48 LOG(WebMetal, "GPUDevice::GPUDevice Metal device is %p", m_metal.get()); 49 49 50 50 BEGIN_BLOCK_OBJC_EXCEPTIONS 51 51 52 m_layer = adoptNS([[Web GPULayer alloc] initWithGPUDevice:this]);52 m_layer = adoptNS([[WebMetalLayer alloc] initWithGPUDevice:this]); 53 53 [m_layer setOpaque:0]; 54 [m_layer setName:@"Web GPULayer"];54 [m_layer setName:@"WebMetal Layer"]; 55 55 56 // FIXME: Web GPU - Should this be in the WebGPULayer initializer?56 // FIXME: WebMetal - Should this be in the WebMetalLayer initializer? 57 57 [m_layer setDevice:m_metal.get()]; 58 58 [m_layer setPixelFormat:MTLPixelFormatBGRA8Unorm]; … … 73 73 [m_layer setDrawableSize:CGSizeMake(width, height)]; 74 74 75 // FIXME: Web GPU- Lots of reshape stuff should go here. See GC3D.75 // FIXME: WebMetal - Lots of reshape stuff should go here. See GC3D. 76 76 } 77 77 -
trunk/Source/WebCore/platform/graphics/metal/GPUDrawableMetal.mm
r234348 r236954 27 27 #import "GPUDrawable.h" 28 28 29 #if ENABLE(WEB GPU)29 #if ENABLE(WEBMETAL) 30 30 31 31 #import "GPUDevice.h" 32 32 #import "Logging.h" 33 #import "Web GPULayer.h"33 #import "WebMetalLayer.h" 34 34 35 35 namespace WebCore { … … 38 38 : m_metal { [device.layer() nextDrawable] } 39 39 { 40 LOG(Web GPU, "GPUDrawable::GPUDrawable()");40 LOG(WebMetal, "GPUDrawable::GPUDrawable()"); 41 41 } 42 42 43 43 void GPUDrawable::release() 44 44 { 45 LOG(Web GPU, "GPUDrawable::release()");45 LOG(WebMetal, "GPUDrawable::release()"); 46 46 m_metal = nil; 47 47 } -
trunk/Source/WebCore/platform/graphics/metal/GPUFunctionMetal.mm
r234258 r236954 27 27 #import "GPUFunction.h" 28 28 29 #if ENABLE(WEB GPU)29 #if ENABLE(WEBMETAL) 30 30 31 31 #import "GPULibrary.h" … … 39 39 : m_metal { adoptNS([library.metal() newFunctionWithName:name]) } 40 40 { 41 LOG(Web GPU, "GPUFunction::GPUFunction()");41 LOG(WebMetal, "GPUFunction::GPUFunction()"); 42 42 } 43 43 -
trunk/Source/WebCore/platform/graphics/metal/GPULibraryMetal.mm
r234258 r236954 27 27 #import "GPULibrary.h" 28 28 29 #if ENABLE(WEB GPU)29 #if ENABLE(WEBMETAL) 30 30 31 31 #import "GPUDevice.h" … … 39 39 GPULibrary::GPULibrary(const GPUDevice& device, const String& sourceCode) 40 40 { 41 LOG(Web GPU, "GPULibrary::GPULibrary()");41 LOG(WebMetal, "GPULibrary::GPULibrary()"); 42 42 43 43 if (!device.metal()) … … 47 47 m_metal = adoptNS([device.metal() newLibraryWithSource:sourceCode options:nil error:&error]); 48 48 if (!m_metal) 49 LOG(Web GPU, "Compilation error: %s", [[error localizedDescription] UTF8String]);49 LOG(WebMetal, "Compilation error: %s", [[error localizedDescription] UTF8String]); 50 50 } 51 51 -
trunk/Source/WebCore/platform/graphics/metal/GPURenderCommandEncoderMetal.mm
r234258 r236954 27 27 #import "GPURenderCommandEncoder.h" 28 28 29 #if ENABLE(WEB GPU)29 #if ENABLE(WEBMETAL) 30 30 31 31 #import "GPUBuffer.h" … … 41 41 GPURenderCommandEncoder::GPURenderCommandEncoder(const GPUCommandBuffer& buffer, const GPURenderPassDescriptor& descriptor) 42 42 { 43 LOG(Web GPU, "GPURenderCommandEncoder::GPURenderCommandEncoder()");43 LOG(WebMetal, "GPURenderCommandEncoder::GPURenderCommandEncoder()"); 44 44 45 45 if (!descriptor.metal()) -
trunk/Source/WebCore/platform/graphics/metal/GPURenderPassAttachmentDescriptorMetal.mm
r234258 r236954 27 27 #import "GPURenderPassAttachmentDescriptor.h" 28 28 29 #if ENABLE(WEB GPU)29 #if ENABLE(WEBMETAL) 30 30 31 31 #import "GPUTexture.h" … … 39 39 : m_metal { metal } 40 40 { 41 LOG(Web GPU, "GPURenderPassAttachmentDescriptor::GPURenderPassAttachmentDescriptor()");41 LOG(WebMetal, "GPURenderPassAttachmentDescriptor::GPURenderPassAttachmentDescriptor()"); 42 42 } 43 43 -
trunk/Source/WebCore/platform/graphics/metal/GPURenderPassColorAttachmentDescriptorMetal.mm
r234258 r236954 27 27 #import "GPURenderPassColorAttachmentDescriptor.h" 28 28 29 #if ENABLE(WEB GPU)29 #if ENABLE(WEBMETAL) 30 30 31 31 #import "FloatConversion.h" … … 39 39 : GPURenderPassAttachmentDescriptor { metal } 40 40 { 41 LOG(Web GPU, "GPURenderPassColorAttachmentDescriptor::GPURenderPassColorAttachmentDescriptor()");41 LOG(WebMetal, "GPURenderPassColorAttachmentDescriptor::GPURenderPassColorAttachmentDescriptor()"); 42 42 } 43 43 -
trunk/Source/WebCore/platform/graphics/metal/GPURenderPassDepthAttachmentDescriptorMetal.mm
r234258 r236954 27 27 #import "GPURenderPassDepthAttachmentDescriptor.h" 28 28 29 #if ENABLE(WEB GPU)29 #if ENABLE(WEBMETAL) 30 30 31 31 #import "GPURenderPassAttachmentDescriptor.h" … … 38 38 : GPURenderPassAttachmentDescriptor { metal } 39 39 { 40 LOG(Web GPU, "GPURenderPassDepthAttachmentDescriptor::GPURenderPassDepthAttachmentDescriptor()");40 LOG(WebMetal, "GPURenderPassDepthAttachmentDescriptor::GPURenderPassDepthAttachmentDescriptor()"); 41 41 } 42 42 -
trunk/Source/WebCore/platform/graphics/metal/GPURenderPassDescriptorMetal.mm
r236445 r236954 27 27 #import "GPURenderPassDescriptor.h" 28 28 29 #if ENABLE(WEB GPU)29 #if ENABLE(WEBMETAL) 30 30 31 31 #import "GPURenderPassColorAttachmentDescriptor.h" … … 40 40 : m_metal { adoptNS([MTLRenderPassDescriptor new]) } 41 41 { 42 LOG(Web GPU, "GPURenderPassDescriptor::GPURenderPassDescriptor()");42 LOG(WebMetal, "GPURenderPassDescriptor::GPURenderPassDescriptor()"); 43 43 } 44 44 -
trunk/Source/WebCore/platform/graphics/metal/GPURenderPipelineColorAttachmentDescriptorMetal.mm
r234258 r236954 27 27 #import "GPURenderPipelineColorAttachmentDescriptor.h" 28 28 29 #if ENABLE(WEB GPU)29 #if ENABLE(WEBMETAL) 30 30 31 31 #import "Logging.h" … … 37 37 : m_metal { metal } 38 38 { 39 LOG(Web GPU, "GPURenderPipelineColorAttachmentDescriptor::GPURenderPipelineColorAttachmentDescriptor()");39 LOG(WebMetal, "GPURenderPipelineColorAttachmentDescriptor::GPURenderPipelineColorAttachmentDescriptor()"); 40 40 } 41 41 -
trunk/Source/WebCore/platform/graphics/metal/GPURenderPipelineDescriptorMetal.mm
r234258 r236954 27 27 #import "GPURenderPipelineDescriptor.h" 28 28 29 #if ENABLE(WEB GPU)29 #if ENABLE(WEBMETAL) 30 30 31 31 #import "GPUFunction.h" … … 40 40 : m_metal { adoptNS([MTLRenderPipelineDescriptor new]) } 41 41 { 42 LOG(Web GPU, "GPURenderPipelineDescriptor::GPURenderPipelineDescriptor()");42 LOG(WebMetal, "GPURenderPipelineDescriptor::GPURenderPipelineDescriptor()"); 43 43 } 44 44 -
trunk/Source/WebCore/platform/graphics/metal/GPURenderPipelineStateMetal.mm
r234258 r236954 27 27 #import "GPURenderPipelineState.h" 28 28 29 #if ENABLE(WEB GPU)29 #if ENABLE(WEBMETAL) 30 30 31 31 #import "GPUDevice.h" … … 40 40 : m_metal { adoptNS([device.metal() newRenderPipelineStateWithDescriptor:descriptor.metal() error:nil]) } 41 41 { 42 LOG(Web GPU, "GPURenderPipelineState::GPURenderPipelineState()");42 LOG(WebMetal, "GPURenderPipelineState::GPURenderPipelineState()"); 43 43 } 44 44 … … 54 54 // FIXME: The MTLRenderPipelineState protocol does not allow setting the label. 55 55 // The label has to be set on the descriptor when creating the state object. 56 // We should consider changing the Web GPUinterface to not require this!56 // We should consider changing the WebMetal interface to not require this! 57 57 } 58 58 -
trunk/Source/WebCore/platform/graphics/metal/GPUTextureDescriptorMetal.mm
r234258 r236954 27 27 #import "GPUTextureDescriptor.h" 28 28 29 #if ENABLE(WEB GPU)29 #if ENABLE(WEBMETAL) 30 30 31 31 #import "Logging.h" … … 37 37 : m_metal { [MTLTextureDescriptor texture2DDescriptorWithPixelFormat:static_cast<MTLPixelFormat>(pixelFormat) width:width height:height mipmapped:mipmapped] } 38 38 { 39 LOG(Web GPU, "GPUTextureDescriptor::GPUTextureDescriptor()");39 LOG(WebMetal, "GPUTextureDescriptor::GPUTextureDescriptor()"); 40 40 } 41 41 -
trunk/Source/WebCore/platform/graphics/metal/GPUTextureMetal.mm
r234258 r236954 27 27 #import "GPUTexture.h" 28 28 29 #if ENABLE(WEB GPU)29 #if ENABLE(WEBMETAL) 30 30 31 31 #import "GPUDevice.h" … … 39 39 GPUTexture::GPUTexture(const GPUDevice& device, const GPUTextureDescriptor& descriptor) 40 40 { 41 LOG(Web GPU, "GPUTexture::GPUTexture()");41 LOG(WebMetal, "GPUTexture::GPUTexture()"); 42 42 43 43 if (!descriptor.metal()) … … 50 50 : m_metal { other.texture() } 51 51 { 52 LOG(Web GPU, "GPUTexture::GPUTexture()");52 LOG(WebMetal, "GPUTexture::GPUTexture()"); 53 53 } 54 54 -
trunk/Source/WebCore/testing/InternalSettings.cpp
r234808 r236954 112 112 , m_webGL2Enabled(RuntimeEnabledFeatures::sharedFeatures().webGL2Enabled()) 113 113 #endif 114 #if ENABLE(WEB GPU)115 , m_web GPUEnabled(RuntimeEnabledFeatures::sharedFeatures().webGPUEnabled())114 #if ENABLE(WEBMETAL) 115 , m_webMetalEnabled(RuntimeEnabledFeatures::sharedFeatures().webMetalEnabled()) 116 116 #endif 117 117 , m_webVREnabled(RuntimeEnabledFeatures::sharedFeatures().webVREnabled()) … … 217 217 RuntimeEnabledFeatures::sharedFeatures().setWebGL2Enabled(m_webGL2Enabled); 218 218 #endif 219 #if ENABLE(WEB GPU)220 RuntimeEnabledFeatures::sharedFeatures().setWeb GPUEnabled(m_webGPUEnabled);219 #if ENABLE(WEBMETAL) 220 RuntimeEnabledFeatures::sharedFeatures().setWebMetalEnabled(m_webMetalEnabled); 221 221 #endif 222 222 RuntimeEnabledFeatures::sharedFeatures().setWebVREnabled(m_webVREnabled); … … 759 759 } 760 760 761 void InternalSettings::setWeb GPUEnabled(bool enabled)762 { 763 #if ENABLE(WEB GPU)764 RuntimeEnabledFeatures::sharedFeatures().setWeb GPUEnabled(enabled);761 void InternalSettings::setWebMetalEnabled(bool enabled) 762 { 763 #if ENABLE(WEBMETAL) 764 RuntimeEnabledFeatures::sharedFeatures().setWebMetalEnabled(enabled); 765 765 #else 766 766 UNUSED_PARAM(enabled); -
trunk/Source/WebCore/testing/InternalSettings.h
r233115 r236954 123 123 static void setIndexedDBWorkersEnabled(bool); 124 124 static void setWebGL2Enabled(bool); 125 static void setWeb GPUEnabled(bool);125 static void setWebMetalEnabled(bool); 126 126 static void setWebVREnabled(bool); 127 127 static void setScreenCaptureEnabled(bool); … … 210 210 bool m_indexedDBWorkersEnabled; 211 211 bool m_webGL2Enabled; 212 bool m_web GPUEnabled;212 bool m_webMetalEnabled; 213 213 bool m_webVREnabled; 214 214 bool m_setScreenCaptureEnabled; -
trunk/Source/WebCore/testing/InternalSettings.idl
r233115 r236954 91 91 void setIndexedDBWorkersEnabled(boolean enabled); 92 92 void setWebGL2Enabled(boolean enabled); 93 void setWeb GPUEnabled(boolean enabled);93 void setWebMetalEnabled(boolean enabled); 94 94 void setWebVREnabled(boolean enabled); 95 95 void setScreenCaptureEnabled(boolean enabled); -
trunk/Source/WebInspectorUI/ChangeLog
r236953 r236954 1 2018-10-08 Justin Fan <justin_fan@apple.com> 2 3 WebGPU: Rename old WebGPU prototype to WebMetal 4 https://bugs.webkit.org/show_bug.cgi?id=190325 5 <rdar://problem/44990443> 6 7 Reviewed by Dean Jackson. 8 9 Rename WebGPU prototype files to WebMetal in preparation for implementing the new (Oct 2018) WebGPU interface. 10 For WebInspector, add WebMetal to valid enums for canvas types. 11 12 * UserInterface/Models/Canvas.js: 13 (WI.Canvas.fromPayload): 14 (WI.Canvas.displayNameForContextType): 15 1 16 2018-10-08 Devin Rousso <drousso@apple.com> 2 17 -
trunk/Source/WebInspectorUI/UserInterface/Models/Canvas.js
r236952 r236954 75 75 case CanvasAgent.ContextType.WebGPU: 76 76 contextType = WI.Canvas.ContextType.WebGPU; 77 case CanvasAgent.ContextType.WebMetal: 78 contextType = WI.Canvas.ContextType.WebMetal; 77 79 break; 78 80 default: … … 102 104 case WI.Canvas.ContextType.WebGPU: 103 105 return WI.unlocalizedString("WebGPU"); 106 case WI.Canvas.ContextType.WebMetal: 107 return WI.unlocalizedString("WebMetal"); 104 108 default: 105 109 console.error("Invalid canvas context type", contextType); … … 369 373 WebGL2: "webgl2", 370 374 WebGPU: "webgpu", 375 WebMetal: "webmetal", 371 376 }; 372 377 -
trunk/Source/WebKit/ChangeLog
r236951 r236954 1 2018-10-08 Justin Fan <justin_fan@apple.com> 2 3 WebGPU: Rename old WebGPU prototype to WebMetal 4 https://bugs.webkit.org/show_bug.cgi?id=190325 5 <rdar://problem/44990443> 6 7 Reviewed by Dean Jackson. 8 9 Rename WebGPU prototype files to WebMetal in preparation for implementing the new (Oct 2018) WebGPU interface. 10 11 * Configurations/FeatureDefines.xcconfig: 12 * Shared/WebPreferences.yaml: 13 * WebProcess/InjectedBundle/InjectedBundle.cpp: 14 (WebKit::InjectedBundle::overrideBoolPreferenceForTestRunner): 15 1 16 2018-10-08 Wenson Hsieh <wenson_hsieh@apple.com> 2 17 -
trunk/Source/WebKit/Configurations/FeatureDefines.xcconfig
r236942 r236954 351 351 ENABLE_WEBGL2 = ENABLE_WEBGL2; 352 352 353 ENABLE_WEB GPU = $(ENABLE_WEBGPU_$(WK_PLATFORM_NAME));354 ENABLE_WEB GPU_iphoneos = ENABLE_WEBGPU;355 ENABLE_WEB GPU_watchos = ENABLE_WEBGPU;356 ENABLE_WEB GPU_appletvos = ENABLE_WEBGPU;357 ENABLE_WEB GPU_macosx = ENABLE_WEBGPU;353 ENABLE_WEBMETAL = $(ENABLE_WEBMETAL_$(WK_PLATFORM_NAME)); 354 ENABLE_WEBMETAL_iphoneos = ENABLE_WEBMETAL; 355 ENABLE_WEBMETAL_watchos = ENABLE_WEBMETAL; 356 ENABLE_WEBMETAL_appletvos = ENABLE_WEBMETAL; 357 ENABLE_WEBMETAL_macosx = ENABLE_WEBMETAL; 358 358 359 359 ENABLE_WEB_AUDIO = ENABLE_WEB_AUDIO; … … 373 373 ENABLE_XSLT = ENABLE_XSLT; 374 374 375 FEATURE_DEFINES = $(ENABLE_3D_TRANSFORMS) $(ENABLE_ACCELERATED_2D_CANVAS) $(ENABLE_ACCELERATED_OVERFLOW_SCROLLING) $(ENABLE_APPLE_PAY) $(ENABLE_APPLE_PAY_SESSION_V3) $(ENABLE_APPLE_PAY_SESSION_V4) $(ENABLE_APPLICATION_MANIFEST) $(ENABLE_ATTACHMENT_ELEMENT) $(ENABLE_AVF_CAPTIONS) $(ENABLE_CACHE_PARTITIONING) $(ENABLE_CHANNEL_MESSAGING) $(ENABLE_CONTENT_FILTERING) $(ENABLE_CSS3_TEXT) $(ENABLE_CSS_BOX_DECORATION_BREAK) $(ENABLE_CSS_COMPOSITING) $(ENABLE_CSS_DEVICE_ADAPTATION) $(ENABLE_CSS_IMAGE_ORIENTATION) $(ENABLE_CSS_IMAGE_RESOLUTION) $(ENABLE_CSS_SCROLL_SNAP) $(ENABLE_CSS_SELECTORS_LEVEL4) $(ENABLE_CSS_TRAILING_WORD) $(ENABLE_CURSOR_VISIBILITY) $(ENABLE_CUSTOM_SCHEME_HANDLER) $(ENABLE_DASHBOARD_SUPPORT) $(ENABLE_DATA_INTERACTION) $(ENABLE_DATACUE_VALUE) $(ENABLE_DATALIST_ELEMENT) $(ENABLE_DEVICE_ORIENTATION) $(ENABLE_DRAG_SUPPORT) $(ENABLE_ENCRYPTED_MEDIA) $(ENABLE_EXPERIMENTAL_FEATURES) $(ENABLE_FAST_JIT_PERMISSIONS) $(ENABLE_FILTERS_LEVEL_2) $(ENABLE_FTL_JIT) $(ENABLE_FULLSCREEN_API) $(ENABLE_GAMEPAD) $(ENABLE_GEOLOCATION) $(ENABLE_ICONDATABASE) $(ENABLE_INDEXED_DATABASE) $(ENABLE_INDEXED_DATABASE_IN_WORKERS) $(ENABLE_INPUT_TYPE_COLOR) $(ENABLE_INPUT_TYPE_DATE) $(ENABLE_INPUT_TYPE_DATETIME_INCOMPLETE) $(ENABLE_INPUT_TYPE_DATETIMELOCAL) $(ENABLE_INPUT_TYPE_MONTH) $(ENABLE_INPUT_TYPE_TIME) $(ENABLE_INPUT_TYPE_WEEK) $(ENABLE_INTERSECTION_OBSERVER) $(ENABLE_INTL) $(ENABLE_IOS_GESTURE_EVENTS) $(ENABLE_IOS_TOUCH_EVENTS) $(ENABLE_JIT) $(ENABLE_JS_ASYNC_ITERATION) $(ENABLE_KEYBOARD_CODE_ATTRIBUTE) $(ENABLE_KEYBOARD_KEY_ATTRIBUTE) $(ENABLE_LAYOUT_FORMATTING_CONTEXT) $(ENABLE_LEGACY_CSS_VENDOR_PREFIXES) $(ENABLE_LEGACY_CUSTOM_PROTOCOL_MANAGER) $(ENABLE_LEGACY_ENCRYPTED_MEDIA) $(ENABLE_LETTERPRESS) $(ENABLE_MAC_GESTURE_EVENTS) $(ENABLE_MAC_VIDEO_TOOLBOX) $(ENABLE_MATHML) $(ENABLE_MEDIA_CAPTURE) $(ENABLE_MEDIA_CONTROLS_SCRIPT) $(ENABLE_MEDIA_SESSION) $(ENABLE_MEDIA_SOURCE) $(ENABLE_MEDIA_STATISTICS) $(ENABLE_MEDIA_STREAM) $(ENABLE_METER_ELEMENT) $(ENABLE_MHTML) $(ENABLE_MOUSE_CURSOR_SCALE) $(ENABLE_NAVIGATOR_CONTENT_UTILS) $(ENABLE_NAVIGATOR_STANDALONE) $(ENABLE_NOTIFICATIONS) $(ENABLE_PAYMENT_REQUEST) $(ENABLE_PDFKIT_PLUGIN) $(ENABLE_POINTER_LOCK) $(ENABLE_PUBLIC_SUFFIX_LIST) $(ENABLE_QUOTA) $(ENABLE_REMOTE_INSPECTOR) $(ENABLE_RESOLUTION_MEDIA_QUERY) $(ENABLE_RESOURCE_USAGE) $(ENABLE_RUBBER_BANDING) $(ENABLE_SERVICE_CONTROLS) $(ENABLE_SERVICE_WORKER) $(ENABLE_SPEECH_SYNTHESIS) $(ENABLE_STREAMS_API) $(ENABLE_SUBTLE_CRYPTO) $(ENABLE_SVG_FONTS) $(ENABLE_TELEPHONE_NUMBER_DETECTION) $(ENABLE_TEXT_AUTOSIZING) $(ENABLE_TOUCH_EVENTS) $(ENABLE_USER_MESSAGE_HANDLERS) $(ENABLE_USERSELECT_ALL) $(ENABLE_VARIATION_FONTS) $(ENABLE_VIDEO) $(ENABLE_VIDEO_PRESENTATION_MODE) $(ENABLE_VIDEO_TRACK) $(ENABLE_VIDEO_USES_ELEMENT_FULLSCREEN) $(ENABLE_WEB_AUDIO) $(ENABLE_WEB_AUTHN) $(ENABLE_WEB_RTC) $(ENABLE_WEBASSEMBLY) $(ENABLE_WEBASSEMBLY_STREAMING_API) $(ENABLE_WEBGL) $(ENABLE_WEBGL2) $(ENABLE_WEB GPU) $(ENABLE_WIRELESS_PLAYBACK_TARGET) $(ENABLE_XSLT);375 FEATURE_DEFINES = $(ENABLE_3D_TRANSFORMS) $(ENABLE_ACCELERATED_2D_CANVAS) $(ENABLE_ACCELERATED_OVERFLOW_SCROLLING) $(ENABLE_APPLE_PAY) $(ENABLE_APPLE_PAY_SESSION_V3) $(ENABLE_APPLE_PAY_SESSION_V4) $(ENABLE_APPLICATION_MANIFEST) $(ENABLE_ATTACHMENT_ELEMENT) $(ENABLE_AVF_CAPTIONS) $(ENABLE_CACHE_PARTITIONING) $(ENABLE_CHANNEL_MESSAGING) $(ENABLE_CONTENT_FILTERING) $(ENABLE_CSS3_TEXT) $(ENABLE_CSS_BOX_DECORATION_BREAK) $(ENABLE_CSS_COMPOSITING) $(ENABLE_CSS_DEVICE_ADAPTATION) $(ENABLE_CSS_IMAGE_ORIENTATION) $(ENABLE_CSS_IMAGE_RESOLUTION) $(ENABLE_CSS_SCROLL_SNAP) $(ENABLE_CSS_SELECTORS_LEVEL4) $(ENABLE_CSS_TRAILING_WORD) $(ENABLE_CURSOR_VISIBILITY) $(ENABLE_CUSTOM_SCHEME_HANDLER) $(ENABLE_DASHBOARD_SUPPORT) $(ENABLE_DATA_INTERACTION) $(ENABLE_DATACUE_VALUE) $(ENABLE_DATALIST_ELEMENT) $(ENABLE_DEVICE_ORIENTATION) $(ENABLE_DRAG_SUPPORT) $(ENABLE_ENCRYPTED_MEDIA) $(ENABLE_EXPERIMENTAL_FEATURES) $(ENABLE_FAST_JIT_PERMISSIONS) $(ENABLE_FILTERS_LEVEL_2) $(ENABLE_FTL_JIT) $(ENABLE_FULLSCREEN_API) $(ENABLE_GAMEPAD) $(ENABLE_GEOLOCATION) $(ENABLE_ICONDATABASE) $(ENABLE_INDEXED_DATABASE) $(ENABLE_INDEXED_DATABASE_IN_WORKERS) $(ENABLE_INPUT_TYPE_COLOR) $(ENABLE_INPUT_TYPE_DATE) $(ENABLE_INPUT_TYPE_DATETIME_INCOMPLETE) $(ENABLE_INPUT_TYPE_DATETIMELOCAL) $(ENABLE_INPUT_TYPE_MONTH) $(ENABLE_INPUT_TYPE_TIME) $(ENABLE_INPUT_TYPE_WEEK) $(ENABLE_INTERSECTION_OBSERVER) $(ENABLE_INTL) $(ENABLE_IOS_GESTURE_EVENTS) $(ENABLE_IOS_TOUCH_EVENTS) $(ENABLE_JIT) $(ENABLE_JS_ASYNC_ITERATION) $(ENABLE_KEYBOARD_CODE_ATTRIBUTE) $(ENABLE_KEYBOARD_KEY_ATTRIBUTE) $(ENABLE_LAYOUT_FORMATTING_CONTEXT) $(ENABLE_LEGACY_CSS_VENDOR_PREFIXES) $(ENABLE_LEGACY_CUSTOM_PROTOCOL_MANAGER) $(ENABLE_LEGACY_ENCRYPTED_MEDIA) $(ENABLE_LETTERPRESS) $(ENABLE_MAC_GESTURE_EVENTS) $(ENABLE_MAC_VIDEO_TOOLBOX) $(ENABLE_MATHML) $(ENABLE_MEDIA_CAPTURE) $(ENABLE_MEDIA_CONTROLS_SCRIPT) $(ENABLE_MEDIA_SESSION) $(ENABLE_MEDIA_SOURCE) $(ENABLE_MEDIA_STATISTICS) $(ENABLE_MEDIA_STREAM) $(ENABLE_METER_ELEMENT) $(ENABLE_MHTML) $(ENABLE_MOUSE_CURSOR_SCALE) $(ENABLE_NAVIGATOR_CONTENT_UTILS) $(ENABLE_NAVIGATOR_STANDALONE) $(ENABLE_NOTIFICATIONS) $(ENABLE_PAYMENT_REQUEST) $(ENABLE_PDFKIT_PLUGIN) $(ENABLE_POINTER_LOCK) $(ENABLE_PUBLIC_SUFFIX_LIST) $(ENABLE_QUOTA) $(ENABLE_REMOTE_INSPECTOR) $(ENABLE_RESOLUTION_MEDIA_QUERY) $(ENABLE_RESOURCE_USAGE) $(ENABLE_RUBBER_BANDING) $(ENABLE_SERVICE_CONTROLS) $(ENABLE_SERVICE_WORKER) $(ENABLE_SPEECH_SYNTHESIS) $(ENABLE_STREAMS_API) $(ENABLE_SUBTLE_CRYPTO) $(ENABLE_SVG_FONTS) $(ENABLE_TELEPHONE_NUMBER_DETECTION) $(ENABLE_TEXT_AUTOSIZING) $(ENABLE_TOUCH_EVENTS) $(ENABLE_USER_MESSAGE_HANDLERS) $(ENABLE_USERSELECT_ALL) $(ENABLE_VARIATION_FONTS) $(ENABLE_VIDEO) $(ENABLE_VIDEO_PRESENTATION_MODE) $(ENABLE_VIDEO_TRACK) $(ENABLE_VIDEO_USES_ELEMENT_FULLSCREEN) $(ENABLE_WEB_AUDIO) $(ENABLE_WEB_AUTHN) $(ENABLE_WEB_RTC) $(ENABLE_WEBASSEMBLY) $(ENABLE_WEBASSEMBLY_STREAMING_API) $(ENABLE_WEBGL) $(ENABLE_WEBGL2) $(ENABLE_WEBMETAL) $(ENABLE_WIRELESS_PLAYBACK_TARGET) $(ENABLE_XSLT); -
trunk/Source/WebKit/Shared/WebPreferences.yaml
r236951 r236954 1239 1239 condition: ENABLE(WEBGL2) 1240 1240 1241 Web GPUEnabled:1242 type: bool 1243 defaultValue: false 1244 humanReadableName: "Web GPU"1245 humanReadableDescription: "Web GPUprototype"1246 category: experimental 1247 webcoreBinding: RuntimeEnabledFeatures 1248 condition: ENABLE(WEB GPU)1241 WebMetalEnabled: 1242 type: bool 1243 defaultValue: false 1244 humanReadableName: "WebMetal" 1245 humanReadableDescription: "WebMetal prototype" 1246 category: experimental 1247 webcoreBinding: RuntimeEnabledFeatures 1248 condition: ENABLE(WEBMETAL) 1249 1249 1250 1250 AccessibilityObjectModelEnabled: -
trunk/Source/WebKit/WebProcess/InjectedBundle/InjectedBundle.cpp
r236762 r236954 212 212 #endif 213 213 214 #if ENABLE(WEB GPU)215 if (preference == "WebKitWeb GPUEnabled")216 RuntimeEnabledFeatures::sharedFeatures().setWeb GPUEnabled(enabled);214 #if ENABLE(WEBMETAL) 215 if (preference == "WebKitWebMetalEnabled") 216 RuntimeEnabledFeatures::sharedFeatures().setWebMetalEnabled(enabled); 217 217 #endif 218 218 -
trunk/Source/WebKitLegacy/mac/ChangeLog
r236942 r236954 1 2018-10-08 Justin Fan <justin_fan@apple.com> 2 3 WebGPU: Rename old WebGPU prototype to WebMetal 4 https://bugs.webkit.org/show_bug.cgi?id=190325 5 <rdar://problem/44990443> 6 7 Reviewed by Dean Jackson. 8 9 Rename WebGPU prototype files to WebMetal in preparation for implementing the new (Oct 2018) WebGPU interface. 10 11 * Configurations/FeatureDefines.xcconfig: 12 * WebView/WebPreferenceKeysPrivate.h: 13 * WebView/WebPreferences.mm: 14 (+[WebPreferences initialize]): 15 (-[WebPreferences webMetalEnabled]): 16 (-[WebPreferences setWebMetalEnabled:]): 17 (-[WebPreferences webGPUEnabled]): Deleted. 18 (-[WebPreferences setWebGPUEnabled:]): Deleted. 19 * WebView/WebPreferencesPrivate.h: 20 * WebView/WebView.mm: 21 (-[WebView _preferencesChanged:]): 22 1 23 2018-10-08 Aditya Keerthi <akeerthi@apple.com> 2 24 -
trunk/Source/WebKitLegacy/mac/Configurations/FeatureDefines.xcconfig
r236942 r236954 351 351 ENABLE_WEBGL2 = ENABLE_WEBGL2; 352 352 353 ENABLE_WEB GPU = $(ENABLE_WEBGPU_$(WK_PLATFORM_NAME));354 ENABLE_WEB GPU_iphoneos = ENABLE_WEBGPU;355 ENABLE_WEB GPU_watchos = ENABLE_WEBGPU;356 ENABLE_WEB GPU_appletvos = ENABLE_WEBGPU;357 ENABLE_WEB GPU_macosx = ENABLE_WEBGPU;353 ENABLE_WEBMETAL = $(ENABLE_WEBMETAL_$(WK_PLATFORM_NAME)); 354 ENABLE_WEBMETAL_iphoneos = ENABLE_WEBMETAL; 355 ENABLE_WEBMETAL_watchos = ENABLE_WEBMETAL; 356 ENABLE_WEBMETAL_appletvos = ENABLE_WEBMETAL; 357 ENABLE_WEBMETAL_macosx = ENABLE_WEBMETAL; 358 358 359 359 ENABLE_WEB_AUDIO = ENABLE_WEB_AUDIO; … … 373 373 ENABLE_XSLT = ENABLE_XSLT; 374 374 375 FEATURE_DEFINES = $(ENABLE_3D_TRANSFORMS) $(ENABLE_ACCELERATED_2D_CANVAS) $(ENABLE_ACCELERATED_OVERFLOW_SCROLLING) $(ENABLE_APPLE_PAY) $(ENABLE_APPLE_PAY_SESSION_V3) $(ENABLE_APPLE_PAY_SESSION_V4) $(ENABLE_APPLICATION_MANIFEST) $(ENABLE_ATTACHMENT_ELEMENT) $(ENABLE_AVF_CAPTIONS) $(ENABLE_CACHE_PARTITIONING) $(ENABLE_CHANNEL_MESSAGING) $(ENABLE_CONTENT_FILTERING) $(ENABLE_CSS3_TEXT) $(ENABLE_CSS_BOX_DECORATION_BREAK) $(ENABLE_CSS_COMPOSITING) $(ENABLE_CSS_DEVICE_ADAPTATION) $(ENABLE_CSS_IMAGE_ORIENTATION) $(ENABLE_CSS_IMAGE_RESOLUTION) $(ENABLE_CSS_SCROLL_SNAP) $(ENABLE_CSS_SELECTORS_LEVEL4) $(ENABLE_CSS_TRAILING_WORD) $(ENABLE_CURSOR_VISIBILITY) $(ENABLE_CUSTOM_SCHEME_HANDLER) $(ENABLE_DASHBOARD_SUPPORT) $(ENABLE_DATA_INTERACTION) $(ENABLE_DATACUE_VALUE) $(ENABLE_DATALIST_ELEMENT) $(ENABLE_DEVICE_ORIENTATION) $(ENABLE_DRAG_SUPPORT) $(ENABLE_ENCRYPTED_MEDIA) $(ENABLE_EXPERIMENTAL_FEATURES) $(ENABLE_FAST_JIT_PERMISSIONS) $(ENABLE_FILTERS_LEVEL_2) $(ENABLE_FTL_JIT) $(ENABLE_FULLSCREEN_API) $(ENABLE_GAMEPAD) $(ENABLE_GEOLOCATION) $(ENABLE_ICONDATABASE) $(ENABLE_INDEXED_DATABASE) $(ENABLE_INDEXED_DATABASE_IN_WORKERS) $(ENABLE_INPUT_TYPE_COLOR) $(ENABLE_INPUT_TYPE_DATE) $(ENABLE_INPUT_TYPE_DATETIME_INCOMPLETE) $(ENABLE_INPUT_TYPE_DATETIMELOCAL) $(ENABLE_INPUT_TYPE_MONTH) $(ENABLE_INPUT_TYPE_TIME) $(ENABLE_INPUT_TYPE_WEEK) $(ENABLE_INTERSECTION_OBSERVER) $(ENABLE_INTL) $(ENABLE_IOS_GESTURE_EVENTS) $(ENABLE_IOS_TOUCH_EVENTS) $(ENABLE_JIT) $(ENABLE_JS_ASYNC_ITERATION) $(ENABLE_KEYBOARD_CODE_ATTRIBUTE) $(ENABLE_KEYBOARD_KEY_ATTRIBUTE) $(ENABLE_LAYOUT_FORMATTING_CONTEXT) $(ENABLE_LEGACY_CSS_VENDOR_PREFIXES) $(ENABLE_LEGACY_CUSTOM_PROTOCOL_MANAGER) $(ENABLE_LEGACY_ENCRYPTED_MEDIA) $(ENABLE_LETTERPRESS) $(ENABLE_MAC_GESTURE_EVENTS) $(ENABLE_MAC_VIDEO_TOOLBOX) $(ENABLE_MATHML) $(ENABLE_MEDIA_CAPTURE) $(ENABLE_MEDIA_CONTROLS_SCRIPT) $(ENABLE_MEDIA_SESSION) $(ENABLE_MEDIA_SOURCE) $(ENABLE_MEDIA_STATISTICS) $(ENABLE_MEDIA_STREAM) $(ENABLE_METER_ELEMENT) $(ENABLE_MHTML) $(ENABLE_MOUSE_CURSOR_SCALE) $(ENABLE_NAVIGATOR_CONTENT_UTILS) $(ENABLE_NAVIGATOR_STANDALONE) $(ENABLE_NOTIFICATIONS) $(ENABLE_PAYMENT_REQUEST) $(ENABLE_PDFKIT_PLUGIN) $(ENABLE_POINTER_LOCK) $(ENABLE_PUBLIC_SUFFIX_LIST) $(ENABLE_QUOTA) $(ENABLE_REMOTE_INSPECTOR) $(ENABLE_RESOLUTION_MEDIA_QUERY) $(ENABLE_RESOURCE_USAGE) $(ENABLE_RUBBER_BANDING) $(ENABLE_SERVICE_CONTROLS) $(ENABLE_SERVICE_WORKER) $(ENABLE_SPEECH_SYNTHESIS) $(ENABLE_STREAMS_API) $(ENABLE_SUBTLE_CRYPTO) $(ENABLE_SVG_FONTS) $(ENABLE_TELEPHONE_NUMBER_DETECTION) $(ENABLE_TEXT_AUTOSIZING) $(ENABLE_TOUCH_EVENTS) $(ENABLE_USER_MESSAGE_HANDLERS) $(ENABLE_USERSELECT_ALL) $(ENABLE_VARIATION_FONTS) $(ENABLE_VIDEO) $(ENABLE_VIDEO_PRESENTATION_MODE) $(ENABLE_VIDEO_TRACK) $(ENABLE_VIDEO_USES_ELEMENT_FULLSCREEN) $(ENABLE_WEB_AUDIO) $(ENABLE_WEB_AUTHN) $(ENABLE_WEB_RTC) $(ENABLE_WEBASSEMBLY) $(ENABLE_WEBASSEMBLY_STREAMING_API) $(ENABLE_WEBGL) $(ENABLE_WEBGL2) $(ENABLE_WEB GPU) $(ENABLE_WIRELESS_PLAYBACK_TARGET) $(ENABLE_XSLT);375 FEATURE_DEFINES = $(ENABLE_3D_TRANSFORMS) $(ENABLE_ACCELERATED_2D_CANVAS) $(ENABLE_ACCELERATED_OVERFLOW_SCROLLING) $(ENABLE_APPLE_PAY) $(ENABLE_APPLE_PAY_SESSION_V3) $(ENABLE_APPLE_PAY_SESSION_V4) $(ENABLE_APPLICATION_MANIFEST) $(ENABLE_ATTACHMENT_ELEMENT) $(ENABLE_AVF_CAPTIONS) $(ENABLE_CACHE_PARTITIONING) $(ENABLE_CHANNEL_MESSAGING) $(ENABLE_CONTENT_FILTERING) $(ENABLE_CSS3_TEXT) $(ENABLE_CSS_BOX_DECORATION_BREAK) $(ENABLE_CSS_COMPOSITING) $(ENABLE_CSS_DEVICE_ADAPTATION) $(ENABLE_CSS_IMAGE_ORIENTATION) $(ENABLE_CSS_IMAGE_RESOLUTION) $(ENABLE_CSS_SCROLL_SNAP) $(ENABLE_CSS_SELECTORS_LEVEL4) $(ENABLE_CSS_TRAILING_WORD) $(ENABLE_CURSOR_VISIBILITY) $(ENABLE_CUSTOM_SCHEME_HANDLER) $(ENABLE_DASHBOARD_SUPPORT) $(ENABLE_DATA_INTERACTION) $(ENABLE_DATACUE_VALUE) $(ENABLE_DATALIST_ELEMENT) $(ENABLE_DEVICE_ORIENTATION) $(ENABLE_DRAG_SUPPORT) $(ENABLE_ENCRYPTED_MEDIA) $(ENABLE_EXPERIMENTAL_FEATURES) $(ENABLE_FAST_JIT_PERMISSIONS) $(ENABLE_FILTERS_LEVEL_2) $(ENABLE_FTL_JIT) $(ENABLE_FULLSCREEN_API) $(ENABLE_GAMEPAD) $(ENABLE_GEOLOCATION) $(ENABLE_ICONDATABASE) $(ENABLE_INDEXED_DATABASE) $(ENABLE_INDEXED_DATABASE_IN_WORKERS) $(ENABLE_INPUT_TYPE_COLOR) $(ENABLE_INPUT_TYPE_DATE) $(ENABLE_INPUT_TYPE_DATETIME_INCOMPLETE) $(ENABLE_INPUT_TYPE_DATETIMELOCAL) $(ENABLE_INPUT_TYPE_MONTH) $(ENABLE_INPUT_TYPE_TIME) $(ENABLE_INPUT_TYPE_WEEK) $(ENABLE_INTERSECTION_OBSERVER) $(ENABLE_INTL) $(ENABLE_IOS_GESTURE_EVENTS) $(ENABLE_IOS_TOUCH_EVENTS) $(ENABLE_JIT) $(ENABLE_JS_ASYNC_ITERATION) $(ENABLE_KEYBOARD_CODE_ATTRIBUTE) $(ENABLE_KEYBOARD_KEY_ATTRIBUTE) $(ENABLE_LAYOUT_FORMATTING_CONTEXT) $(ENABLE_LEGACY_CSS_VENDOR_PREFIXES) $(ENABLE_LEGACY_CUSTOM_PROTOCOL_MANAGER) $(ENABLE_LEGACY_ENCRYPTED_MEDIA) $(ENABLE_LETTERPRESS) $(ENABLE_MAC_GESTURE_EVENTS) $(ENABLE_MAC_VIDEO_TOOLBOX) $(ENABLE_MATHML) $(ENABLE_MEDIA_CAPTURE) $(ENABLE_MEDIA_CONTROLS_SCRIPT) $(ENABLE_MEDIA_SESSION) $(ENABLE_MEDIA_SOURCE) $(ENABLE_MEDIA_STATISTICS) $(ENABLE_MEDIA_STREAM) $(ENABLE_METER_ELEMENT) $(ENABLE_MHTML) $(ENABLE_MOUSE_CURSOR_SCALE) $(ENABLE_NAVIGATOR_CONTENT_UTILS) $(ENABLE_NAVIGATOR_STANDALONE) $(ENABLE_NOTIFICATIONS) $(ENABLE_PAYMENT_REQUEST) $(ENABLE_PDFKIT_PLUGIN) $(ENABLE_POINTER_LOCK) $(ENABLE_PUBLIC_SUFFIX_LIST) $(ENABLE_QUOTA) $(ENABLE_REMOTE_INSPECTOR) $(ENABLE_RESOLUTION_MEDIA_QUERY) $(ENABLE_RESOURCE_USAGE) $(ENABLE_RUBBER_BANDING) $(ENABLE_SERVICE_CONTROLS) $(ENABLE_SERVICE_WORKER) $(ENABLE_SPEECH_SYNTHESIS) $(ENABLE_STREAMS_API) $(ENABLE_SUBTLE_CRYPTO) $(ENABLE_SVG_FONTS) $(ENABLE_TELEPHONE_NUMBER_DETECTION) $(ENABLE_TEXT_AUTOSIZING) $(ENABLE_TOUCH_EVENTS) $(ENABLE_USER_MESSAGE_HANDLERS) $(ENABLE_USERSELECT_ALL) $(ENABLE_VARIATION_FONTS) $(ENABLE_VIDEO) $(ENABLE_VIDEO_PRESENTATION_MODE) $(ENABLE_VIDEO_TRACK) $(ENABLE_VIDEO_USES_ELEMENT_FULLSCREEN) $(ENABLE_WEB_AUDIO) $(ENABLE_WEB_AUTHN) $(ENABLE_WEB_RTC) $(ENABLE_WEBASSEMBLY) $(ENABLE_WEBASSEMBLY_STREAMING_API) $(ENABLE_WEBGL) $(ENABLE_WEBGL2) $(ENABLE_WEBMETAL) $(ENABLE_WIRELESS_PLAYBACK_TARGET) $(ENABLE_XSLT); -
trunk/Source/WebKitLegacy/mac/WebView/WebPreferenceKeysPrivate.h
r236840 r236954 114 114 #define WebKitWebGLEnabledPreferenceKey @"WebKitWebGLEnabled" 115 115 #define WebKitWebGL2EnabledPreferenceKey @"WebKitWebGL2Enabled" 116 #define WebKitWeb GPUEnabledPreferenceKey @"WebKitWebGPUEnabled"116 #define WebKitWebMetalEnabledPreferenceKey @"WebKitWebMetalEnabled" 117 117 #define WebKitForceSoftwareWebGLRenderingPreferenceKey @"WebKitForceSoftwareWebGLRendering" 118 118 #define WebKitForceWebGLUsesLowPowerPreferenceKey @"WebKitForceWebGLUsesLowPower" -
trunk/Source/WebKitLegacy/mac/WebView/WebPreferences.mm
r236840 r236954 631 631 [NSNumber numberWithBool:NO], WebKitWebGL2EnabledPreferenceKey, 632 632 #endif 633 #if ENABLE(WEB GPU)634 [NSNumber numberWithBool:NO], WebKitWeb GPUEnabledPreferenceKey,633 #if ENABLE(WEBMETAL) 634 [NSNumber numberWithBool:NO], WebKitWebMetalEnabledPreferenceKey, 635 635 #endif 636 636 [NSNumber numberWithBool:NO], WebKitCacheAPIEnabledPreferenceKey, … … 2110 2110 } 2111 2111 2112 - (BOOL)web GPUEnabled2113 { 2114 return [self _boolValueForKey:WebKitWeb GPUEnabledPreferenceKey];2115 } 2116 2117 - (void)setWeb GPUEnabled:(BOOL)enabled2118 { 2119 [self _setBoolValue:enabled forKey:WebKitWeb GPUEnabledPreferenceKey];2112 - (BOOL)webMetalEnabled 2113 { 2114 return [self _boolValueForKey:WebKitWebMetalEnabledPreferenceKey]; 2115 } 2116 2117 - (void)setWebMetalEnabled:(BOOL)enabled 2118 { 2119 [self _setBoolValue:enabled forKey:WebKitWebMetalEnabledPreferenceKey]; 2120 2120 } 2121 2121 -
trunk/Source/WebKitLegacy/mac/WebView/WebPreferencesPrivate.h
r236840 r236954 273 273 - (void)setForceWebGLUsesLowPower:(BOOL)forceLowPower; 274 274 275 - (BOOL)web GPUEnabled;276 - (void)setWeb GPUEnabled:(BOOL)enabled;275 - (BOOL)webMetalEnabled; 276 - (void)setWebMetalEnabled:(BOOL)enabled; 277 277 278 278 - (BOOL)accelerated2dCanvasEnabled; -
trunk/Source/WebKitLegacy/mac/WebView/WebView.mm
r236846 r236954 3112 3112 #endif 3113 3113 3114 #if ENABLE(WEB GPU)3115 RuntimeEnabledFeatures::sharedFeatures().setWeb GPUEnabled([preferences webGPUEnabled]);3114 #if ENABLE(WEBMETAL) 3115 RuntimeEnabledFeatures::sharedFeatures().setWebMetalEnabled([preferences webMetalEnabled]); 3116 3116 #endif 3117 3117 -
trunk/Source/cmake/WebKitFeatures.cmake
r236750 r236954 186 186 WEBKIT_OPTION_DEFINE(ENABLE_WEBGL "Toggle WebGL support" PRIVATE ON) 187 187 WEBKIT_OPTION_DEFINE(ENABLE_WEBGL2 "Toggle WebGL 2.0 support" PRIVATE OFF) 188 WEBKIT_OPTION_DEFINE(ENABLE_WEB GPU "Toggle WebGPUsupport" PRIVATE OFF)188 WEBKIT_OPTION_DEFINE(ENABLE_WEBMETAL "Toggle WebMetal support" PRIVATE OFF) 189 189 WEBKIT_OPTION_DEFINE(ENABLE_WEBVTT_REGIONS "Toggle webvtt region support" PRIVATE OFF) 190 190 WEBKIT_OPTION_DEFINE(ENABLE_WEB_AUDIO "Toggle Web Audio support" PRIVATE ON) -
trunk/Tools/ChangeLog
r236943 r236954 1 2018-10-08 Justin Fan <justin_fan@apple.com> 2 3 WebGPU: Rename old WebGPU prototype to WebMetal 4 https://bugs.webkit.org/show_bug.cgi?id=190325 5 <rdar://problem/44990443> 6 7 Reviewed by Dean Jackson. 8 9 Rename WebGPU prototype files to WebMetal in preparation for implementing the new (Oct 2018) WebGPU interface. 10 11 * DumpRenderTree/mac/DumpRenderTree.mm: 12 (enableExperimentalFeatures): 13 (resetWebPreferencesToConsistentValues): 14 * TestWebKitAPI/Configurations/FeatureDefines.xcconfig: 15 * TestWebKitAPI/Tests/WebCore/mac/GPUBuffer.mm: 16 * TestWebKitAPI/Tests/WebCore/mac/GPUCommandQueue.mm: 17 * TestWebKitAPI/Tests/WebCore/mac/GPUDevice.mm: 18 * TestWebKitAPI/Tests/WebCore/mac/GPUFunction.mm: 19 * TestWebKitAPI/Tests/WebCore/mac/GPULibrary.mm: 20 * WebKitTestRunner/InjectedBundle/InjectedBundle.cpp: 21 (WTR::InjectedBundle::beginTesting): 22 * WebKitTestRunner/InjectedBundle/TestRunner.cpp: 23 (WTR::TestRunner::setWebMetalEnabled): 24 (WTR::TestRunner::setWebGPUEnabled): Deleted. 25 * WebKitTestRunner/InjectedBundle/TestRunner.h: 26 1 27 2018-10-08 Commit Queue <commit-queue@webkit.org> 2 28 -
trunk/Tools/DumpRenderTree/mac/DumpRenderTree.mm
r236840 r236954 855 855 [preferences setWebAnimationsEnabled:YES]; 856 856 [preferences setWebGL2Enabled:YES]; 857 [preferences setWeb GPUEnabled:YES];857 [preferences setWebMetalEnabled:YES]; 858 858 // FIXME: AsyncFrameScrollingEnabled 859 859 [preferences setWebAuthenticationEnabled:NO]; … … 972 972 973 973 [preferences setWebGL2Enabled:YES]; 974 [preferences setWeb GPUEnabled:YES];974 [preferences setWebMetalEnabled:YES]; 975 975 976 976 [preferences setDownloadAttributeEnabled:YES]; -
trunk/Tools/TestWebKitAPI/Configurations/FeatureDefines.xcconfig
r236942 r236954 351 351 ENABLE_WEBGL2 = ENABLE_WEBGL2; 352 352 353 ENABLE_WEB GPU = $(ENABLE_WEBGPU_$(WK_PLATFORM_NAME));354 ENABLE_WEB GPU_iphoneos = ENABLE_WEBGPU;355 ENABLE_WEB GPU_watchos = ENABLE_WEBGPU;356 ENABLE_WEB GPU_appletvos = ENABLE_WEBGPU;357 ENABLE_WEB GPU_macosx = ENABLE_WEBGPU;353 ENABLE_WEBMETAL = $(ENABLE_WEBMETAL_$(WK_PLATFORM_NAME)); 354 ENABLE_WEBMETAL_iphoneos = ENABLE_WEBMETAL; 355 ENABLE_WEBMETAL_watchos = ENABLE_WEBMETAL; 356 ENABLE_WEBMETAL_appletvos = ENABLE_WEBMETAL; 357 ENABLE_WEBMETAL_macosx = ENABLE_WEBMETAL; 358 358 359 359 ENABLE_WEB_AUDIO = ENABLE_WEB_AUDIO; … … 373 373 ENABLE_XSLT = ENABLE_XSLT; 374 374 375 FEATURE_DEFINES = $(ENABLE_3D_TRANSFORMS) $(ENABLE_ACCELERATED_2D_CANVAS) $(ENABLE_ACCELERATED_OVERFLOW_SCROLLING) $(ENABLE_APPLE_PAY) $(ENABLE_APPLE_PAY_SESSION_V3) $(ENABLE_APPLE_PAY_SESSION_V4) $(ENABLE_APPLICATION_MANIFEST) $(ENABLE_ATTACHMENT_ELEMENT) $(ENABLE_AVF_CAPTIONS) $(ENABLE_CACHE_PARTITIONING) $(ENABLE_CHANNEL_MESSAGING) $(ENABLE_CONTENT_FILTERING) $(ENABLE_CSS3_TEXT) $(ENABLE_CSS_BOX_DECORATION_BREAK) $(ENABLE_CSS_COMPOSITING) $(ENABLE_CSS_DEVICE_ADAPTATION) $(ENABLE_CSS_IMAGE_ORIENTATION) $(ENABLE_CSS_IMAGE_RESOLUTION) $(ENABLE_CSS_SCROLL_SNAP) $(ENABLE_CSS_SELECTORS_LEVEL4) $(ENABLE_CSS_TRAILING_WORD) $(ENABLE_CURSOR_VISIBILITY) $(ENABLE_CUSTOM_SCHEME_HANDLER) $(ENABLE_DASHBOARD_SUPPORT) $(ENABLE_DATA_INTERACTION) $(ENABLE_DATACUE_VALUE) $(ENABLE_DATALIST_ELEMENT) $(ENABLE_DEVICE_ORIENTATION) $(ENABLE_DRAG_SUPPORT) $(ENABLE_ENCRYPTED_MEDIA) $(ENABLE_EXPERIMENTAL_FEATURES) $(ENABLE_FAST_JIT_PERMISSIONS) $(ENABLE_FILTERS_LEVEL_2) $(ENABLE_FTL_JIT) $(ENABLE_FULLSCREEN_API) $(ENABLE_GAMEPAD) $(ENABLE_GEOLOCATION) $(ENABLE_ICONDATABASE) $(ENABLE_INDEXED_DATABASE) $(ENABLE_INDEXED_DATABASE_IN_WORKERS) $(ENABLE_INPUT_TYPE_COLOR) $(ENABLE_INPUT_TYPE_DATE) $(ENABLE_INPUT_TYPE_DATETIME_INCOMPLETE) $(ENABLE_INPUT_TYPE_DATETIMELOCAL) $(ENABLE_INPUT_TYPE_MONTH) $(ENABLE_INPUT_TYPE_TIME) $(ENABLE_INPUT_TYPE_WEEK) $(ENABLE_INTERSECTION_OBSERVER) $(ENABLE_INTL) $(ENABLE_IOS_GESTURE_EVENTS) $(ENABLE_IOS_TOUCH_EVENTS) $(ENABLE_JIT) $(ENABLE_JS_ASYNC_ITERATION) $(ENABLE_KEYBOARD_CODE_ATTRIBUTE) $(ENABLE_KEYBOARD_KEY_ATTRIBUTE) $(ENABLE_LAYOUT_FORMATTING_CONTEXT) $(ENABLE_LEGACY_CSS_VENDOR_PREFIXES) $(ENABLE_LEGACY_CUSTOM_PROTOCOL_MANAGER) $(ENABLE_LEGACY_ENCRYPTED_MEDIA) $(ENABLE_LETTERPRESS) $(ENABLE_MAC_GESTURE_EVENTS) $(ENABLE_MAC_VIDEO_TOOLBOX) $(ENABLE_MATHML) $(ENABLE_MEDIA_CAPTURE) $(ENABLE_MEDIA_CONTROLS_SCRIPT) $(ENABLE_MEDIA_SESSION) $(ENABLE_MEDIA_SOURCE) $(ENABLE_MEDIA_STATISTICS) $(ENABLE_MEDIA_STREAM) $(ENABLE_METER_ELEMENT) $(ENABLE_MHTML) $(ENABLE_MOUSE_CURSOR_SCALE) $(ENABLE_NAVIGATOR_CONTENT_UTILS) $(ENABLE_NAVIGATOR_STANDALONE) $(ENABLE_NOTIFICATIONS) $(ENABLE_PAYMENT_REQUEST) $(ENABLE_PDFKIT_PLUGIN) $(ENABLE_POINTER_LOCK) $(ENABLE_PUBLIC_SUFFIX_LIST) $(ENABLE_QUOTA) $(ENABLE_REMOTE_INSPECTOR) $(ENABLE_RESOLUTION_MEDIA_QUERY) $(ENABLE_RESOURCE_USAGE) $(ENABLE_RUBBER_BANDING) $(ENABLE_SERVICE_CONTROLS) $(ENABLE_SERVICE_WORKER) $(ENABLE_SPEECH_SYNTHESIS) $(ENABLE_STREAMS_API) $(ENABLE_SUBTLE_CRYPTO) $(ENABLE_SVG_FONTS) $(ENABLE_TELEPHONE_NUMBER_DETECTION) $(ENABLE_TEXT_AUTOSIZING) $(ENABLE_TOUCH_EVENTS) $(ENABLE_USER_MESSAGE_HANDLERS) $(ENABLE_USERSELECT_ALL) $(ENABLE_VARIATION_FONTS) $(ENABLE_VIDEO) $(ENABLE_VIDEO_PRESENTATION_MODE) $(ENABLE_VIDEO_TRACK) $(ENABLE_VIDEO_USES_ELEMENT_FULLSCREEN) $(ENABLE_WEB_AUDIO) $(ENABLE_WEB_AUTHN) $(ENABLE_WEB_RTC) $(ENABLE_WEBASSEMBLY) $(ENABLE_WEBASSEMBLY_STREAMING_API) $(ENABLE_WEBGL) $(ENABLE_WEBGL2) $(ENABLE_WEB GPU) $(ENABLE_WIRELESS_PLAYBACK_TARGET) $(ENABLE_XSLT);375 FEATURE_DEFINES = $(ENABLE_3D_TRANSFORMS) $(ENABLE_ACCELERATED_2D_CANVAS) $(ENABLE_ACCELERATED_OVERFLOW_SCROLLING) $(ENABLE_APPLE_PAY) $(ENABLE_APPLE_PAY_SESSION_V3) $(ENABLE_APPLE_PAY_SESSION_V4) $(ENABLE_APPLICATION_MANIFEST) $(ENABLE_ATTACHMENT_ELEMENT) $(ENABLE_AVF_CAPTIONS) $(ENABLE_CACHE_PARTITIONING) $(ENABLE_CHANNEL_MESSAGING) $(ENABLE_CONTENT_FILTERING) $(ENABLE_CSS3_TEXT) $(ENABLE_CSS_BOX_DECORATION_BREAK) $(ENABLE_CSS_COMPOSITING) $(ENABLE_CSS_DEVICE_ADAPTATION) $(ENABLE_CSS_IMAGE_ORIENTATION) $(ENABLE_CSS_IMAGE_RESOLUTION) $(ENABLE_CSS_SCROLL_SNAP) $(ENABLE_CSS_SELECTORS_LEVEL4) $(ENABLE_CSS_TRAILING_WORD) $(ENABLE_CURSOR_VISIBILITY) $(ENABLE_CUSTOM_SCHEME_HANDLER) $(ENABLE_DASHBOARD_SUPPORT) $(ENABLE_DATA_INTERACTION) $(ENABLE_DATACUE_VALUE) $(ENABLE_DATALIST_ELEMENT) $(ENABLE_DEVICE_ORIENTATION) $(ENABLE_DRAG_SUPPORT) $(ENABLE_ENCRYPTED_MEDIA) $(ENABLE_EXPERIMENTAL_FEATURES) $(ENABLE_FAST_JIT_PERMISSIONS) $(ENABLE_FILTERS_LEVEL_2) $(ENABLE_FTL_JIT) $(ENABLE_FULLSCREEN_API) $(ENABLE_GAMEPAD) $(ENABLE_GEOLOCATION) $(ENABLE_ICONDATABASE) $(ENABLE_INDEXED_DATABASE) $(ENABLE_INDEXED_DATABASE_IN_WORKERS) $(ENABLE_INPUT_TYPE_COLOR) $(ENABLE_INPUT_TYPE_DATE) $(ENABLE_INPUT_TYPE_DATETIME_INCOMPLETE) $(ENABLE_INPUT_TYPE_DATETIMELOCAL) $(ENABLE_INPUT_TYPE_MONTH) $(ENABLE_INPUT_TYPE_TIME) $(ENABLE_INPUT_TYPE_WEEK) $(ENABLE_INTERSECTION_OBSERVER) $(ENABLE_INTL) $(ENABLE_IOS_GESTURE_EVENTS) $(ENABLE_IOS_TOUCH_EVENTS) $(ENABLE_JIT) $(ENABLE_JS_ASYNC_ITERATION) $(ENABLE_KEYBOARD_CODE_ATTRIBUTE) $(ENABLE_KEYBOARD_KEY_ATTRIBUTE) $(ENABLE_LAYOUT_FORMATTING_CONTEXT) $(ENABLE_LEGACY_CSS_VENDOR_PREFIXES) $(ENABLE_LEGACY_CUSTOM_PROTOCOL_MANAGER) $(ENABLE_LEGACY_ENCRYPTED_MEDIA) $(ENABLE_LETTERPRESS) $(ENABLE_MAC_GESTURE_EVENTS) $(ENABLE_MAC_VIDEO_TOOLBOX) $(ENABLE_MATHML) $(ENABLE_MEDIA_CAPTURE) $(ENABLE_MEDIA_CONTROLS_SCRIPT) $(ENABLE_MEDIA_SESSION) $(ENABLE_MEDIA_SOURCE) $(ENABLE_MEDIA_STATISTICS) $(ENABLE_MEDIA_STREAM) $(ENABLE_METER_ELEMENT) $(ENABLE_MHTML) $(ENABLE_MOUSE_CURSOR_SCALE) $(ENABLE_NAVIGATOR_CONTENT_UTILS) $(ENABLE_NAVIGATOR_STANDALONE) $(ENABLE_NOTIFICATIONS) $(ENABLE_PAYMENT_REQUEST) $(ENABLE_PDFKIT_PLUGIN) $(ENABLE_POINTER_LOCK) $(ENABLE_PUBLIC_SUFFIX_LIST) $(ENABLE_QUOTA) $(ENABLE_REMOTE_INSPECTOR) $(ENABLE_RESOLUTION_MEDIA_QUERY) $(ENABLE_RESOURCE_USAGE) $(ENABLE_RUBBER_BANDING) $(ENABLE_SERVICE_CONTROLS) $(ENABLE_SERVICE_WORKER) $(ENABLE_SPEECH_SYNTHESIS) $(ENABLE_STREAMS_API) $(ENABLE_SUBTLE_CRYPTO) $(ENABLE_SVG_FONTS) $(ENABLE_TELEPHONE_NUMBER_DETECTION) $(ENABLE_TEXT_AUTOSIZING) $(ENABLE_TOUCH_EVENTS) $(ENABLE_USER_MESSAGE_HANDLERS) $(ENABLE_USERSELECT_ALL) $(ENABLE_VARIATION_FONTS) $(ENABLE_VIDEO) $(ENABLE_VIDEO_PRESENTATION_MODE) $(ENABLE_VIDEO_TRACK) $(ENABLE_VIDEO_USES_ELEMENT_FULLSCREEN) $(ENABLE_WEB_AUDIO) $(ENABLE_WEB_AUTHN) $(ENABLE_WEB_RTC) $(ENABLE_WEBASSEMBLY) $(ENABLE_WEBASSEMBLY_STREAMING_API) $(ENABLE_WEBGL) $(ENABLE_WEBGL2) $(ENABLE_WEBMETAL) $(ENABLE_WIRELESS_PLAYBACK_TARGET) $(ENABLE_XSLT); -
trunk/Tools/TestWebKitAPI/Tests/WebCore/mac/GPUBuffer.mm
r234258 r236954 26 26 #import "config.h" 27 27 28 #if ENABLE(WEB GPU)28 #if ENABLE(WEBMETAL) 29 29 30 30 #import "GPUTest.h" -
trunk/Tools/TestWebKitAPI/Tests/WebCore/mac/GPUCommandQueue.mm
r234258 r236954 26 26 #import "config.h" 27 27 28 #if ENABLE(WEB GPU)28 #if ENABLE(WEBMETAL) 29 29 30 30 #import "GPUTest.h" -
trunk/Tools/TestWebKitAPI/Tests/WebCore/mac/GPUDevice.mm
r234258 r236954 26 26 #import "config.h" 27 27 28 #if ENABLE(WEB GPU)28 #if ENABLE(WEBMETAL) 29 29 30 30 #import "GPUTest.h" -
trunk/Tools/TestWebKitAPI/Tests/WebCore/mac/GPUFunction.mm
r234258 r236954 27 27 #import "config.h" 28 28 29 #if ENABLE(WEB GPU)29 #if ENABLE(WEBMETAL) 30 30 31 31 #import "GPUTest.h" -
trunk/Tools/TestWebKitAPI/Tests/WebCore/mac/GPULibrary.mm
r234258 r236954 26 26 #import "config.h" 27 27 28 #if ENABLE(WEB GPU)28 #if ENABLE(WEBMETAL) 29 29 30 30 #import "GPUTest.h" -
trunk/Tools/WebKitTestRunner/InjectedBundle/InjectedBundle.cpp
r236680 r236954 497 497 498 498 m_testRunner->setWebGL2Enabled(true); 499 m_testRunner->setWeb GPUEnabled(true);499 m_testRunner->setWebMetalEnabled(true); 500 500 501 501 m_testRunner->setWritableStreamAPIEnabled(true); -
trunk/Tools/WebKitTestRunner/InjectedBundle/TestRunner.cpp
r236842 r236954 477 477 } 478 478 479 void TestRunner::setWeb GPUEnabled(bool enabled)480 { 481 WKRetainPtr<WKStringRef> key(AdoptWK, WKStringCreateWithUTF8CString("WebKitWeb GPUEnabled"));479 void TestRunner::setWebMetalEnabled(bool enabled) 480 { 481 WKRetainPtr<WKStringRef> key(AdoptWK, WKStringCreateWithUTF8CString("WebKitWebMetalEnabled")); 482 482 auto& injectedBundle = InjectedBundle::singleton(); 483 483 WKBundleOverrideBoolPreferenceForTestRunner(injectedBundle.bundle(), injectedBundle.pageGroup(), key.get(), enabled); -
trunk/Tools/WebKitTestRunner/InjectedBundle/TestRunner.h
r236690 r236954 105 105 void setModernMediaControlsEnabled(bool); 106 106 void setWebGL2Enabled(bool); 107 void setWeb GPUEnabled(bool);107 void setWebMetalEnabled(bool); 108 108 void setWritableStreamAPIEnabled(bool); 109 109 void setReadableByteStreamAPIEnabled(bool); -
trunk/Websites/webkit.org/ChangeLog
r235717 r236954 1 2018-10-08 Justin Fan <justin_fan@apple.com> 2 3 WebGPU: Rename old WebGPU prototype to WebMetal 4 https://bugs.webkit.org/show_bug.cgi?id=190325 5 <rdar://problem/44990443> 6 7 Reviewed by Dean Jackson. 8 9 Rename WebGPU prototype files to WebMetal in preparation for implementing the new (Oct 2018) WebGPU interface. 10 11 * demos/webgpu/shared.js: Removed. 12 * demos/webmetal/2d.html: Renamed from Websites/webkit.org/demos/webgpu/2d.html. 13 * demos/webmetal/2d.jpg: Renamed from Websites/webkit.org/demos/webgpu/2d.jpg. 14 * demos/webmetal/2d.js: Renamed from Websites/webkit.org/demos/webgpu/2d.js. 15 (init): 16 * demos/webmetal/circle.svg: Renamed from Websites/webkit.org/demos/webgpu/circle.svg. 17 * demos/webmetal/cubes.html: Renamed from Websites/webkit.org/demos/webgpu/cubes.html. 18 * demos/webmetal/cubes.jpg: Renamed from Websites/webkit.org/demos/webgpu/cubes.jpg. 19 * demos/webmetal/cubes.js: Renamed from Websites/webkit.org/demos/webgpu/cubes.js. 20 (init): 21 * demos/webmetal/gl-matrix-min.js: Renamed from Websites/webkit.org/demos/webgpu/gl-matrix-min.js. 22 * demos/webmetal/hello.html: Renamed from Websites/webkit.org/demos/webgpu/hello.html. 23 * demos/webmetal/hello.jpg: Renamed from Websites/webkit.org/demos/webgpu/hello.jpg. 24 * demos/webmetal/hello.js: Renamed from Websites/webkit.org/demos/webgpu/hello.js. 25 (init): 26 * demos/webmetal/index.html: Renamed from Websites/webkit.org/demos/webgpu/index.html. 27 * demos/webmetal/shared.css: Renamed from Websites/webkit.org/demos/webgpu/shared.css. 28 * demos/webmetal/shared.js: Added. 29 (const.hasWebMetal): 30 (const.checkForWebMetal): 31 * demos/webmetal/simple.html: Renamed from Websites/webkit.org/demos/webgpu/simple.html. 32 * demos/webmetal/simple.jpg: Renamed from Websites/webkit.org/demos/webgpu/simple.jpg. 33 * demos/webmetal/simple.js: Renamed from Websites/webkit.org/demos/webgpu/simple.js. 34 (init): 35 * experimental-features.html: 36 1 37 2018-09-05 Fujii Hironori <Hironori.Fujii@sony.com> 2 38 -
trunk/Websites/webkit.org/demos/webmetal/2d.html
r236953 r236954 4 4 <meta name="viewport" content="width=600"> 5 5 <meta http-equiv="Content-type" content="text/html; charset=utf-8"> 6 <title>Web GPU2D demo</title>6 <title>WebMetal 2D demo</title> 7 7 <link rel="stylesheet" href="shared.css"> 8 8 <link rel="stylesheet" href="https://webkit.org/wp-content/themes/webkit/style.css"> … … 51 51 <canvas></canvas> 52 52 <div id="error"> 53 <h2>Web GPUnot available</h2>53 <h2>WebMetal not available</h2> 54 54 <p> 55 Make sure you are on a system with Web GPUenabled. In55 Make sure you are on a system with WebMetal enabled. In 56 56 Safari, first make sure the Developer Menu is visible (Preferences → 57 Advanced), then Develop → Experimental Features → Enable Web GPU.57 Advanced), then Develop → Experimental Features → Enable WebMetal. 58 58 </p> 59 59 </div> -
trunk/Websites/webkit.org/demos/webmetal/2d.js
r236953 r236954 59 59 function init() { 60 60 61 if (!checkForWeb GPU()) {61 if (!checkForWebMetal()) { 62 62 return; 63 63 } … … 68 68 canvas.height = canvasSize.height; 69 69 70 gpu = canvas.getContext("web gpu");70 gpu = canvas.getContext("webmetal"); 71 71 commandQueue = gpu.createCommandQueue(); 72 72 … … 79 79 } 80 80 81 let pipelineDescriptor = new Web GPURenderPipelineDescriptor();81 let pipelineDescriptor = new WebMetalRenderPipelineDescriptor(); 82 82 pipelineDescriptor.vertexFunction = vertexFunction; 83 83 pipelineDescriptor.fragmentFunction = fragmentFunction; … … 95 95 } 96 96 97 renderPassDescriptor = new Web GPURenderPassDescriptor();97 renderPassDescriptor = new WebMetalRenderPassDescriptor(); 98 98 // NOTE: Our API proposal has some of these values as enums, not constant numbers. 99 99 // We haven't got around to implementing the enums yet. -
trunk/Websites/webkit.org/demos/webmetal/cubes.html
r236953 r236954 4 4 <meta name="viewport" content="width=600"> 5 5 <meta http-equiv="Content-type" content="text/html; charset=utf-8"> 6 <title>Web GPUCubes demo</title>6 <title>WebMetal Cubes demo</title> 7 7 <link rel="stylesheet" href="shared.css"> 8 8 <link rel="stylesheet" href="https://webkit.org/wp-content/themes/webkit/style.css"> … … 68 68 <canvas></canvas> 69 69 <div id="error"> 70 <h2>Web GPUnot available</h2>70 <h2>WebMetal not available</h2> 71 71 <p> 72 Make sure you are on a system with Web GPUenabled. In72 Make sure you are on a system with WebMetal enabled. In 73 73 Safari, first make sure the Developer Menu is visible (Preferences → 74 Advanced), then Develop → Experimental Features → Enable Web GPU.74 Advanced), then Develop → Experimental Features → Enable WebMetal. 75 75 </p> 76 76 </div> -
trunk/Websites/webkit.org/demos/webmetal/cubes.js
r236953 r236954 149 149 function init() { 150 150 151 if (!checkForWeb GPU()) {151 if (!checkForWebMetal()) { 152 152 return; 153 153 } … … 162 162 mat4.lookAt(viewMatrix, kEye, kCenter, kUp); 163 163 164 gpu = canvas.getContext("web gpu");164 gpu = canvas.getContext("webmetal"); 165 165 commandQueue = gpu.createCommandQueue(); 166 166 … … 173 173 } 174 174 175 var pipelineDescriptor = new Web GPURenderPipelineDescriptor();175 var pipelineDescriptor = new WebMetalRenderPipelineDescriptor(); 176 176 pipelineDescriptor.vertexFunction = vertexFunction; 177 177 pipelineDescriptor.fragmentFunction = fragmentFunction; … … 183 183 renderPipelineState = gpu.createRenderPipelineState(pipelineDescriptor); 184 184 185 let depthStencilDescriptor = new Web GPUDepthStencilDescriptor();185 let depthStencilDescriptor = new WebMetalDepthStencilDescriptor(); 186 186 depthStencilDescriptor.depthWriteEnabled = true; 187 187 depthStencilDescriptor.depthCompareFunction = "less"; … … 199 199 } 200 200 201 let depthTextureDescriptor = new Web GPUTextureDescriptor(gpu.PixelFormatDepth32Float, canvasSize.width, canvasSize.height, false);201 let depthTextureDescriptor = new WebMetalTextureDescriptor(gpu.PixelFormatDepth32Float, canvasSize.width, canvasSize.height, false); 202 202 // NOTE: Our API proposal has some of these values as enums, not constant numbers. 203 203 // We haven't got around to implementing the enums yet. … … 209 209 let depthTexture = gpu.createTexture(depthTextureDescriptor); 210 210 211 renderPassDescriptor = new Web GPURenderPassDescriptor();211 renderPassDescriptor = new WebMetalRenderPassDescriptor(); 212 212 // NOTE: Our API proposal has some of these values as enums, not constant numbers. 213 213 // We haven't got around to implementing the enums yet. -
trunk/Websites/webkit.org/demos/webmetal/hello.html
r236953 r236954 4 4 <meta name="viewport" content="width=600"> 5 5 <meta http-equiv="Content-type" content="text/html; charset=utf-8"> 6 <title>Web GPUHello World demo</title>6 <title>WebMetal Hello World demo</title> 7 7 <link rel="stylesheet" href="shared.css"> 8 8 <link rel="stylesheet" href="https://webkit.org/wp-content/themes/webkit/style.css"> … … 48 48 <canvas></canvas> 49 49 <div id="error"> 50 <h2>Web GPUnot available</h2>50 <h2>WebMetal not available</h2> 51 51 <p> 52 Make sure you are on a system with Web GPUenabled. In52 Make sure you are on a system with WebMetal enabled. In 53 53 Safari, first make sure the Developer Menu is visible (Preferences → 54 Advanced), then Develop → Experimental Features → Enable Web GPU.54 Advanced), then Develop → Experimental Features → Enable WebMetal. 55 55 </p> 56 56 </div> -
trunk/Websites/webkit.org/demos/webmetal/hello.js
r236953 r236954 8 8 function init() { 9 9 10 if (!checkForWeb GPU()) {10 if (!checkForWebMetal()) { 11 11 return; 12 12 } … … 17 17 canvas.height = canvasSize.height; 18 18 19 gpu = canvas.getContext("web gpu");19 gpu = canvas.getContext("webmetal"); 20 20 commandQueue = gpu.createCommandQueue(); 21 21 … … 28 28 } 29 29 30 let pipelineDescriptor = new Web GPURenderPipelineDescriptor();30 let pipelineDescriptor = new WebMetalRenderPipelineDescriptor(); 31 31 pipelineDescriptor.vertexFunction = vertexFunction; 32 32 pipelineDescriptor.fragmentFunction = fragmentFunction; … … 37 37 renderPipelineState = gpu.createRenderPipelineState(pipelineDescriptor); 38 38 39 renderPassDescriptor = new Web GPURenderPassDescriptor();39 renderPassDescriptor = new WebMetalRenderPassDescriptor(); 40 40 // NOTE: Our API proposal has some of these values as enums, not constant numbers. 41 41 // We haven't got around to implementing the enums yet. -
trunk/Websites/webkit.org/demos/webmetal/index.html
r236953 r236954 4 4 <meta name="viewport" content="width=device-width"> 5 5 <meta http-equiv="Content-type" content="text/html; charset=utf-8"> 6 <title>Web GPUdemos</title>6 <title>WebMetal demos</title> 7 7 <link rel="stylesheet" href="https://webkit.org/wp-content/themes/webkit/style.css"> 8 8 <link rel="stylesheet" href="https://www.apple.com/wss/fonts?family=Myriad+Set+Pro&v=1"> … … 163 163 <header> 164 164 <img src="circle.svg"> 165 <h1>Web GPU<br>demos</h1>165 <h1>WebMetal<br>demos</h1> 166 166 </header> 167 167 <section class="demos"> 168 168 <p class="intro"> 169 169 Here are a collection of simple <a 170 href="https://webkit.org/blog/7380/next-generation-3d-graphics-on-the-web/">Web GPU</a>170 href="https://webkit.org/blog/7380/next-generation-3d-graphics-on-the-web/">WebMetal</a> 171 171 examples. They should work in the latest <a 172 172 href="https://developer.apple.com/safari/technology-preview/">Safari … … 179 179 </p> 180 180 <p class="howto"> 181 Make sure you are on a system with Web GPUenabled. In Safari, first181 Make sure you are on a system with WebMetal enabled. In Safari, first 182 182 make sure the Developer Menu is visible (Preferences → Advanced), 183 then Develop → Experimental Features → Enable Web GPU.183 then Develop → Experimental Features → Enable WebMetal. 184 184 </p> 185 185 <p class="warning"> 186 Web GPUis an experimental technology, and you should not browse the entire186 WebMetal is an experimental technology, and you should not browse the entire 187 187 Web with it enabled for now. It doesn't do any validation of content, and 188 188 thus may cause some issues with your computer. -
trunk/Websites/webkit.org/demos/webmetal/simple.html
r236953 r236954 4 4 <meta name="viewport" content="width=600"> 5 5 <meta http-equiv="Content-type" content="text/html; charset=utf-8"> 6 <title>Web GPUSimple demo</title>6 <title>WebMetal Simple demo</title> 7 7 <link rel="stylesheet" href="shared.css"> 8 8 <link rel="stylesheet" href="https://webkit.org/wp-content/themes/webkit/style.css"> … … 47 47 <canvas></canvas> 48 48 <div id="error"> 49 <h2>Web GPUnot available</h2>49 <h2>WebMetal not available</h2> 50 50 <p> 51 Make sure you are on a system with Web GPUenabled. In51 Make sure you are on a system with WebMetal enabled. In 52 52 Safari, first make sure the Developer Menu is visible (Preferences → 53 Advanced), then Develop → Experimental Features → Enable Web GPU.53 Advanced), then Develop → Experimental Features → Enable WebMetal. 54 54 </p> 55 55 </div> -
trunk/Websites/webkit.org/demos/webmetal/simple.js
r236953 r236954 61 61 function init() { 62 62 63 if (!checkForWeb GPU()) {63 if (!checkForWebMetal()) { 64 64 return; 65 65 } … … 73 73 mat4.perspective(projectionMatrix, (2 * Math.PI) / 5, aspect, 1, 100.0); 74 74 75 gpu = canvas.getContext("web gpu");75 gpu = canvas.getContext("webmetal"); 76 76 commandQueue = gpu.createCommandQueue(); 77 77 … … 84 84 } 85 85 86 let pipelineDescriptor = new Web GPURenderPipelineDescriptor();86 let pipelineDescriptor = new WebMetalRenderPipelineDescriptor(); 87 87 pipelineDescriptor.vertexFunction = vertexFunction; 88 88 pipelineDescriptor.fragmentFunction = fragmentFunction; … … 94 94 renderPipelineState = gpu.createRenderPipelineState(pipelineDescriptor); 95 95 96 let depthStencilDescriptor = new Web GPUDepthStencilDescriptor();96 let depthStencilDescriptor = new WebMetalDepthStencilDescriptor(); 97 97 depthStencilDescriptor.depthWriteEnabled = true; 98 98 depthStencilDescriptor.depthCompareFunction = "less"; … … 104 104 } 105 105 106 let depthTextureDescriptor = new Web GPUTextureDescriptor(gpu.PixelFormatDepth32Float, canvasSize.width, canvasSize.height, false);106 let depthTextureDescriptor = new WebMetalTextureDescriptor(gpu.PixelFormatDepth32Float, canvasSize.width, canvasSize.height, false); 107 107 // NOTE: Our API proposal has some of these values as enums, not constant numbers. 108 108 // We haven't got around to implementing the enums yet. … … 114 114 let depthTexture = gpu.createTexture(depthTextureDescriptor); 115 115 116 renderPassDescriptor = new Web GPURenderPassDescriptor();116 renderPassDescriptor = new WebMetalRenderPassDescriptor(); 117 117 // NOTE: Our API proposal has some of these values as enums, not constant numbers. 118 118 // We haven't got around to implementing the enums yet. -
trunk/Websites/webkit.org/experimental-features.html
r232537 r236954 104 104 } 105 105 106 function testWeb GPU() {107 return window.Web GPURenderingContext;106 function testWebMetal() { 107 return window.WebMetalRenderingContext; 108 108 } 109 109 … … 153 153 <div class="test" id="WebAnimationsCSSIntegration"><p>Web Animations and CSS Integration</p></div> 154 154 <div class="test" id="WebGL2"><p>WebGL 2.0</p></div> 155 <div class="test" id="Web GPU"><p>WebGPU</p></div>155 <div class="test" id="WebMetal"><p>WebMetal</p></div> 156 156 <div class="test" id="WebRTC"><p>WebRTC</p></div> 157 157 <div class="test" id="ObjectRest"><p>ObjectRest</p></div>
Note:
See TracChangeset
for help on using the changeset viewer.