haikuwebkit/Websites/webkit.org/experimental-features.html

170 lines
5.8 KiB
HTML
Raw Permalink Normal View History

<!DOCTYPE html>
<html>
<head>
<title>Experimental features</title>
<meta name="viewport" content="width=600">
<style>
body {
background-color: #AEBDB4;
margin: 0;
font-family: -apple-system, sans-serif;
font-size: 22px;
}
.content {
width: 480px;
margin: 30px auto;
background-color: #D2D2D2;
border: 1px solid black;
border-top-width: 5px;
text-align: center;
}
.content h1 {
font-size: 34px;
margin: 20px 0;
}
.content p {
margin: 10px 40px;
}
.content .test {
display: flex;
justify-content: center;
align-items: center;
font-size: 22px;
width: 320px;
margin: 25px auto;
height: 70px;
padding: 0 55px;
background-color: #e7dd0e;
border: 2px solid #999309;
border-radius: 35px;
background-size: 40px 40px;
background-position: 15px 15px;
background-repeat: no-repeat;
background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 45 45"><circle cx="22.5" cy="22.5" r="22.5" fill="#999309"/><path fill="#e7dd0e" d="M14.58,17.93a7.54,7.54,0,0,1,1.27-4,9.79,9.79,0,0,1,3.71-3.37,11.67,11.67,0,0,1,5.69-1.33,12.15,12.15,0,0,1,5.34,1.12,8.65,8.65,0,0,1,3.58,3,7.44,7.44,0,0,1,1.26,4.17,6.45,6.45,0,0,1-.72,3.11A9.51,9.51,0,0,1,33,22.95q-1,1-3.55,3.26a14.47,14.47,0,0,0-1.14,1.14,4.62,4.62,0,0,0-.64.9,4.4,4.4,0,0,0-.32.81q-.11.41-.34,1.43a2.32,2.32,0,0,1-2.48,2.17,2.54,2.54,0,0,1-1.82-.71A2.78,2.78,0,0,1,22,29.84a7.39,7.39,0,0,1,2-5.28,33,33,0,0,1,2.42-2.3q1.33-1.17,1.93-1.76a6,6,0,0,0,1-1.32,3.2,3.2,0,0,0,.41-1.58,3.68,3.68,0,0,0-1.24-2.81,4.53,4.53,0,0,0-3.2-1.15,4.43,4.43,0,0,0-3.38,1.16A9.23,9.23,0,0,0,20,18.18q-.71,2.36-2.69,2.36a2.64,2.64,0,0,1-2-.82A2.52,2.52,0,0,1,14.58,17.93ZM24.75,40.78A3.28,3.28,0,0,1,22.53,40a2.89,2.89,0,0,1-.95-2.3,3,3,0,0,1,.92-2.21,3.1,3.1,0,0,1,2.25-.9,3.06,3.06,0,0,1,3.11,3.11,2.91,2.91,0,0,1-.94,2.29A3.17,3.17,0,0,1,24.75,40.78Z" transform="translate(-2.5 -2.5)"/></svg>');
}
.content .test p {
margin: 0;
padding: 0;
}
.content .test.enabled {
background-color: #1fee06;
border-color: #00aa04;
background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 45 45"><circle cx="22.5" cy="22.5" r="22.5" fill="#00aa04"/><polyline points="36.13 11.93 16.99 31.07 8.87 22.95" style="fill:none;stroke:#1fee06;stroke-width:7px"/></svg>');
}
.content .test.disabled {
background-color: #fb5207;
border-color: #ab3903;
background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 45 45"><circle cx="22.5" cy="22.5" r="22.5" fill="#ab3903"/><path d="M34.57,15.43,15.43,34.57" transform="translate(-2.5 -2.5)" style="fill:none;stroke:#fb5207;stroke-width:7px"/><path d="M15.43,15.43,34.57,34.57" transform="translate(-2.5 -2.5)" style="fill:none;stroke:#fb5207;stroke-width:7px"/></svg>');
}
</style>
<script type="module">
window.es6modules = true;
</script>
<script>
Add Link Preload as an off-by-default experimental feature menu item. https://bugs.webkit.org/show_bug.cgi?id=167201 Reviewed by Ryosuke Niwa. Source/WebCore: Removed the explicit setting of the Link Preload experimental feature, as it is now on by default for testing. No new tests as this just removes methods from settings. * testing/InternalSettings.cpp: (WebCore::InternalSettings::Backup::Backup): (WebCore::InternalSettings::Backup::restoreTo): * testing/InternalSettings.h: * testing/InternalSettings.idl: Source/WebKit/mac: * WebView/WebPreferenceKeysPrivate.h: * WebView/WebPreferences.mm: (-[WebPreferences linkPreloadEnabled]): (-[WebPreferences setLinkPreloadEnabled:]): * WebView/WebPreferencesPrivate.h: * WebView/WebView.mm: (-[WebView _preferencesChanged:]): Source/WebKit/win: * WebPreferenceKeysPrivate.h: * WebPreferences.cpp: (WebPreferences::initializeDefaultSettings): (WebPreferences::valueForKey): (WebPreferences::setLinkPreloadEnabled): (WebPreferences::linkPreloadEnabled): * WebPreferences.h: * Interfaces/IWebPreferencesPrivate.idl: Source/WebKit2: * Shared/WebPreferencesDefinitions.h: * UIProcess/API/C/WKPreferences.cpp: (WKPreferencesSetLinkPreloadEnabled): (WKPreferencesGetLinkPreloadEnabled): * UIProcess/API/C/WKPreferencesRefPrivate.h: * WebProcess/WebPage/WebPage.cpp: (WebKit::WebPage::updatePreferences): Tools: * DumpRenderTree/mac/DumpRenderTree.mm: (resetWebPreferencesToConsistentValues): * DumpRenderTree/win/DumpRenderTree.cpp: (resetWebPreferencesToConsistentValues): Websites/webkit.org: * experimental-features.html: Added Link Preload. LayoutTests: Removed code explicitly enabling Link preload from the tests, as it is now turned on by default for testing. Corrected expectation files accordingly. * http/tests/fetch/redirectmode-and-preload.html: * http/tests/preload/delaying_onload_link_preload_after_discovery.html: * http/tests/preload/delaying_onload_link_preload_after_discovery_image.html: * http/tests/preload/download_resources-expected.txt: * http/tests/preload/download_resources.html: * http/tests/preload/download_resources_from_header_iframe.html: * http/tests/preload/download_resources_from_invalid_headers.html: * http/tests/preload/dynamic_adding_preload.html: * http/tests/preload/dynamic_remove_preload_href-expected.txt: * http/tests/preload/dynamic_remove_preload_href.html: * http/tests/preload/not_delaying_window_onload_before_discovery.html: * http/tests/preload/onerror_event-expected.txt: * http/tests/preload/onerror_event.html: * http/tests/preload/onload_event-expected.txt: * http/tests/preload/onload_event.html: * http/tests/preload/resources/download_resources_from_header.php: * http/tests/preload/resources/invalid_resources_from_header.php: * http/tests/preload/single_download_preload-expected.txt: * http/tests/preload/single_download_preload.html: * http/tests/security/cached-cross-origin-preloaded-css-stylesheet.html: * http/tests/security/cached-cross-origin-preloading-css-stylesheet.html: Canonical link: https://commits.webkit.org/184585@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@211341 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2017-01-28 22:53:54 +00:00
function testLinkPreload() {
var link = document.createElement("link");
return link.relList.supports("preload");
}
function testSpringAnimation() {
return CSS.supports("transition-timing-function", "spring(1 100 10 0)");
}
function testVariationFonts() {
return CSS.supports("font-variation-settings", '"XHGT" 0.7');
}
function testES6Modules() {
return window.es6modules;
}
function testSubtleCrypto() {
return window.crypto.subtle;
}
function testWebAnimations() {
return !!window.Animation;
}
function testWebAnimationsCSSIntegration() {
return !!window.CSSAnimation;
}
function testWebGL2() {
let canvas = document.createElement("canvas");
return canvas.getContext("webgl2");
}
function testWebGPU() {
return window.gpu;
}
WebGPU: Rename old WebGPU prototype to WebMetal https://bugs.webkit.org/show_bug.cgi?id=190325 .: Reviewed by Dean Jackson. * Source/cmake/WebKitFeatures.cmake: Source/JavaScriptCore: <rdar://problem/44990443> Reviewed by Dean Jackson. Rename WebGPU prototype files to WebMetal in preparation for implementing the new (Oct 2018) WebGPU interface. * Configurations/FeatureDefines.xcconfig: * inspector/protocol/Canvas.json: * inspector/scripts/codegen/generator.py: Source/WebCore: <rdar://problem/44990443> Reviewed by Dean Jackson. Existing WebGPU tests also renamed to reflect WebGPU -> WebMetal change. Rename WebGPU prototype files to WebMetal in preparation for implementing the new (Oct 2018) WebGPU interface. * CMakeLists.txt: * Configurations/FeatureDefines.xcconfig: * DerivedSources.make: * Sources.txt: * SourcesCocoa.txt: * WebCore.xcodeproj/project.pbxproj: * bindings/js/JSWebMetalRenderPassAttachmentDescriptorCustom.cpp: Renamed from Source/WebCore/bindings/js/JSWebGPURenderPassAttachmentDescriptorCustom.cpp. (WebCore::toJSNewlyCreated): (WebCore::toJS): * bindings/js/JSWebMetalRenderingContextCustom.cpp: Renamed from Source/WebCore/bindings/js/JSWebGPURenderingContextCustom.cpp. (WebCore::JSWebMetalRenderingContext::visitAdditionalChildren): * bindings/js/WebCoreBuiltinNames.h: * dom/Document.cpp: (WebCore::Document::getCSSCanvasContext): * dom/Document.h: * dom/Document.idl: * html/HTMLCanvasElement.cpp: (WebCore::HTMLCanvasElement::getContext): (WebCore::HTMLCanvasElement::isWebMetalType): (WebCore::HTMLCanvasElement::createContextWebMetal): (WebCore::HTMLCanvasElement::getContextWebMetal): (WebCore::HTMLCanvasElement::isWebGPUType): Deleted. (WebCore::HTMLCanvasElement::createContextWebGPU): Deleted. (WebCore::HTMLCanvasElement::getContextWebGPU): Deleted. * html/HTMLCanvasElement.h: * html/HTMLCanvasElement.idl: * html/canvas/CanvasRenderingContext.h: (WebCore::CanvasRenderingContext::isWebMetal const): (WebCore::CanvasRenderingContext::isWebGPU const): Deleted. * html/canvas/WebGPURenderingContext.cpp: Removed. * html/canvas/WebMetalBuffer.cpp: Renamed from Source/WebCore/html/canvas/WebGPUBuffer.cpp. (WebCore::WebMetalBuffer::create): (WebCore::WebMetalBuffer::WebMetalBuffer): * html/canvas/WebMetalBuffer.h: Renamed from Source/WebCore/html/canvas/WebGPUBuffer.h. * html/canvas/WebMetalBuffer.idl: Renamed from Source/WebCore/html/canvas/WebGPUBuffer.idl. * html/canvas/WebMetalCommandBuffer.cpp: Renamed from Source/WebCore/html/canvas/WebGPUCommandBuffer.cpp. (WebCore::WebMetalCommandBuffer::create): (WebCore::WebMetalCommandBuffer::WebMetalCommandBuffer): (WebCore::WebMetalCommandBuffer::~WebMetalCommandBuffer): (WebCore::WebMetalCommandBuffer::commit): (WebCore::WebMetalCommandBuffer::presentDrawable): (WebCore::WebMetalCommandBuffer::createRenderCommandEncoderWithDescriptor): (WebCore::WebMetalCommandBuffer::createComputeCommandEncoder): (WebCore::WebMetalCommandBuffer::completed): * html/canvas/WebMetalCommandBuffer.h: Renamed from Source/WebCore/html/canvas/WebGPUCommandBuffer.h. * html/canvas/WebMetalCommandBuffer.idl: Renamed from Source/WebCore/html/canvas/WebGPUCommandBuffer.idl. * html/canvas/WebMetalCommandQueue.cpp: Renamed from Source/WebCore/html/canvas/WebGPUCommandQueue.cpp. (WebCore::WebMetalCommandQueue::create): (WebCore::WebMetalCommandQueue::WebMetalCommandQueue): (WebCore::WebMetalCommandQueue::createCommandBuffer): * html/canvas/WebMetalCommandQueue.h: Renamed from Source/WebCore/html/canvas/WebGPUCommandQueue.h. * html/canvas/WebMetalCommandQueue.idl: Renamed from Source/WebCore/html/canvas/WebGPUCommandQueue.idl. * html/canvas/WebMetalComputeCommandEncoder.cpp: Renamed from Source/WebCore/html/canvas/WebGPUComputeCommandEncoder.cpp. (WebCore::GPUSizeMake): (WebCore::WebMetalComputeCommandEncoder::create): (WebCore::WebMetalComputeCommandEncoder::WebMetalComputeCommandEncoder): (WebCore::WebMetalComputeCommandEncoder::setComputePipelineState): (WebCore::WebMetalComputeCommandEncoder::setBuffer): (WebCore::WebMetalComputeCommandEncoder::dispatch): (WebCore::WebMetalComputeCommandEncoder::endEncoding): * html/canvas/WebMetalComputeCommandEncoder.h: Renamed from Source/WebCore/html/canvas/WebGPUComputeCommandEncoder.h. * html/canvas/WebMetalComputeCommandEncoder.idl: Renamed from Source/WebCore/html/canvas/WebGPUComputeCommandEncoder.idl. * html/canvas/WebMetalComputePipelineState.cpp: Renamed from Source/WebCore/html/canvas/WebGPUComputePipelineState.cpp. (WebCore::WebMetalComputePipelineState::create): (WebCore::WebMetalComputePipelineState::WebMetalComputePipelineState): * html/canvas/WebMetalComputePipelineState.h: Renamed from Source/WebCore/html/canvas/WebGPUComputePipelineState.h. * html/canvas/WebMetalComputePipelineState.idl: Renamed from Source/WebCore/html/canvas/WebGPUComputePipelineState.idl. * html/canvas/WebMetalDepthStencilDescriptor.cpp: Renamed from Source/WebCore/html/canvas/WebGPUDepthStencilDescriptor.cpp. (WebCore::WebMetalDepthStencilDescriptor::create): (WebCore::WebMetalDepthStencilDescriptor::depthWriteEnabled const): (WebCore::WebMetalDepthStencilDescriptor::setDepthWriteEnabled): (WebCore::WebMetalDepthStencilDescriptor::depthCompareFunction const): (WebCore::WebMetalDepthStencilDescriptor::setDepthCompareFunction): * html/canvas/WebMetalDepthStencilDescriptor.h: Renamed from Source/WebCore/html/canvas/WebGPUDepthStencilDescriptor.h. * html/canvas/WebMetalDepthStencilDescriptor.idl: Renamed from Source/WebCore/html/canvas/WebGPUDepthStencilDescriptor.idl. * html/canvas/WebMetalDepthStencilState.cpp: Renamed from Source/WebCore/html/canvas/WebGPUDepthStencilState.cpp. (WebCore::WebMetalDepthStencilState::create): (WebCore::WebMetalDepthStencilState::WebMetalDepthStencilState): (WebCore::WebMetalDepthStencilState::label const): (WebCore::WebMetalDepthStencilState::setLabel): * html/canvas/WebMetalDepthStencilState.h: Renamed from Source/WebCore/html/canvas/WebGPUDepthStencilState.h. * html/canvas/WebMetalDepthStencilState.idl: Renamed from Source/WebCore/html/canvas/WebGPURenderPipelineState.idl. * html/canvas/WebMetalDrawable.cpp: Renamed from Source/WebCore/html/canvas/WebGPUDrawable.cpp. (WebCore::WebMetalDrawable::create): (WebCore::WebMetalDrawable::WebMetalDrawable): * html/canvas/WebMetalDrawable.h: Renamed from Source/WebCore/html/canvas/WebGPUDrawable.h. (WebCore::WebMetalDrawable::texture): * html/canvas/WebMetalDrawable.idl: Renamed from Source/WebCore/html/canvas/WebGPUDrawable.idl. * html/canvas/WebMetalEnums.cpp: Renamed from Source/WebCore/html/canvas/WebGPUEnums.cpp. (WebCore::toWebMetalCompareFunction): (WebCore::web3DCompareFunctionName): (WebCore::toGPUCompareFunction): * html/canvas/WebMetalEnums.h: Renamed from Source/WebCore/html/canvas/WebGPUEnums.h. * html/canvas/WebMetalEnums.idl: Renamed from Source/WebCore/html/canvas/WebGPUEnums.idl. * html/canvas/WebMetalFunction.cpp: Renamed from Source/WebCore/html/canvas/WebGPUFunction.cpp. (WebCore::WebMetalFunction::create): (WebCore::WebMetalFunction::WebMetalFunction): * html/canvas/WebMetalFunction.h: Renamed from Source/WebCore/html/canvas/WebGPUFunction.h. * html/canvas/WebMetalFunction.idl: Renamed from Source/WebCore/html/canvas/WebGPUFunction.idl. * html/canvas/WebMetalLibrary.cpp: Renamed from Source/WebCore/html/canvas/WebGPULibrary.cpp. (WebCore::WebMetalLibrary::create): (WebCore::WebMetalLibrary::WebMetalLibrary): (WebCore::WebMetalLibrary::functionNames const): (WebCore::WebMetalLibrary::functionWithName const): * html/canvas/WebMetalLibrary.h: Renamed from Source/WebCore/html/canvas/WebGPULibrary.h. * html/canvas/WebMetalLibrary.idl: Renamed from Source/WebCore/html/canvas/WebGPULibrary.idl. * html/canvas/WebMetalRenderCommandEncoder.cpp: Renamed from Source/WebCore/html/canvas/WebGPURenderCommandEncoder.cpp. (WebCore::WebMetalRenderCommandEncoder::create): (WebCore::WebMetalRenderCommandEncoder::WebMetalRenderCommandEncoder): (WebCore::WebMetalRenderCommandEncoder::setRenderPipelineState): (WebCore::WebMetalRenderCommandEncoder::setDepthStencilState): (WebCore::WebMetalRenderCommandEncoder::setVertexBuffer): (WebCore::WebMetalRenderCommandEncoder::setFragmentBuffer): (WebCore::WebMetalRenderCommandEncoder::drawPrimitives): (WebCore::WebMetalRenderCommandEncoder::endEncoding): * html/canvas/WebMetalRenderCommandEncoder.h: Renamed from Source/WebCore/html/canvas/WebGPURenderCommandEncoder.h. * html/canvas/WebMetalRenderCommandEncoder.idl: Renamed from Source/WebCore/html/canvas/WebGPURenderCommandEncoder.idl. * html/canvas/WebMetalRenderPassAttachmentDescriptor.cpp: Renamed from Source/WebCore/html/canvas/WebGPURenderPassAttachmentDescriptor.cpp. (WebCore::WebMetalRenderPassAttachmentDescriptor::WebMetalRenderPassAttachmentDescriptor): (WebCore::WebMetalRenderPassAttachmentDescriptor::loadAction const): (WebCore::WebMetalRenderPassAttachmentDescriptor::setLoadAction): (WebCore::WebMetalRenderPassAttachmentDescriptor::storeAction const): (WebCore::WebMetalRenderPassAttachmentDescriptor::setStoreAction): (WebCore::WebMetalRenderPassAttachmentDescriptor::texture const): (WebCore::WebMetalRenderPassAttachmentDescriptor::setTexture): * html/canvas/WebMetalRenderPassAttachmentDescriptor.h: Renamed from Source/WebCore/html/canvas/WebGPURenderPassAttachmentDescriptor.h. * html/canvas/WebMetalRenderPassAttachmentDescriptor.idl: Renamed from Source/WebCore/html/canvas/WebGPURenderPassAttachmentDescriptor.idl. * html/canvas/WebMetalRenderPassColorAttachmentDescriptor.cpp: Renamed from Source/WebCore/html/canvas/WebGPURenderPassColorAttachmentDescriptor.cpp. (WebCore::WebMetalRenderPassColorAttachmentDescriptor::create): (WebCore::WebMetalRenderPassColorAttachmentDescriptor::WebMetalRenderPassColorAttachmentDescriptor): (WebCore::WebMetalRenderPassColorAttachmentDescriptor::descriptor const): (WebCore::WebMetalRenderPassColorAttachmentDescriptor::clearColor const): (WebCore::WebMetalRenderPassColorAttachmentDescriptor::setClearColor): * html/canvas/WebMetalRenderPassColorAttachmentDescriptor.h: Renamed from Source/WebCore/html/canvas/WebGPURenderPassColorAttachmentDescriptor.h. * html/canvas/WebMetalRenderPassColorAttachmentDescriptor.idl: Renamed from Source/WebCore/html/canvas/WebGPURenderPassColorAttachmentDescriptor.idl. * html/canvas/WebMetalRenderPassDepthAttachmentDescriptor.cpp: Renamed from Source/WebCore/html/canvas/WebGPURenderPassDepthAttachmentDescriptor.cpp. (WebCore::WebMetalRenderPassDepthAttachmentDescriptor::create): (WebCore::WebMetalRenderPassDepthAttachmentDescriptor::WebMetalRenderPassDepthAttachmentDescriptor): (WebCore::WebMetalRenderPassDepthAttachmentDescriptor::clearDepth const): (WebCore::WebMetalRenderPassDepthAttachmentDescriptor::setClearDepth): (WebCore::WebMetalRenderPassDepthAttachmentDescriptor::descriptor const): * html/canvas/WebMetalRenderPassDepthAttachmentDescriptor.h: Renamed from Source/WebCore/html/canvas/WebGPURenderPassDepthAttachmentDescriptor.h. * html/canvas/WebMetalRenderPassDepthAttachmentDescriptor.idl: Renamed from Source/WebCore/html/canvas/WebGPURenderPassDepthAttachmentDescriptor.idl. * html/canvas/WebMetalRenderPassDescriptor.cpp: Renamed from Source/WebCore/html/canvas/WebGPURenderPassDescriptor.cpp. (WebCore::WebMetalRenderPassDescriptor::create): (WebCore::WebMetalRenderPassDescriptor::depthAttachment): (WebCore::WebMetalRenderPassDescriptor::colorAttachments): * html/canvas/WebMetalRenderPassDescriptor.h: Renamed from Source/WebCore/html/canvas/WebGPURenderPassDescriptor.h. * html/canvas/WebMetalRenderPassDescriptor.idl: Renamed from Source/WebCore/html/canvas/WebGPURenderPassDescriptor.idl. * html/canvas/WebMetalRenderPipelineColorAttachmentDescriptor.cpp: Renamed from Source/WebCore/html/canvas/WebGPURenderPipelineColorAttachmentDescriptor.cpp. (WebCore::WebMetalRenderPipelineColorAttachmentDescriptor::create): (WebCore::WebMetalRenderPipelineColorAttachmentDescriptor::WebMetalRenderPipelineColorAttachmentDescriptor): (WebCore::WebMetalRenderPipelineColorAttachmentDescriptor::pixelFormat const): (WebCore::WebMetalRenderPipelineColorAttachmentDescriptor::setPixelFormat): * html/canvas/WebMetalRenderPipelineColorAttachmentDescriptor.h: Renamed from Source/WebCore/html/canvas/WebGPURenderPipelineColorAttachmentDescriptor.h. * html/canvas/WebMetalRenderPipelineColorAttachmentDescriptor.idl: Renamed from Source/WebCore/html/canvas/WebGPURenderPipelineColorAttachmentDescriptor.idl. * html/canvas/WebMetalRenderPipelineDescriptor.cpp: Renamed from Source/WebCore/html/canvas/WebGPURenderPipelineDescriptor.cpp. (WebCore::WebMetalRenderPipelineDescriptor::create): (WebCore::WebMetalRenderPipelineDescriptor::vertexFunction const): (WebCore::WebMetalRenderPipelineDescriptor::setVertexFunction): (WebCore::WebMetalRenderPipelineDescriptor::fragmentFunction const): (WebCore::WebMetalRenderPipelineDescriptor::setFragmentFunction): (WebCore::WebMetalRenderPipelineDescriptor::colorAttachments): (WebCore::WebMetalRenderPipelineDescriptor::depthAttachmentPixelFormat const): (WebCore::WebMetalRenderPipelineDescriptor::setDepthAttachmentPixelFormat): (WebCore::WebMetalRenderPipelineDescriptor::reset): * html/canvas/WebMetalRenderPipelineDescriptor.h: Renamed from Source/WebCore/html/canvas/WebGPURenderPipelineDescriptor.h. * html/canvas/WebMetalRenderPipelineDescriptor.idl: Renamed from Source/WebCore/html/canvas/WebGPURenderPipelineDescriptor.idl. * html/canvas/WebMetalRenderPipelineState.cpp: Renamed from Source/WebCore/html/canvas/WebGPURenderPipelineState.cpp. (WebCore::WebMetalRenderPipelineState::create): (WebCore::WebMetalRenderPipelineState::WebMetalRenderPipelineState): (WebCore::WebMetalRenderPipelineState::label const): (WebCore::WebMetalRenderPipelineState::setLabel): * html/canvas/WebMetalRenderPipelineState.h: Renamed from Source/WebCore/html/canvas/WebGPURenderPipelineState.h. * html/canvas/WebMetalRenderPipelineState.idl: Renamed from Source/WebCore/html/canvas/WebGPUDepthStencilState.idl. * html/canvas/WebMetalRenderingContext.cpp: Added. (WebCore::WebMetalRenderingContext::create): (WebCore::WebMetalRenderingContext::WebMetalRenderingContext): (WebCore::WebMetalRenderingContext::canvas const): (WebCore::WebMetalRenderingContext::initializeNewContext): (WebCore::WebMetalRenderingContext::clampedCanvasSize const): (WebCore::WebMetalRenderingContext::hasPendingActivity const): (WebCore::WebMetalRenderingContext::stop): (WebCore::WebMetalRenderingContext::activeDOMObjectName const): (WebCore::WebMetalRenderingContext::canSuspendForDocumentSuspension const): (WebCore::WebMetalRenderingContext::platformLayer const): (WebCore::WebMetalRenderingContext::markLayerComposited): (WebCore::WebMetalRenderingContext::reshape): (WebCore::WebMetalRenderingContext::createLibrary): (WebCore::WebMetalRenderingContext::createRenderPipelineState): (WebCore::WebMetalRenderingContext::createDepthStencilState): (WebCore::WebMetalRenderingContext::createComputePipelineState): (WebCore::WebMetalRenderingContext::createCommandQueue): (WebCore::WebMetalRenderingContext::nextDrawable): (WebCore::WebMetalRenderingContext::createBuffer): (WebCore::WebMetalRenderingContext::createTexture): * html/canvas/WebMetalRenderingContext.h: Renamed from Source/WebCore/html/canvas/WebGPURenderingContext.h. * html/canvas/WebMetalRenderingContext.idl: Renamed from Source/WebCore/html/canvas/WebGPURenderingContext.idl. * html/canvas/WebMetalSize.h: Renamed from Source/WebCore/html/canvas/WebGPUSize.h. * html/canvas/WebMetalSize.idl: Renamed from Source/WebCore/html/canvas/WebGPUSize.idl. * html/canvas/WebMetalTexture.cpp: Renamed from Source/WebCore/html/canvas/WebGPUTexture.cpp. (WebCore::WebMetalTexture::create): (WebCore::WebMetalTexture::WebMetalTexture): * html/canvas/WebMetalTexture.h: Renamed from Source/WebCore/html/canvas/WebGPUTexture.h. * html/canvas/WebMetalTexture.idl: Renamed from Source/WebCore/html/canvas/WebGPUTexture.idl. * html/canvas/WebMetalTextureDescriptor.cpp: Renamed from Source/WebCore/html/canvas/WebGPUTextureDescriptor.cpp. (WebCore::WebMetalTextureDescriptor::create): (WebCore::WebMetalTextureDescriptor::WebMetalTextureDescriptor): (WebCore::WebMetalTextureDescriptor::width const): (WebCore::WebMetalTextureDescriptor::setWidth): (WebCore::WebMetalTextureDescriptor::height const): (WebCore::WebMetalTextureDescriptor::setHeight): (WebCore::WebMetalTextureDescriptor::sampleCount const): (WebCore::WebMetalTextureDescriptor::setSampleCount): (WebCore::WebMetalTextureDescriptor::textureType const): (WebCore::WebMetalTextureDescriptor::setTextureType): (WebCore::WebMetalTextureDescriptor::storageMode const): (WebCore::WebMetalTextureDescriptor::setStorageMode): (WebCore::WebMetalTextureDescriptor::usage const): (WebCore::WebMetalTextureDescriptor::setUsage): * html/canvas/WebMetalTextureDescriptor.h: Renamed from Source/WebCore/html/canvas/WebGPUTextureDescriptor.h. * html/canvas/WebMetalTextureDescriptor.idl: Renamed from Source/WebCore/html/canvas/WebGPUTextureDescriptor.idl. * inspector/InspectorCanvas.cpp: (WebCore::InspectorCanvas::buildObjectForCanvas): * inspector/agents/InspectorCanvasAgent.cpp: (WebCore::InspectorCanvasAgent::requestContent): (WebCore::contextAsScriptValue): * page/RuntimeEnabledFeatures.h: (WebCore::RuntimeEnabledFeatures::setWebMetalEnabled): (WebCore::RuntimeEnabledFeatures::webMetalEnabled const): (WebCore::RuntimeEnabledFeatures::setWebGPUEnabled): Deleted. (WebCore::RuntimeEnabledFeatures::webGPUEnabled const): Deleted. * platform/Logging.h: * platform/graphics/ca/cocoa/PlatformCALayerCocoa.mm: (WebCore::PlatformCALayerCocoa::layerTypeForPlatformLayer): (WebCore::PlatformCALayerCocoa::PlatformCALayerCocoa): * platform/graphics/cocoa/WebMetalLayer.h: Renamed from Source/WebCore/platform/graphics/cocoa/WebGPULayer.h. * platform/graphics/cocoa/WebMetalLayer.mm: Renamed from Source/WebCore/platform/graphics/cocoa/WebGPULayer.mm. (-[WebMetalLayer initWithGPUDevice:]): * platform/graphics/gpu/GPUBuffer.cpp: (WebCore::GPUBuffer::~GPUBuffer): * platform/graphics/gpu/GPUBuffer.h: * platform/graphics/gpu/GPUCommandBuffer.cpp: (WebCore::GPUCommandBuffer::~GPUCommandBuffer): * platform/graphics/gpu/GPUCommandBuffer.h: * platform/graphics/gpu/GPUCommandQueue.cpp: (WebCore::GPUCommandQueue::~GPUCommandQueue): * platform/graphics/gpu/GPUCommandQueue.h: * platform/graphics/gpu/GPUComputeCommandEncoder.cpp: (WebCore::GPUComputeCommandEncoder::~GPUComputeCommandEncoder): * platform/graphics/gpu/GPUComputeCommandEncoder.h: * platform/graphics/gpu/GPUComputePipelineState.cpp: (WebCore::GPUComputePipelineState::~GPUComputePipelineState): * platform/graphics/gpu/GPUComputePipelineState.h: * platform/graphics/gpu/GPUDepthStencilDescriptor.cpp: (WebCore::GPUDepthStencilDescriptor::~GPUDepthStencilDescriptor): * platform/graphics/gpu/GPUDepthStencilDescriptor.h: * platform/graphics/gpu/GPUDepthStencilState.cpp: (WebCore::GPUDepthStencilState::~GPUDepthStencilState): * platform/graphics/gpu/GPUDepthStencilState.h: * platform/graphics/gpu/GPUDevice.cpp: (WebCore::GPUDevice::~GPUDevice): * platform/graphics/gpu/GPUDevice.h: (WebCore::GPUDevice::layer const): * platform/graphics/gpu/GPUDrawable.cpp: (WebCore::GPUDrawable::~GPUDrawable): * platform/graphics/gpu/GPUDrawable.h: * platform/graphics/gpu/GPUEnums.h: * platform/graphics/gpu/GPUFunction.cpp: (WebCore::GPUFunction::~GPUFunction): * platform/graphics/gpu/GPUFunction.h: * platform/graphics/gpu/GPULibrary.cpp: (WebCore::GPULibrary::~GPULibrary): * platform/graphics/gpu/GPULibrary.h: * platform/graphics/gpu/GPURenderCommandEncoder.cpp: (WebCore::GPURenderCommandEncoder::~GPURenderCommandEncoder): * platform/graphics/gpu/GPURenderCommandEncoder.h: * platform/graphics/gpu/GPURenderPassAttachmentDescriptor.cpp: (WebCore::GPURenderPassAttachmentDescriptor::~GPURenderPassAttachmentDescriptor): * platform/graphics/gpu/GPURenderPassAttachmentDescriptor.h: * platform/graphics/gpu/GPURenderPassColorAttachmentDescriptor.cpp: (WebCore::GPURenderPassColorAttachmentDescriptor::~GPURenderPassColorAttachmentDescriptor): * platform/graphics/gpu/GPURenderPassColorAttachmentDescriptor.h: * platform/graphics/gpu/GPURenderPassDepthAttachmentDescriptor.cpp: (WebCore::GPURenderPassDepthAttachmentDescriptor::~GPURenderPassDepthAttachmentDescriptor): * platform/graphics/gpu/GPURenderPassDepthAttachmentDescriptor.h: * platform/graphics/gpu/GPURenderPassDescriptor.cpp: (WebCore::GPURenderPassDescriptor::~GPURenderPassDescriptor): * platform/graphics/gpu/GPURenderPassDescriptor.h: * platform/graphics/gpu/GPURenderPipelineColorAttachmentDescriptor.cpp: (WebCore::GPURenderPipelineColorAttachmentDescriptor::~GPURenderPipelineColorAttachmentDescriptor): * platform/graphics/gpu/GPURenderPipelineColorAttachmentDescriptor.h: * platform/graphics/gpu/GPURenderPipelineDescriptor.cpp: (WebCore::GPURenderPipelineDescriptor::~GPURenderPipelineDescriptor): * platform/graphics/gpu/GPURenderPipelineDescriptor.h: * platform/graphics/gpu/GPURenderPipelineState.cpp: (WebCore::GPURenderPipelineState::~GPURenderPipelineState): * platform/graphics/gpu/GPURenderPipelineState.h: * platform/graphics/gpu/GPUSize.h: * platform/graphics/gpu/GPUTexture.cpp: (WebCore::GPUTexture::~GPUTexture): * platform/graphics/gpu/GPUTexture.h: * platform/graphics/gpu/GPUTextureDescriptor.cpp: (WebCore::GPUTextureDescriptor::~GPUTextureDescriptor): * platform/graphics/gpu/GPUTextureDescriptor.h: * platform/graphics/metal/GPUBufferMetal.mm: (WebCore::GPUBuffer::GPUBuffer): * platform/graphics/metal/GPUCommandBufferMetal.mm: * platform/graphics/metal/GPUCommandQueueMetal.mm: * platform/graphics/metal/GPUComputeCommandEncoderMetal.mm: * platform/graphics/metal/GPUComputePipelineStateMetal.mm: (WebCore::GPUComputePipelineState::GPUComputePipelineState): * platform/graphics/metal/GPUDepthStencilDescriptorMetal.mm: * platform/graphics/metal/GPUDepthStencilStateMetal.mm: (WebCore::GPUDepthStencilState::setLabel const): * platform/graphics/metal/GPUDeviceMetal.mm: (WebCore::GPUDevice::reshape const): * platform/graphics/metal/GPUDrawableMetal.mm: (WebCore::GPUDrawable::release): * platform/graphics/metal/GPUFunctionMetal.mm: * platform/graphics/metal/GPULibraryMetal.mm: (WebCore::GPULibrary::GPULibrary): * platform/graphics/metal/GPURenderCommandEncoderMetal.mm: (WebCore::GPURenderCommandEncoder::GPURenderCommandEncoder): * platform/graphics/metal/GPURenderPassAttachmentDescriptorMetal.mm: * platform/graphics/metal/GPURenderPassColorAttachmentDescriptorMetal.mm: * platform/graphics/metal/GPURenderPassDepthAttachmentDescriptorMetal.mm: * platform/graphics/metal/GPURenderPassDescriptorMetal.mm: * platform/graphics/metal/GPURenderPipelineColorAttachmentDescriptorMetal.mm: * platform/graphics/metal/GPURenderPipelineDescriptorMetal.mm: * platform/graphics/metal/GPURenderPipelineStateMetal.mm: (WebCore::GPURenderPipelineState::setLabel const): * platform/graphics/metal/GPUTextureDescriptorMetal.mm: * platform/graphics/metal/GPUTextureMetal.mm: (WebCore::GPUTexture::GPUTexture): * testing/InternalSettings.cpp: (WebCore::InternalSettings::Backup::Backup): (WebCore::InternalSettings::Backup::restoreTo): (WebCore::InternalSettings::setWebMetalEnabled): (WebCore::InternalSettings::setWebGPUEnabled): Deleted. * testing/InternalSettings.h: * testing/InternalSettings.idl: Source/WebCore/PAL: <rdar://problem/44990443> Reviewed by Dean Jackson. Rename WebGPU prototype files to WebMetal in preparation for implementing the new (Oct 2018) WebGPU interface. * Configurations/FeatureDefines.xcconfig: Source/WebInspectorUI: <rdar://problem/44990443> Reviewed by Dean Jackson. Rename WebGPU prototype files to WebMetal in preparation for implementing the new (Oct 2018) WebGPU interface. For WebInspector, add WebMetal to valid enums for canvas types. * UserInterface/Models/Canvas.js: (WI.Canvas.fromPayload): (WI.Canvas.displayNameForContextType): Source/WebKit: <rdar://problem/44990443> Reviewed by Dean Jackson. Rename WebGPU prototype files to WebMetal in preparation for implementing the new (Oct 2018) WebGPU interface. * Configurations/FeatureDefines.xcconfig: * Shared/WebPreferences.yaml: * WebProcess/InjectedBundle/InjectedBundle.cpp: (WebKit::InjectedBundle::overrideBoolPreferenceForTestRunner): Source/WebKitLegacy/mac: <rdar://problem/44990443> Reviewed by Dean Jackson. Rename WebGPU prototype files to WebMetal in preparation for implementing the new (Oct 2018) WebGPU interface. * Configurations/FeatureDefines.xcconfig: * WebView/WebPreferenceKeysPrivate.h: * WebView/WebPreferences.mm: (+[WebPreferences initialize]): (-[WebPreferences webMetalEnabled]): (-[WebPreferences setWebMetalEnabled:]): (-[WebPreferences webGPUEnabled]): Deleted. (-[WebPreferences setWebGPUEnabled:]): Deleted. * WebView/WebPreferencesPrivate.h: * WebView/WebView.mm: (-[WebView _preferencesChanged:]): Tools: <rdar://problem/44990443> Reviewed by Dean Jackson. Rename WebGPU prototype files to WebMetal in preparation for implementing the new (Oct 2018) WebGPU interface. * DumpRenderTree/mac/DumpRenderTree.mm: (enableExperimentalFeatures): (resetWebPreferencesToConsistentValues): * TestWebKitAPI/Configurations/FeatureDefines.xcconfig: * TestWebKitAPI/Tests/WebCore/mac/GPUBuffer.mm: * TestWebKitAPI/Tests/WebCore/mac/GPUCommandQueue.mm: * TestWebKitAPI/Tests/WebCore/mac/GPUDevice.mm: * TestWebKitAPI/Tests/WebCore/mac/GPUFunction.mm: * TestWebKitAPI/Tests/WebCore/mac/GPULibrary.mm: * WebKitTestRunner/InjectedBundle/InjectedBundle.cpp: (WTR::InjectedBundle::beginTesting): * WebKitTestRunner/InjectedBundle/TestRunner.cpp: (WTR::TestRunner::setWebMetalEnabled): (WTR::TestRunner::setWebGPUEnabled): Deleted. * WebKitTestRunner/InjectedBundle/TestRunner.h: Websites/webkit.org: <rdar://problem/44990443> Reviewed by Dean Jackson. Rename WebGPU prototype files to WebMetal in preparation for implementing the new (Oct 2018) WebGPU interface. * demos/webgpu/shared.js: Removed. * demos/webmetal/2d.html: Renamed from Websites/webkit.org/demos/webgpu/2d.html. * demos/webmetal/2d.jpg: Renamed from Websites/webkit.org/demos/webgpu/2d.jpg. * demos/webmetal/2d.js: Renamed from Websites/webkit.org/demos/webgpu/2d.js. (init): * demos/webmetal/circle.svg: Renamed from Websites/webkit.org/demos/webgpu/circle.svg. * demos/webmetal/cubes.html: Renamed from Websites/webkit.org/demos/webgpu/cubes.html. * demos/webmetal/cubes.jpg: Renamed from Websites/webkit.org/demos/webgpu/cubes.jpg. * demos/webmetal/cubes.js: Renamed from Websites/webkit.org/demos/webgpu/cubes.js. (init): * demos/webmetal/gl-matrix-min.js: Renamed from Websites/webkit.org/demos/webgpu/gl-matrix-min.js. * demos/webmetal/hello.html: Renamed from Websites/webkit.org/demos/webgpu/hello.html. * demos/webmetal/hello.jpg: Renamed from Websites/webkit.org/demos/webgpu/hello.jpg. * demos/webmetal/hello.js: Renamed from Websites/webkit.org/demos/webgpu/hello.js. (init): * demos/webmetal/index.html: Renamed from Websites/webkit.org/demos/webgpu/index.html. * demos/webmetal/shared.css: Renamed from Websites/webkit.org/demos/webgpu/shared.css. * demos/webmetal/shared.js: Added. (const.hasWebMetal): (const.checkForWebMetal): * demos/webmetal/simple.html: Renamed from Websites/webkit.org/demos/webgpu/simple.html. * demos/webmetal/simple.jpg: Renamed from Websites/webkit.org/demos/webgpu/simple.jpg. * demos/webmetal/simple.js: Renamed from Websites/webkit.org/demos/webgpu/simple.js. (init): * experimental-features.html: LayoutTests: <rdar://problem/44990443> Reviewed by Dean Jackson. Rename WebGPU prototype files to WebMetal in preparation for implementing the new (Oct 2018) WebGPU interface. * fast/canvas/webgpu/webgpu-runtime-flag-expected.txt: Removed. * fast/canvas/webmetal/webmetal-dispatch-expected.txt: Renamed from LayoutTests/fast/canvas/webgpu/webgpu-dispatch-expected.txt. * fast/canvas/webmetal/webmetal-dispatch.html: Renamed from LayoutTests/fast/canvas/webgpu/webgpu-dispatch.html. * fast/canvas/webmetal/webmetal-runtime-flag-expected.txt: Added. * fast/canvas/webmetal/webmetal-runtime-flag.html: Renamed from LayoutTests/fast/canvas/webgpu/webgpu-runtime-flag.html. * inspector/canvas/create-context-webmetal-expected.txt: Renamed from LayoutTests/inspector/canvas/create-context-webgpu-expected.txt. * inspector/canvas/create-context-webmetal.html: Renamed from LayoutTests/inspector/canvas/create-context-webgpu.html. * inspector/canvas/resolveCanvasContext-webgpu-expected.txt: Removed. * inspector/canvas/resolveCanvasContext-webmetal-expected.txt: Added. * inspector/canvas/resolveCanvasContext-webmetal.html: Renamed from LayoutTests/inspector/canvas/resolveCanvasContext-webgpu.html. * platform/gtk/TestExpectations: * platform/ios/TestExpectations: * platform/mac/TestExpectations: * platform/win/TestExpectations: Canonical link: https://commits.webkit.org/205337@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@236954 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2018-10-09 01:37:30 +00:00
function testWebMetal() {
return window.WebMetalRenderingContext;
}
function testWebRTC() {
return window.RTCPeerConnection;
}
function testObjectRest() {
try {
eval(`function foo() { let {x, ...rest} = 20; ;({...foo} = 20); };`);
} catch (e) {
return false;
}
return true;
}
Put OffscreenCanvas behind a build flag https://bugs.webkit.org/show_bug.cgi?id=203146 Patch by Chris Lord <clord@igalia.com> on 2019-10-26 Reviewed by Ryosuke Niwa. .: Put OffscreenCanvas behind a build flag and enable building with experimental features on GTK and WPE. * Source/cmake/OptionsGTK.cmake: * Source/cmake/OptionsWPE.cmake: * Source/cmake/WebKitFeatures.cmake: LayoutTests/imported/w3c: OffscreenCanvas is disabled by default, adjust expectations accordingly. * web-platform-tests/2dcontext/imagebitmap/createImageBitmap-drawImage-expected.txt: * web-platform-tests/2dcontext/imagebitmap/createImageBitmap-invalid-args-expected.txt: * web-platform-tests/2dcontext/imagebitmap/createImageBitmap-serializable-expected.txt: * web-platform-tests/2dcontext/imagebitmap/createImageBitmap-transfer-expected.txt: * web-platform-tests/html/dom/idlharness.https-expected.txt: * web-platform-tests/html/infrastructure/safe-passing-of-structured-data/transfer-errors.window-expected.txt: PerformanceTests: * StitchMarker/wtf/FeatureDefines.h: Source/JavaScriptCore: * Configurations/FeatureDefines.xcconfig: Source/WebCore: No new tests. No behavior changes. * Configurations/FeatureDefines.xcconfig: * bindings/js/JSEventTargetCustom.cpp: * bindings/js/JSOffscreenCanvasRenderingContext2DCustom.cpp: * dom/EventTargetFactory.in: * html/ImageBitmap.idl: * html/OffscreenCanvas.cpp: * html/OffscreenCanvas.h: * html/OffscreenCanvas.idl: * html/canvas/CanvasRenderingContext.cpp: * html/canvas/ImageBitmapRenderingContext.idl: * html/canvas/OffscreenCanvasRenderingContext2D.cpp: * html/canvas/OffscreenCanvasRenderingContext2D.h: * html/canvas/OffscreenCanvasRenderingContext2D.idl: * html/canvas/WebGLRenderingContextBase.cpp: (WebCore::WebGLRenderingContextBase::canvas): * html/canvas/WebGLRenderingContextBase.h: * html/canvas/WebGLRenderingContextBase.idl: * inspector/agents/InspectorCanvasAgent.cpp: * page/PageConsoleClient.cpp: (WebCore::canvasRenderingContext): * page/RuntimeEnabledFeatures.h: (WebCore::RuntimeEnabledFeatures::setImageBitmapEnabled): (WebCore::RuntimeEnabledFeatures::imageBitmapEnabled const): (WebCore::RuntimeEnabledFeatures::setOffscreenCanvasEnabled): (WebCore::RuntimeEnabledFeatures::offscreenCanvasEnabled const): * page/WindowOrWorkerGlobalScope.idl: Source/WebCore/PAL: * Configurations/FeatureDefines.xcconfig: Source/WebKit: Split the ImageBitmapOffscreenCanvas setting into two separate settings so OffscreenCanvas can be disabled at build time. * Configurations/FeatureDefines.xcconfig: * Shared/WebPreferences.yaml: * Shared/WebPreferencesDefaultValues.h: * WebProcess/InjectedBundle/InjectedBundle.cpp: (WebKit::InjectedBundle::overrideBoolPreferenceForTestRunner): * WebProcess/WebPage/WebInspectorUI.cpp: (WebKit::WebInspectorUI::WebInspectorUI): Source/WebKitLegacy/mac: * Configurations/FeatureDefines.xcconfig: Source/WTF: * wtf/FeatureDefines.h: Tools: Put OffscreenCanvas behind a build flag and enable the runtime setting when running tests on platforms where it's built (GTK and WPE). * Scripts/webkitperl/FeatureList.pm: * TestWebKitAPI/Configurations/FeatureDefines.xcconfig: * WebKitTestRunner/InjectedBundle/InjectedBundle.cpp: (WTR::InjectedBundle::beginTesting): * WebKitTestRunner/InjectedBundle/TestRunner.cpp: (WTR::TestRunner::setOffscreenCanvasEnabled): * WebKitTestRunner/InjectedBundle/TestRunner.h: Websites/webkit.org: Update to reflect split ImageBitmapOffscreenCanvas settings. * experimental-features.html: LayoutTests: OffscreenCanvas is disabled by default except on GTK/WPE. Adjust test expectations accordingly. * TestExpectations: * platform/gtk/TestExpectations: * platform/gtk/imported/w3c/web-platform-tests/2dcontext/imagebitmap/createImageBitmap-drawImage-expected.txt: Copied from LayoutTests/imported/w3c/web-platform-tests/2dcontext/imagebitmap/createImageBitmap-drawImage-expected.txt. * platform/gtk/imported/w3c/web-platform-tests/2dcontext/imagebitmap/createImageBitmap-invalid-args-expected.txt: Copied from LayoutTests/imported/w3c/web-platform-tests/2dcontext/imagebitmap/createImageBitmap-invalid-args-expected.txt. * platform/gtk/imported/w3c/web-platform-tests/2dcontext/imagebitmap/createImageBitmap-serializable-expected.txt: Copied from LayoutTests/imported/w3c/web-platform-tests/2dcontext/imagebitmap/createImageBitmap-serializable-expected.txt. * platform/gtk/imported/w3c/web-platform-tests/2dcontext/imagebitmap/createImageBitmap-transfer-expected.txt: Renamed from LayoutTests/platform/ios-wk2/imported/w3c/web-platform-tests/2dcontext/imagebitmap/createImageBitmap-transfer-expected.txt. * platform/gtk/imported/w3c/web-platform-tests/html/dom/idlharness.https-expected.txt: Copied from LayoutTests/imported/w3c/web-platform-tests/html/dom/idlharness.https-expected.txt. * platform/gtk/imported/w3c/web-platform-tests/html/infrastructure/safe-passing-of-structured-data/transfer-errors.window-expected.txt: Copied from LayoutTests/imported/w3c/web-platform-tests/html/infrastructure/safe-passing-of-structured-data/transfer-errors.window-expected.txt. * platform/ios-wk2/imported/w3c/web-platform-tests/html/dom/idlharness.https-expected.txt: * platform/ios/imported/w3c/web-platform-tests/2dcontext/imagebitmap/createImageBitmap-invalid-args-expected.txt: * platform/mac-wk1/imported/w3c/web-platform-tests/html/dom/idlharness.https-expected.txt: * platform/wpe/TestExpectations: * platform/wpe/imported/w3c/web-platform-tests/2dcontext/imagebitmap/createImageBitmap-drawImage-expected.txt: Copied from LayoutTests/imported/w3c/web-platform-tests/2dcontext/imagebitmap/createImageBitmap-drawImage-expected.txt. * platform/wpe/imported/w3c/web-platform-tests/2dcontext/imagebitmap/createImageBitmap-serializable-expected.txt: Copied from LayoutTests/imported/w3c/web-platform-tests/2dcontext/imagebitmap/createImageBitmap-serializable-expected.txt. * platform/wpe/imported/w3c/web-platform-tests/2dcontext/imagebitmap/createImageBitmap-transfer-expected.txt: Renamed from LayoutTests/platform/mac-wk1/imported/w3c/web-platform-tests/2dcontext/imagebitmap/createImageBitmap-transfer-expected.txt. * platform/wpe/imported/w3c/web-platform-tests/html/dom/idlharness.https-expected.txt: Copied from LayoutTests/imported/w3c/web-platform-tests/html/dom/idlharness.https-expected.txt. * platform/wpe/imported/w3c/web-platform-tests/html/infrastructure/safe-passing-of-structured-data/transfer-errors.window-expected.txt: Copied from LayoutTests/imported/w3c/web-platform-tests/html/infrastructure/safe-passing-of-structured-data/transfer-errors.window-expected.txt. Canonical link: https://commits.webkit.org/216857@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@251630 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2019-10-26 07:12:47 +00:00
function testImageBitmap() {
return 'createImageBitmap' in window;
}
function testOffscreenCanvas() {
return 'OffscreenCanvas' in window;
}
window.addEventListener("load", function () {
Array.from(document.querySelectorAll(".test")).forEach(element => {
var enabled = false;
try {
var testFunction = window[`test${element.id}`];
enabled = !!testFunction();
} catch (e) {
console.error(e);
}
element.classList.add(enabled ? "enabled" : "disabled");
});
}, false);
</script>
</head>
<body>
<div class="content">
<h1>Experimental Feature Availability</h1>
<p>Toggle experimental features via the Develop menu (requires reload to take effect).</p>
<p>These tests do not exercise actual functionality. They are just the most basic check to see if the feature claims to be available.</p>
Remove runtime toggle for pointer-lock https://bugs.webkit.org/show_bug.cgi?id=165577 <rdar://problems/29566996> Reviewed by Jon Lee. Source/WebCore: Remove any runtime calls to check if pointer-lock is enabled. It's either compiled in or out. Covered by existing tests. * bindings/generic/RuntimeEnabledFeatures.h: (WebCore::RuntimeEnabledFeatures::setPointerLockEnabled): Deleted. (WebCore::RuntimeEnabledFeatures::pointerLockEnabled): Deleted. * dom/Document.idl: * dom/Element.idl: * page/Page.h: * page/PointerLockController.cpp: (WebCore::PointerLockController::requestPointerLock): (WebCore::PointerLockController::requestPointerUnlock): (WebCore::PointerLockController::requestPointerUnlockAndForceCursorVisible): Source/WebKit/mac: Remove any runtime calls to check if pointer-lock is enabled. It's either compiled in or out. * WebView/WebPreferenceKeysPrivate.h: * WebView/WebPreferences.mm: (-[WebPreferences pointerLockEnabled]): Deleted. (-[WebPreferences setPointerLockEnabled:]): Deleted. * WebView/WebPreferencesPrivate.h: * WebView/WebView.mm: (-[WebView _preferencesChanged:]): Source/WebKit2: Remove any runtime calls to check if pointer-lock is enabled. It's either compiled in or out. * Shared/WebPreferencesDefinitions.h: * UIProcess/API/C/WKPreferences.cpp: (WKPreferencesSetPointerLockEnabled): Deleted. (WKPreferencesGetPointerLockEnabled): Deleted. * UIProcess/API/C/WKPreferencesRefPrivate.h: * WebProcess/WebPage/WebPage.cpp: (WebKit::WebPage::updatePreferences): Tools: Remove any runtime calls to check if pointer-lock is enabled. It's either compiled in or out. * DumpRenderTree/mac/DumpRenderTree.mm: (resetWebPreferencesToConsistentValues): * WebKitTestRunner/TestController.cpp: (WTR::TestController::resetPreferencesToConsistentValues): Websites/webkit.org: No need to have pointer-lock tested. * experimental-features.html: Also sort the list alphabetically. LayoutTests: Remove any runtime calls to check if pointer-lock is enabled. It's either compiled in or out. * platform/mac/TestExpectations: Enable the pointer-lock tests that should work. * pointer-lock/pointer-lock-api.html: Fix a bad DOM call. * pointer-lock/pointerlock-interface-disabled-expected.txt: Removed. * pointer-lock/pointerlock-interface-disabled.html: Removed. Canonical link: https://commits.webkit.org/183176@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@209514 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2016-12-08 02:53:41 +00:00
<div class="test" id="SpringAnimation"><p>CSS Spring Animations</p></div>
<div class="test" id="ES6Modules"><p>ES6 Modules in HTML</p></div>
Put OffscreenCanvas behind a build flag https://bugs.webkit.org/show_bug.cgi?id=203146 Patch by Chris Lord <clord@igalia.com> on 2019-10-26 Reviewed by Ryosuke Niwa. .: Put OffscreenCanvas behind a build flag and enable building with experimental features on GTK and WPE. * Source/cmake/OptionsGTK.cmake: * Source/cmake/OptionsWPE.cmake: * Source/cmake/WebKitFeatures.cmake: LayoutTests/imported/w3c: OffscreenCanvas is disabled by default, adjust expectations accordingly. * web-platform-tests/2dcontext/imagebitmap/createImageBitmap-drawImage-expected.txt: * web-platform-tests/2dcontext/imagebitmap/createImageBitmap-invalid-args-expected.txt: * web-platform-tests/2dcontext/imagebitmap/createImageBitmap-serializable-expected.txt: * web-platform-tests/2dcontext/imagebitmap/createImageBitmap-transfer-expected.txt: * web-platform-tests/html/dom/idlharness.https-expected.txt: * web-platform-tests/html/infrastructure/safe-passing-of-structured-data/transfer-errors.window-expected.txt: PerformanceTests: * StitchMarker/wtf/FeatureDefines.h: Source/JavaScriptCore: * Configurations/FeatureDefines.xcconfig: Source/WebCore: No new tests. No behavior changes. * Configurations/FeatureDefines.xcconfig: * bindings/js/JSEventTargetCustom.cpp: * bindings/js/JSOffscreenCanvasRenderingContext2DCustom.cpp: * dom/EventTargetFactory.in: * html/ImageBitmap.idl: * html/OffscreenCanvas.cpp: * html/OffscreenCanvas.h: * html/OffscreenCanvas.idl: * html/canvas/CanvasRenderingContext.cpp: * html/canvas/ImageBitmapRenderingContext.idl: * html/canvas/OffscreenCanvasRenderingContext2D.cpp: * html/canvas/OffscreenCanvasRenderingContext2D.h: * html/canvas/OffscreenCanvasRenderingContext2D.idl: * html/canvas/WebGLRenderingContextBase.cpp: (WebCore::WebGLRenderingContextBase::canvas): * html/canvas/WebGLRenderingContextBase.h: * html/canvas/WebGLRenderingContextBase.idl: * inspector/agents/InspectorCanvasAgent.cpp: * page/PageConsoleClient.cpp: (WebCore::canvasRenderingContext): * page/RuntimeEnabledFeatures.h: (WebCore::RuntimeEnabledFeatures::setImageBitmapEnabled): (WebCore::RuntimeEnabledFeatures::imageBitmapEnabled const): (WebCore::RuntimeEnabledFeatures::setOffscreenCanvasEnabled): (WebCore::RuntimeEnabledFeatures::offscreenCanvasEnabled const): * page/WindowOrWorkerGlobalScope.idl: Source/WebCore/PAL: * Configurations/FeatureDefines.xcconfig: Source/WebKit: Split the ImageBitmapOffscreenCanvas setting into two separate settings so OffscreenCanvas can be disabled at build time. * Configurations/FeatureDefines.xcconfig: * Shared/WebPreferences.yaml: * Shared/WebPreferencesDefaultValues.h: * WebProcess/InjectedBundle/InjectedBundle.cpp: (WebKit::InjectedBundle::overrideBoolPreferenceForTestRunner): * WebProcess/WebPage/WebInspectorUI.cpp: (WebKit::WebInspectorUI::WebInspectorUI): Source/WebKitLegacy/mac: * Configurations/FeatureDefines.xcconfig: Source/WTF: * wtf/FeatureDefines.h: Tools: Put OffscreenCanvas behind a build flag and enable the runtime setting when running tests on platforms where it's built (GTK and WPE). * Scripts/webkitperl/FeatureList.pm: * TestWebKitAPI/Configurations/FeatureDefines.xcconfig: * WebKitTestRunner/InjectedBundle/InjectedBundle.cpp: (WTR::InjectedBundle::beginTesting): * WebKitTestRunner/InjectedBundle/TestRunner.cpp: (WTR::TestRunner::setOffscreenCanvasEnabled): * WebKitTestRunner/InjectedBundle/TestRunner.h: Websites/webkit.org: Update to reflect split ImageBitmapOffscreenCanvas settings. * experimental-features.html: LayoutTests: OffscreenCanvas is disabled by default except on GTK/WPE. Adjust test expectations accordingly. * TestExpectations: * platform/gtk/TestExpectations: * platform/gtk/imported/w3c/web-platform-tests/2dcontext/imagebitmap/createImageBitmap-drawImage-expected.txt: Copied from LayoutTests/imported/w3c/web-platform-tests/2dcontext/imagebitmap/createImageBitmap-drawImage-expected.txt. * platform/gtk/imported/w3c/web-platform-tests/2dcontext/imagebitmap/createImageBitmap-invalid-args-expected.txt: Copied from LayoutTests/imported/w3c/web-platform-tests/2dcontext/imagebitmap/createImageBitmap-invalid-args-expected.txt. * platform/gtk/imported/w3c/web-platform-tests/2dcontext/imagebitmap/createImageBitmap-serializable-expected.txt: Copied from LayoutTests/imported/w3c/web-platform-tests/2dcontext/imagebitmap/createImageBitmap-serializable-expected.txt. * platform/gtk/imported/w3c/web-platform-tests/2dcontext/imagebitmap/createImageBitmap-transfer-expected.txt: Renamed from LayoutTests/platform/ios-wk2/imported/w3c/web-platform-tests/2dcontext/imagebitmap/createImageBitmap-transfer-expected.txt. * platform/gtk/imported/w3c/web-platform-tests/html/dom/idlharness.https-expected.txt: Copied from LayoutTests/imported/w3c/web-platform-tests/html/dom/idlharness.https-expected.txt. * platform/gtk/imported/w3c/web-platform-tests/html/infrastructure/safe-passing-of-structured-data/transfer-errors.window-expected.txt: Copied from LayoutTests/imported/w3c/web-platform-tests/html/infrastructure/safe-passing-of-structured-data/transfer-errors.window-expected.txt. * platform/ios-wk2/imported/w3c/web-platform-tests/html/dom/idlharness.https-expected.txt: * platform/ios/imported/w3c/web-platform-tests/2dcontext/imagebitmap/createImageBitmap-invalid-args-expected.txt: * platform/mac-wk1/imported/w3c/web-platform-tests/html/dom/idlharness.https-expected.txt: * platform/wpe/TestExpectations: * platform/wpe/imported/w3c/web-platform-tests/2dcontext/imagebitmap/createImageBitmap-drawImage-expected.txt: Copied from LayoutTests/imported/w3c/web-platform-tests/2dcontext/imagebitmap/createImageBitmap-drawImage-expected.txt. * platform/wpe/imported/w3c/web-platform-tests/2dcontext/imagebitmap/createImageBitmap-serializable-expected.txt: Copied from LayoutTests/imported/w3c/web-platform-tests/2dcontext/imagebitmap/createImageBitmap-serializable-expected.txt. * platform/wpe/imported/w3c/web-platform-tests/2dcontext/imagebitmap/createImageBitmap-transfer-expected.txt: Renamed from LayoutTests/platform/mac-wk1/imported/w3c/web-platform-tests/2dcontext/imagebitmap/createImageBitmap-transfer-expected.txt. * platform/wpe/imported/w3c/web-platform-tests/html/dom/idlharness.https-expected.txt: Copied from LayoutTests/imported/w3c/web-platform-tests/html/dom/idlharness.https-expected.txt. * platform/wpe/imported/w3c/web-platform-tests/html/infrastructure/safe-passing-of-structured-data/transfer-errors.window-expected.txt: Copied from LayoutTests/imported/w3c/web-platform-tests/html/infrastructure/safe-passing-of-structured-data/transfer-errors.window-expected.txt. Canonical link: https://commits.webkit.org/216857@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@251630 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2019-10-26 07:12:47 +00:00
<div class="test" id="ImageBitmap"><p>ImageBitmap</p></div>
<div class="test" id="OffscreenCanvas"><p>OffscreenCanvas</p></div>
Add Link Preload as an off-by-default experimental feature menu item. https://bugs.webkit.org/show_bug.cgi?id=167201 Reviewed by Ryosuke Niwa. Source/WebCore: Removed the explicit setting of the Link Preload experimental feature, as it is now on by default for testing. No new tests as this just removes methods from settings. * testing/InternalSettings.cpp: (WebCore::InternalSettings::Backup::Backup): (WebCore::InternalSettings::Backup::restoreTo): * testing/InternalSettings.h: * testing/InternalSettings.idl: Source/WebKit/mac: * WebView/WebPreferenceKeysPrivate.h: * WebView/WebPreferences.mm: (-[WebPreferences linkPreloadEnabled]): (-[WebPreferences setLinkPreloadEnabled:]): * WebView/WebPreferencesPrivate.h: * WebView/WebView.mm: (-[WebView _preferencesChanged:]): Source/WebKit/win: * WebPreferenceKeysPrivate.h: * WebPreferences.cpp: (WebPreferences::initializeDefaultSettings): (WebPreferences::valueForKey): (WebPreferences::setLinkPreloadEnabled): (WebPreferences::linkPreloadEnabled): * WebPreferences.h: * Interfaces/IWebPreferencesPrivate.idl: Source/WebKit2: * Shared/WebPreferencesDefinitions.h: * UIProcess/API/C/WKPreferences.cpp: (WKPreferencesSetLinkPreloadEnabled): (WKPreferencesGetLinkPreloadEnabled): * UIProcess/API/C/WKPreferencesRefPrivate.h: * WebProcess/WebPage/WebPage.cpp: (WebKit::WebPage::updatePreferences): Tools: * DumpRenderTree/mac/DumpRenderTree.mm: (resetWebPreferencesToConsistentValues): * DumpRenderTree/win/DumpRenderTree.cpp: (resetWebPreferencesToConsistentValues): Websites/webkit.org: * experimental-features.html: Added Link Preload. LayoutTests: Removed code explicitly enabling Link preload from the tests, as it is now turned on by default for testing. Corrected expectation files accordingly. * http/tests/fetch/redirectmode-and-preload.html: * http/tests/preload/delaying_onload_link_preload_after_discovery.html: * http/tests/preload/delaying_onload_link_preload_after_discovery_image.html: * http/tests/preload/download_resources-expected.txt: * http/tests/preload/download_resources.html: * http/tests/preload/download_resources_from_header_iframe.html: * http/tests/preload/download_resources_from_invalid_headers.html: * http/tests/preload/dynamic_adding_preload.html: * http/tests/preload/dynamic_remove_preload_href-expected.txt: * http/tests/preload/dynamic_remove_preload_href.html: * http/tests/preload/not_delaying_window_onload_before_discovery.html: * http/tests/preload/onerror_event-expected.txt: * http/tests/preload/onerror_event.html: * http/tests/preload/onload_event-expected.txt: * http/tests/preload/onload_event.html: * http/tests/preload/resources/download_resources_from_header.php: * http/tests/preload/resources/invalid_resources_from_header.php: * http/tests/preload/single_download_preload-expected.txt: * http/tests/preload/single_download_preload.html: * http/tests/security/cached-cross-origin-preloaded-css-stylesheet.html: * http/tests/security/cached-cross-origin-preloading-css-stylesheet.html: Canonical link: https://commits.webkit.org/184585@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@211341 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2017-01-28 22:53:54 +00:00
<div class="test" id="LinkPreload"><p>Link Preload</p></div>
<div class="test" id="SubtleCrypto"><p>SubtleCrypto</p></div>
Remove runtime toggle for pointer-lock https://bugs.webkit.org/show_bug.cgi?id=165577 <rdar://problems/29566996> Reviewed by Jon Lee. Source/WebCore: Remove any runtime calls to check if pointer-lock is enabled. It's either compiled in or out. Covered by existing tests. * bindings/generic/RuntimeEnabledFeatures.h: (WebCore::RuntimeEnabledFeatures::setPointerLockEnabled): Deleted. (WebCore::RuntimeEnabledFeatures::pointerLockEnabled): Deleted. * dom/Document.idl: * dom/Element.idl: * page/Page.h: * page/PointerLockController.cpp: (WebCore::PointerLockController::requestPointerLock): (WebCore::PointerLockController::requestPointerUnlock): (WebCore::PointerLockController::requestPointerUnlockAndForceCursorVisible): Source/WebKit/mac: Remove any runtime calls to check if pointer-lock is enabled. It's either compiled in or out. * WebView/WebPreferenceKeysPrivate.h: * WebView/WebPreferences.mm: (-[WebPreferences pointerLockEnabled]): Deleted. (-[WebPreferences setPointerLockEnabled:]): Deleted. * WebView/WebPreferencesPrivate.h: * WebView/WebView.mm: (-[WebView _preferencesChanged:]): Source/WebKit2: Remove any runtime calls to check if pointer-lock is enabled. It's either compiled in or out. * Shared/WebPreferencesDefinitions.h: * UIProcess/API/C/WKPreferences.cpp: (WKPreferencesSetPointerLockEnabled): Deleted. (WKPreferencesGetPointerLockEnabled): Deleted. * UIProcess/API/C/WKPreferencesRefPrivate.h: * WebProcess/WebPage/WebPage.cpp: (WebKit::WebPage::updatePreferences): Tools: Remove any runtime calls to check if pointer-lock is enabled. It's either compiled in or out. * DumpRenderTree/mac/DumpRenderTree.mm: (resetWebPreferencesToConsistentValues): * WebKitTestRunner/TestController.cpp: (WTR::TestController::resetPreferencesToConsistentValues): Websites/webkit.org: No need to have pointer-lock tested. * experimental-features.html: Also sort the list alphabetically. LayoutTests: Remove any runtime calls to check if pointer-lock is enabled. It's either compiled in or out. * platform/mac/TestExpectations: Enable the pointer-lock tests that should work. * pointer-lock/pointer-lock-api.html: Fix a bad DOM call. * pointer-lock/pointerlock-interface-disabled-expected.txt: Removed. * pointer-lock/pointerlock-interface-disabled.html: Removed. Canonical link: https://commits.webkit.org/183176@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@209514 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2016-12-08 02:53:41 +00:00
<div class="test" id="VariationFonts"><p>Variation Fonts</p></div>
<div class="test" id="WebAnimations"><p>Web Animations</p></div>
<div class="test" id="WebAnimationsCSSIntegration"><p>Web Animations and CSS Integration</p></div>
Remove runtime toggle for pointer-lock https://bugs.webkit.org/show_bug.cgi?id=165577 <rdar://problems/29566996> Reviewed by Jon Lee. Source/WebCore: Remove any runtime calls to check if pointer-lock is enabled. It's either compiled in or out. Covered by existing tests. * bindings/generic/RuntimeEnabledFeatures.h: (WebCore::RuntimeEnabledFeatures::setPointerLockEnabled): Deleted. (WebCore::RuntimeEnabledFeatures::pointerLockEnabled): Deleted. * dom/Document.idl: * dom/Element.idl: * page/Page.h: * page/PointerLockController.cpp: (WebCore::PointerLockController::requestPointerLock): (WebCore::PointerLockController::requestPointerUnlock): (WebCore::PointerLockController::requestPointerUnlockAndForceCursorVisible): Source/WebKit/mac: Remove any runtime calls to check if pointer-lock is enabled. It's either compiled in or out. * WebView/WebPreferenceKeysPrivate.h: * WebView/WebPreferences.mm: (-[WebPreferences pointerLockEnabled]): Deleted. (-[WebPreferences setPointerLockEnabled:]): Deleted. * WebView/WebPreferencesPrivate.h: * WebView/WebView.mm: (-[WebView _preferencesChanged:]): Source/WebKit2: Remove any runtime calls to check if pointer-lock is enabled. It's either compiled in or out. * Shared/WebPreferencesDefinitions.h: * UIProcess/API/C/WKPreferences.cpp: (WKPreferencesSetPointerLockEnabled): Deleted. (WKPreferencesGetPointerLockEnabled): Deleted. * UIProcess/API/C/WKPreferencesRefPrivate.h: * WebProcess/WebPage/WebPage.cpp: (WebKit::WebPage::updatePreferences): Tools: Remove any runtime calls to check if pointer-lock is enabled. It's either compiled in or out. * DumpRenderTree/mac/DumpRenderTree.mm: (resetWebPreferencesToConsistentValues): * WebKitTestRunner/TestController.cpp: (WTR::TestController::resetPreferencesToConsistentValues): Websites/webkit.org: No need to have pointer-lock tested. * experimental-features.html: Also sort the list alphabetically. LayoutTests: Remove any runtime calls to check if pointer-lock is enabled. It's either compiled in or out. * platform/mac/TestExpectations: Enable the pointer-lock tests that should work. * pointer-lock/pointer-lock-api.html: Fix a bad DOM call. * pointer-lock/pointerlock-interface-disabled-expected.txt: Removed. * pointer-lock/pointerlock-interface-disabled.html: Removed. Canonical link: https://commits.webkit.org/183176@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@209514 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2016-12-08 02:53:41 +00:00
<div class="test" id="WebGL2"><p>WebGL 2.0</p></div>
<div class="test" id="WebGPU"><p>Web GPU</p></div>
WebGPU: Rename old WebGPU prototype to WebMetal https://bugs.webkit.org/show_bug.cgi?id=190325 .: Reviewed by Dean Jackson. * Source/cmake/WebKitFeatures.cmake: Source/JavaScriptCore: <rdar://problem/44990443> Reviewed by Dean Jackson. Rename WebGPU prototype files to WebMetal in preparation for implementing the new (Oct 2018) WebGPU interface. * Configurations/FeatureDefines.xcconfig: * inspector/protocol/Canvas.json: * inspector/scripts/codegen/generator.py: Source/WebCore: <rdar://problem/44990443> Reviewed by Dean Jackson. Existing WebGPU tests also renamed to reflect WebGPU -> WebMetal change. Rename WebGPU prototype files to WebMetal in preparation for implementing the new (Oct 2018) WebGPU interface. * CMakeLists.txt: * Configurations/FeatureDefines.xcconfig: * DerivedSources.make: * Sources.txt: * SourcesCocoa.txt: * WebCore.xcodeproj/project.pbxproj: * bindings/js/JSWebMetalRenderPassAttachmentDescriptorCustom.cpp: Renamed from Source/WebCore/bindings/js/JSWebGPURenderPassAttachmentDescriptorCustom.cpp. (WebCore::toJSNewlyCreated): (WebCore::toJS): * bindings/js/JSWebMetalRenderingContextCustom.cpp: Renamed from Source/WebCore/bindings/js/JSWebGPURenderingContextCustom.cpp. (WebCore::JSWebMetalRenderingContext::visitAdditionalChildren): * bindings/js/WebCoreBuiltinNames.h: * dom/Document.cpp: (WebCore::Document::getCSSCanvasContext): * dom/Document.h: * dom/Document.idl: * html/HTMLCanvasElement.cpp: (WebCore::HTMLCanvasElement::getContext): (WebCore::HTMLCanvasElement::isWebMetalType): (WebCore::HTMLCanvasElement::createContextWebMetal): (WebCore::HTMLCanvasElement::getContextWebMetal): (WebCore::HTMLCanvasElement::isWebGPUType): Deleted. (WebCore::HTMLCanvasElement::createContextWebGPU): Deleted. (WebCore::HTMLCanvasElement::getContextWebGPU): Deleted. * html/HTMLCanvasElement.h: * html/HTMLCanvasElement.idl: * html/canvas/CanvasRenderingContext.h: (WebCore::CanvasRenderingContext::isWebMetal const): (WebCore::CanvasRenderingContext::isWebGPU const): Deleted. * html/canvas/WebGPURenderingContext.cpp: Removed. * html/canvas/WebMetalBuffer.cpp: Renamed from Source/WebCore/html/canvas/WebGPUBuffer.cpp. (WebCore::WebMetalBuffer::create): (WebCore::WebMetalBuffer::WebMetalBuffer): * html/canvas/WebMetalBuffer.h: Renamed from Source/WebCore/html/canvas/WebGPUBuffer.h. * html/canvas/WebMetalBuffer.idl: Renamed from Source/WebCore/html/canvas/WebGPUBuffer.idl. * html/canvas/WebMetalCommandBuffer.cpp: Renamed from Source/WebCore/html/canvas/WebGPUCommandBuffer.cpp. (WebCore::WebMetalCommandBuffer::create): (WebCore::WebMetalCommandBuffer::WebMetalCommandBuffer): (WebCore::WebMetalCommandBuffer::~WebMetalCommandBuffer): (WebCore::WebMetalCommandBuffer::commit): (WebCore::WebMetalCommandBuffer::presentDrawable): (WebCore::WebMetalCommandBuffer::createRenderCommandEncoderWithDescriptor): (WebCore::WebMetalCommandBuffer::createComputeCommandEncoder): (WebCore::WebMetalCommandBuffer::completed): * html/canvas/WebMetalCommandBuffer.h: Renamed from Source/WebCore/html/canvas/WebGPUCommandBuffer.h. * html/canvas/WebMetalCommandBuffer.idl: Renamed from Source/WebCore/html/canvas/WebGPUCommandBuffer.idl. * html/canvas/WebMetalCommandQueue.cpp: Renamed from Source/WebCore/html/canvas/WebGPUCommandQueue.cpp. (WebCore::WebMetalCommandQueue::create): (WebCore::WebMetalCommandQueue::WebMetalCommandQueue): (WebCore::WebMetalCommandQueue::createCommandBuffer): * html/canvas/WebMetalCommandQueue.h: Renamed from Source/WebCore/html/canvas/WebGPUCommandQueue.h. * html/canvas/WebMetalCommandQueue.idl: Renamed from Source/WebCore/html/canvas/WebGPUCommandQueue.idl. * html/canvas/WebMetalComputeCommandEncoder.cpp: Renamed from Source/WebCore/html/canvas/WebGPUComputeCommandEncoder.cpp. (WebCore::GPUSizeMake): (WebCore::WebMetalComputeCommandEncoder::create): (WebCore::WebMetalComputeCommandEncoder::WebMetalComputeCommandEncoder): (WebCore::WebMetalComputeCommandEncoder::setComputePipelineState): (WebCore::WebMetalComputeCommandEncoder::setBuffer): (WebCore::WebMetalComputeCommandEncoder::dispatch): (WebCore::WebMetalComputeCommandEncoder::endEncoding): * html/canvas/WebMetalComputeCommandEncoder.h: Renamed from Source/WebCore/html/canvas/WebGPUComputeCommandEncoder.h. * html/canvas/WebMetalComputeCommandEncoder.idl: Renamed from Source/WebCore/html/canvas/WebGPUComputeCommandEncoder.idl. * html/canvas/WebMetalComputePipelineState.cpp: Renamed from Source/WebCore/html/canvas/WebGPUComputePipelineState.cpp. (WebCore::WebMetalComputePipelineState::create): (WebCore::WebMetalComputePipelineState::WebMetalComputePipelineState): * html/canvas/WebMetalComputePipelineState.h: Renamed from Source/WebCore/html/canvas/WebGPUComputePipelineState.h. * html/canvas/WebMetalComputePipelineState.idl: Renamed from Source/WebCore/html/canvas/WebGPUComputePipelineState.idl. * html/canvas/WebMetalDepthStencilDescriptor.cpp: Renamed from Source/WebCore/html/canvas/WebGPUDepthStencilDescriptor.cpp. (WebCore::WebMetalDepthStencilDescriptor::create): (WebCore::WebMetalDepthStencilDescriptor::depthWriteEnabled const): (WebCore::WebMetalDepthStencilDescriptor::setDepthWriteEnabled): (WebCore::WebMetalDepthStencilDescriptor::depthCompareFunction const): (WebCore::WebMetalDepthStencilDescriptor::setDepthCompareFunction): * html/canvas/WebMetalDepthStencilDescriptor.h: Renamed from Source/WebCore/html/canvas/WebGPUDepthStencilDescriptor.h. * html/canvas/WebMetalDepthStencilDescriptor.idl: Renamed from Source/WebCore/html/canvas/WebGPUDepthStencilDescriptor.idl. * html/canvas/WebMetalDepthStencilState.cpp: Renamed from Source/WebCore/html/canvas/WebGPUDepthStencilState.cpp. (WebCore::WebMetalDepthStencilState::create): (WebCore::WebMetalDepthStencilState::WebMetalDepthStencilState): (WebCore::WebMetalDepthStencilState::label const): (WebCore::WebMetalDepthStencilState::setLabel): * html/canvas/WebMetalDepthStencilState.h: Renamed from Source/WebCore/html/canvas/WebGPUDepthStencilState.h. * html/canvas/WebMetalDepthStencilState.idl: Renamed from Source/WebCore/html/canvas/WebGPURenderPipelineState.idl. * html/canvas/WebMetalDrawable.cpp: Renamed from Source/WebCore/html/canvas/WebGPUDrawable.cpp. (WebCore::WebMetalDrawable::create): (WebCore::WebMetalDrawable::WebMetalDrawable): * html/canvas/WebMetalDrawable.h: Renamed from Source/WebCore/html/canvas/WebGPUDrawable.h. (WebCore::WebMetalDrawable::texture): * html/canvas/WebMetalDrawable.idl: Renamed from Source/WebCore/html/canvas/WebGPUDrawable.idl. * html/canvas/WebMetalEnums.cpp: Renamed from Source/WebCore/html/canvas/WebGPUEnums.cpp. (WebCore::toWebMetalCompareFunction): (WebCore::web3DCompareFunctionName): (WebCore::toGPUCompareFunction): * html/canvas/WebMetalEnums.h: Renamed from Source/WebCore/html/canvas/WebGPUEnums.h. * html/canvas/WebMetalEnums.idl: Renamed from Source/WebCore/html/canvas/WebGPUEnums.idl. * html/canvas/WebMetalFunction.cpp: Renamed from Source/WebCore/html/canvas/WebGPUFunction.cpp. (WebCore::WebMetalFunction::create): (WebCore::WebMetalFunction::WebMetalFunction): * html/canvas/WebMetalFunction.h: Renamed from Source/WebCore/html/canvas/WebGPUFunction.h. * html/canvas/WebMetalFunction.idl: Renamed from Source/WebCore/html/canvas/WebGPUFunction.idl. * html/canvas/WebMetalLibrary.cpp: Renamed from Source/WebCore/html/canvas/WebGPULibrary.cpp. (WebCore::WebMetalLibrary::create): (WebCore::WebMetalLibrary::WebMetalLibrary): (WebCore::WebMetalLibrary::functionNames const): (WebCore::WebMetalLibrary::functionWithName const): * html/canvas/WebMetalLibrary.h: Renamed from Source/WebCore/html/canvas/WebGPULibrary.h. * html/canvas/WebMetalLibrary.idl: Renamed from Source/WebCore/html/canvas/WebGPULibrary.idl. * html/canvas/WebMetalRenderCommandEncoder.cpp: Renamed from Source/WebCore/html/canvas/WebGPURenderCommandEncoder.cpp. (WebCore::WebMetalRenderCommandEncoder::create): (WebCore::WebMetalRenderCommandEncoder::WebMetalRenderCommandEncoder): (WebCore::WebMetalRenderCommandEncoder::setRenderPipelineState): (WebCore::WebMetalRenderCommandEncoder::setDepthStencilState): (WebCore::WebMetalRenderCommandEncoder::setVertexBuffer): (WebCore::WebMetalRenderCommandEncoder::setFragmentBuffer): (WebCore::WebMetalRenderCommandEncoder::drawPrimitives): (WebCore::WebMetalRenderCommandEncoder::endEncoding): * html/canvas/WebMetalRenderCommandEncoder.h: Renamed from Source/WebCore/html/canvas/WebGPURenderCommandEncoder.h. * html/canvas/WebMetalRenderCommandEncoder.idl: Renamed from Source/WebCore/html/canvas/WebGPURenderCommandEncoder.idl. * html/canvas/WebMetalRenderPassAttachmentDescriptor.cpp: Renamed from Source/WebCore/html/canvas/WebGPURenderPassAttachmentDescriptor.cpp. (WebCore::WebMetalRenderPassAttachmentDescriptor::WebMetalRenderPassAttachmentDescriptor): (WebCore::WebMetalRenderPassAttachmentDescriptor::loadAction const): (WebCore::WebMetalRenderPassAttachmentDescriptor::setLoadAction): (WebCore::WebMetalRenderPassAttachmentDescriptor::storeAction const): (WebCore::WebMetalRenderPassAttachmentDescriptor::setStoreAction): (WebCore::WebMetalRenderPassAttachmentDescriptor::texture const): (WebCore::WebMetalRenderPassAttachmentDescriptor::setTexture): * html/canvas/WebMetalRenderPassAttachmentDescriptor.h: Renamed from Source/WebCore/html/canvas/WebGPURenderPassAttachmentDescriptor.h. * html/canvas/WebMetalRenderPassAttachmentDescriptor.idl: Renamed from Source/WebCore/html/canvas/WebGPURenderPassAttachmentDescriptor.idl. * html/canvas/WebMetalRenderPassColorAttachmentDescriptor.cpp: Renamed from Source/WebCore/html/canvas/WebGPURenderPassColorAttachmentDescriptor.cpp. (WebCore::WebMetalRenderPassColorAttachmentDescriptor::create): (WebCore::WebMetalRenderPassColorAttachmentDescriptor::WebMetalRenderPassColorAttachmentDescriptor): (WebCore::WebMetalRenderPassColorAttachmentDescriptor::descriptor const): (WebCore::WebMetalRenderPassColorAttachmentDescriptor::clearColor const): (WebCore::WebMetalRenderPassColorAttachmentDescriptor::setClearColor): * html/canvas/WebMetalRenderPassColorAttachmentDescriptor.h: Renamed from Source/WebCore/html/canvas/WebGPURenderPassColorAttachmentDescriptor.h. * html/canvas/WebMetalRenderPassColorAttachmentDescriptor.idl: Renamed from Source/WebCore/html/canvas/WebGPURenderPassColorAttachmentDescriptor.idl. * html/canvas/WebMetalRenderPassDepthAttachmentDescriptor.cpp: Renamed from Source/WebCore/html/canvas/WebGPURenderPassDepthAttachmentDescriptor.cpp. (WebCore::WebMetalRenderPassDepthAttachmentDescriptor::create): (WebCore::WebMetalRenderPassDepthAttachmentDescriptor::WebMetalRenderPassDepthAttachmentDescriptor): (WebCore::WebMetalRenderPassDepthAttachmentDescriptor::clearDepth const): (WebCore::WebMetalRenderPassDepthAttachmentDescriptor::setClearDepth): (WebCore::WebMetalRenderPassDepthAttachmentDescriptor::descriptor const): * html/canvas/WebMetalRenderPassDepthAttachmentDescriptor.h: Renamed from Source/WebCore/html/canvas/WebGPURenderPassDepthAttachmentDescriptor.h. * html/canvas/WebMetalRenderPassDepthAttachmentDescriptor.idl: Renamed from Source/WebCore/html/canvas/WebGPURenderPassDepthAttachmentDescriptor.idl. * html/canvas/WebMetalRenderPassDescriptor.cpp: Renamed from Source/WebCore/html/canvas/WebGPURenderPassDescriptor.cpp. (WebCore::WebMetalRenderPassDescriptor::create): (WebCore::WebMetalRenderPassDescriptor::depthAttachment): (WebCore::WebMetalRenderPassDescriptor::colorAttachments): * html/canvas/WebMetalRenderPassDescriptor.h: Renamed from Source/WebCore/html/canvas/WebGPURenderPassDescriptor.h. * html/canvas/WebMetalRenderPassDescriptor.idl: Renamed from Source/WebCore/html/canvas/WebGPURenderPassDescriptor.idl. * html/canvas/WebMetalRenderPipelineColorAttachmentDescriptor.cpp: Renamed from Source/WebCore/html/canvas/WebGPURenderPipelineColorAttachmentDescriptor.cpp. (WebCore::WebMetalRenderPipelineColorAttachmentDescriptor::create): (WebCore::WebMetalRenderPipelineColorAttachmentDescriptor::WebMetalRenderPipelineColorAttachmentDescriptor): (WebCore::WebMetalRenderPipelineColorAttachmentDescriptor::pixelFormat const): (WebCore::WebMetalRenderPipelineColorAttachmentDescriptor::setPixelFormat): * html/canvas/WebMetalRenderPipelineColorAttachmentDescriptor.h: Renamed from Source/WebCore/html/canvas/WebGPURenderPipelineColorAttachmentDescriptor.h. * html/canvas/WebMetalRenderPipelineColorAttachmentDescriptor.idl: Renamed from Source/WebCore/html/canvas/WebGPURenderPipelineColorAttachmentDescriptor.idl. * html/canvas/WebMetalRenderPipelineDescriptor.cpp: Renamed from Source/WebCore/html/canvas/WebGPURenderPipelineDescriptor.cpp. (WebCore::WebMetalRenderPipelineDescriptor::create): (WebCore::WebMetalRenderPipelineDescriptor::vertexFunction const): (WebCore::WebMetalRenderPipelineDescriptor::setVertexFunction): (WebCore::WebMetalRenderPipelineDescriptor::fragmentFunction const): (WebCore::WebMetalRenderPipelineDescriptor::setFragmentFunction): (WebCore::WebMetalRenderPipelineDescriptor::colorAttachments): (WebCore::WebMetalRenderPipelineDescriptor::depthAttachmentPixelFormat const): (WebCore::WebMetalRenderPipelineDescriptor::setDepthAttachmentPixelFormat): (WebCore::WebMetalRenderPipelineDescriptor::reset): * html/canvas/WebMetalRenderPipelineDescriptor.h: Renamed from Source/WebCore/html/canvas/WebGPURenderPipelineDescriptor.h. * html/canvas/WebMetalRenderPipelineDescriptor.idl: Renamed from Source/WebCore/html/canvas/WebGPURenderPipelineDescriptor.idl. * html/canvas/WebMetalRenderPipelineState.cpp: Renamed from Source/WebCore/html/canvas/WebGPURenderPipelineState.cpp. (WebCore::WebMetalRenderPipelineState::create): (WebCore::WebMetalRenderPipelineState::WebMetalRenderPipelineState): (WebCore::WebMetalRenderPipelineState::label const): (WebCore::WebMetalRenderPipelineState::setLabel): * html/canvas/WebMetalRenderPipelineState.h: Renamed from Source/WebCore/html/canvas/WebGPURenderPipelineState.h. * html/canvas/WebMetalRenderPipelineState.idl: Renamed from Source/WebCore/html/canvas/WebGPUDepthStencilState.idl. * html/canvas/WebMetalRenderingContext.cpp: Added. (WebCore::WebMetalRenderingContext::create): (WebCore::WebMetalRenderingContext::WebMetalRenderingContext): (WebCore::WebMetalRenderingContext::canvas const): (WebCore::WebMetalRenderingContext::initializeNewContext): (WebCore::WebMetalRenderingContext::clampedCanvasSize const): (WebCore::WebMetalRenderingContext::hasPendingActivity const): (WebCore::WebMetalRenderingContext::stop): (WebCore::WebMetalRenderingContext::activeDOMObjectName const): (WebCore::WebMetalRenderingContext::canSuspendForDocumentSuspension const): (WebCore::WebMetalRenderingContext::platformLayer const): (WebCore::WebMetalRenderingContext::markLayerComposited): (WebCore::WebMetalRenderingContext::reshape): (WebCore::WebMetalRenderingContext::createLibrary): (WebCore::WebMetalRenderingContext::createRenderPipelineState): (WebCore::WebMetalRenderingContext::createDepthStencilState): (WebCore::WebMetalRenderingContext::createComputePipelineState): (WebCore::WebMetalRenderingContext::createCommandQueue): (WebCore::WebMetalRenderingContext::nextDrawable): (WebCore::WebMetalRenderingContext::createBuffer): (WebCore::WebMetalRenderingContext::createTexture): * html/canvas/WebMetalRenderingContext.h: Renamed from Source/WebCore/html/canvas/WebGPURenderingContext.h. * html/canvas/WebMetalRenderingContext.idl: Renamed from Source/WebCore/html/canvas/WebGPURenderingContext.idl. * html/canvas/WebMetalSize.h: Renamed from Source/WebCore/html/canvas/WebGPUSize.h. * html/canvas/WebMetalSize.idl: Renamed from Source/WebCore/html/canvas/WebGPUSize.idl. * html/canvas/WebMetalTexture.cpp: Renamed from Source/WebCore/html/canvas/WebGPUTexture.cpp. (WebCore::WebMetalTexture::create): (WebCore::WebMetalTexture::WebMetalTexture): * html/canvas/WebMetalTexture.h: Renamed from Source/WebCore/html/canvas/WebGPUTexture.h. * html/canvas/WebMetalTexture.idl: Renamed from Source/WebCore/html/canvas/WebGPUTexture.idl. * html/canvas/WebMetalTextureDescriptor.cpp: Renamed from Source/WebCore/html/canvas/WebGPUTextureDescriptor.cpp. (WebCore::WebMetalTextureDescriptor::create): (WebCore::WebMetalTextureDescriptor::WebMetalTextureDescriptor): (WebCore::WebMetalTextureDescriptor::width const): (WebCore::WebMetalTextureDescriptor::setWidth): (WebCore::WebMetalTextureDescriptor::height const): (WebCore::WebMetalTextureDescriptor::setHeight): (WebCore::WebMetalTextureDescriptor::sampleCount const): (WebCore::WebMetalTextureDescriptor::setSampleCount): (WebCore::WebMetalTextureDescriptor::textureType const): (WebCore::WebMetalTextureDescriptor::setTextureType): (WebCore::WebMetalTextureDescriptor::storageMode const): (WebCore::WebMetalTextureDescriptor::setStorageMode): (WebCore::WebMetalTextureDescriptor::usage const): (WebCore::WebMetalTextureDescriptor::setUsage): * html/canvas/WebMetalTextureDescriptor.h: Renamed from Source/WebCore/html/canvas/WebGPUTextureDescriptor.h. * html/canvas/WebMetalTextureDescriptor.idl: Renamed from Source/WebCore/html/canvas/WebGPUTextureDescriptor.idl. * inspector/InspectorCanvas.cpp: (WebCore::InspectorCanvas::buildObjectForCanvas): * inspector/agents/InspectorCanvasAgent.cpp: (WebCore::InspectorCanvasAgent::requestContent): (WebCore::contextAsScriptValue): * page/RuntimeEnabledFeatures.h: (WebCore::RuntimeEnabledFeatures::setWebMetalEnabled): (WebCore::RuntimeEnabledFeatures::webMetalEnabled const): (WebCore::RuntimeEnabledFeatures::setWebGPUEnabled): Deleted. (WebCore::RuntimeEnabledFeatures::webGPUEnabled const): Deleted. * platform/Logging.h: * platform/graphics/ca/cocoa/PlatformCALayerCocoa.mm: (WebCore::PlatformCALayerCocoa::layerTypeForPlatformLayer): (WebCore::PlatformCALayerCocoa::PlatformCALayerCocoa): * platform/graphics/cocoa/WebMetalLayer.h: Renamed from Source/WebCore/platform/graphics/cocoa/WebGPULayer.h. * platform/graphics/cocoa/WebMetalLayer.mm: Renamed from Source/WebCore/platform/graphics/cocoa/WebGPULayer.mm. (-[WebMetalLayer initWithGPUDevice:]): * platform/graphics/gpu/GPUBuffer.cpp: (WebCore::GPUBuffer::~GPUBuffer): * platform/graphics/gpu/GPUBuffer.h: * platform/graphics/gpu/GPUCommandBuffer.cpp: (WebCore::GPUCommandBuffer::~GPUCommandBuffer): * platform/graphics/gpu/GPUCommandBuffer.h: * platform/graphics/gpu/GPUCommandQueue.cpp: (WebCore::GPUCommandQueue::~GPUCommandQueue): * platform/graphics/gpu/GPUCommandQueue.h: * platform/graphics/gpu/GPUComputeCommandEncoder.cpp: (WebCore::GPUComputeCommandEncoder::~GPUComputeCommandEncoder): * platform/graphics/gpu/GPUComputeCommandEncoder.h: * platform/graphics/gpu/GPUComputePipelineState.cpp: (WebCore::GPUComputePipelineState::~GPUComputePipelineState): * platform/graphics/gpu/GPUComputePipelineState.h: * platform/graphics/gpu/GPUDepthStencilDescriptor.cpp: (WebCore::GPUDepthStencilDescriptor::~GPUDepthStencilDescriptor): * platform/graphics/gpu/GPUDepthStencilDescriptor.h: * platform/graphics/gpu/GPUDepthStencilState.cpp: (WebCore::GPUDepthStencilState::~GPUDepthStencilState): * platform/graphics/gpu/GPUDepthStencilState.h: * platform/graphics/gpu/GPUDevice.cpp: (WebCore::GPUDevice::~GPUDevice): * platform/graphics/gpu/GPUDevice.h: (WebCore::GPUDevice::layer const): * platform/graphics/gpu/GPUDrawable.cpp: (WebCore::GPUDrawable::~GPUDrawable): * platform/graphics/gpu/GPUDrawable.h: * platform/graphics/gpu/GPUEnums.h: * platform/graphics/gpu/GPUFunction.cpp: (WebCore::GPUFunction::~GPUFunction): * platform/graphics/gpu/GPUFunction.h: * platform/graphics/gpu/GPULibrary.cpp: (WebCore::GPULibrary::~GPULibrary): * platform/graphics/gpu/GPULibrary.h: * platform/graphics/gpu/GPURenderCommandEncoder.cpp: (WebCore::GPURenderCommandEncoder::~GPURenderCommandEncoder): * platform/graphics/gpu/GPURenderCommandEncoder.h: * platform/graphics/gpu/GPURenderPassAttachmentDescriptor.cpp: (WebCore::GPURenderPassAttachmentDescriptor::~GPURenderPassAttachmentDescriptor): * platform/graphics/gpu/GPURenderPassAttachmentDescriptor.h: * platform/graphics/gpu/GPURenderPassColorAttachmentDescriptor.cpp: (WebCore::GPURenderPassColorAttachmentDescriptor::~GPURenderPassColorAttachmentDescriptor): * platform/graphics/gpu/GPURenderPassColorAttachmentDescriptor.h: * platform/graphics/gpu/GPURenderPassDepthAttachmentDescriptor.cpp: (WebCore::GPURenderPassDepthAttachmentDescriptor::~GPURenderPassDepthAttachmentDescriptor): * platform/graphics/gpu/GPURenderPassDepthAttachmentDescriptor.h: * platform/graphics/gpu/GPURenderPassDescriptor.cpp: (WebCore::GPURenderPassDescriptor::~GPURenderPassDescriptor): * platform/graphics/gpu/GPURenderPassDescriptor.h: * platform/graphics/gpu/GPURenderPipelineColorAttachmentDescriptor.cpp: (WebCore::GPURenderPipelineColorAttachmentDescriptor::~GPURenderPipelineColorAttachmentDescriptor): * platform/graphics/gpu/GPURenderPipelineColorAttachmentDescriptor.h: * platform/graphics/gpu/GPURenderPipelineDescriptor.cpp: (WebCore::GPURenderPipelineDescriptor::~GPURenderPipelineDescriptor): * platform/graphics/gpu/GPURenderPipelineDescriptor.h: * platform/graphics/gpu/GPURenderPipelineState.cpp: (WebCore::GPURenderPipelineState::~GPURenderPipelineState): * platform/graphics/gpu/GPURenderPipelineState.h: * platform/graphics/gpu/GPUSize.h: * platform/graphics/gpu/GPUTexture.cpp: (WebCore::GPUTexture::~GPUTexture): * platform/graphics/gpu/GPUTexture.h: * platform/graphics/gpu/GPUTextureDescriptor.cpp: (WebCore::GPUTextureDescriptor::~GPUTextureDescriptor): * platform/graphics/gpu/GPUTextureDescriptor.h: * platform/graphics/metal/GPUBufferMetal.mm: (WebCore::GPUBuffer::GPUBuffer): * platform/graphics/metal/GPUCommandBufferMetal.mm: * platform/graphics/metal/GPUCommandQueueMetal.mm: * platform/graphics/metal/GPUComputeCommandEncoderMetal.mm: * platform/graphics/metal/GPUComputePipelineStateMetal.mm: (WebCore::GPUComputePipelineState::GPUComputePipelineState): * platform/graphics/metal/GPUDepthStencilDescriptorMetal.mm: * platform/graphics/metal/GPUDepthStencilStateMetal.mm: (WebCore::GPUDepthStencilState::setLabel const): * platform/graphics/metal/GPUDeviceMetal.mm: (WebCore::GPUDevice::reshape const): * platform/graphics/metal/GPUDrawableMetal.mm: (WebCore::GPUDrawable::release): * platform/graphics/metal/GPUFunctionMetal.mm: * platform/graphics/metal/GPULibraryMetal.mm: (WebCore::GPULibrary::GPULibrary): * platform/graphics/metal/GPURenderCommandEncoderMetal.mm: (WebCore::GPURenderCommandEncoder::GPURenderCommandEncoder): * platform/graphics/metal/GPURenderPassAttachmentDescriptorMetal.mm: * platform/graphics/metal/GPURenderPassColorAttachmentDescriptorMetal.mm: * platform/graphics/metal/GPURenderPassDepthAttachmentDescriptorMetal.mm: * platform/graphics/metal/GPURenderPassDescriptorMetal.mm: * platform/graphics/metal/GPURenderPipelineColorAttachmentDescriptorMetal.mm: * platform/graphics/metal/GPURenderPipelineDescriptorMetal.mm: * platform/graphics/metal/GPURenderPipelineStateMetal.mm: (WebCore::GPURenderPipelineState::setLabel const): * platform/graphics/metal/GPUTextureDescriptorMetal.mm: * platform/graphics/metal/GPUTextureMetal.mm: (WebCore::GPUTexture::GPUTexture): * testing/InternalSettings.cpp: (WebCore::InternalSettings::Backup::Backup): (WebCore::InternalSettings::Backup::restoreTo): (WebCore::InternalSettings::setWebMetalEnabled): (WebCore::InternalSettings::setWebGPUEnabled): Deleted. * testing/InternalSettings.h: * testing/InternalSettings.idl: Source/WebCore/PAL: <rdar://problem/44990443> Reviewed by Dean Jackson. Rename WebGPU prototype files to WebMetal in preparation for implementing the new (Oct 2018) WebGPU interface. * Configurations/FeatureDefines.xcconfig: Source/WebInspectorUI: <rdar://problem/44990443> Reviewed by Dean Jackson. Rename WebGPU prototype files to WebMetal in preparation for implementing the new (Oct 2018) WebGPU interface. For WebInspector, add WebMetal to valid enums for canvas types. * UserInterface/Models/Canvas.js: (WI.Canvas.fromPayload): (WI.Canvas.displayNameForContextType): Source/WebKit: <rdar://problem/44990443> Reviewed by Dean Jackson. Rename WebGPU prototype files to WebMetal in preparation for implementing the new (Oct 2018) WebGPU interface. * Configurations/FeatureDefines.xcconfig: * Shared/WebPreferences.yaml: * WebProcess/InjectedBundle/InjectedBundle.cpp: (WebKit::InjectedBundle::overrideBoolPreferenceForTestRunner): Source/WebKitLegacy/mac: <rdar://problem/44990443> Reviewed by Dean Jackson. Rename WebGPU prototype files to WebMetal in preparation for implementing the new (Oct 2018) WebGPU interface. * Configurations/FeatureDefines.xcconfig: * WebView/WebPreferenceKeysPrivate.h: * WebView/WebPreferences.mm: (+[WebPreferences initialize]): (-[WebPreferences webMetalEnabled]): (-[WebPreferences setWebMetalEnabled:]): (-[WebPreferences webGPUEnabled]): Deleted. (-[WebPreferences setWebGPUEnabled:]): Deleted. * WebView/WebPreferencesPrivate.h: * WebView/WebView.mm: (-[WebView _preferencesChanged:]): Tools: <rdar://problem/44990443> Reviewed by Dean Jackson. Rename WebGPU prototype files to WebMetal in preparation for implementing the new (Oct 2018) WebGPU interface. * DumpRenderTree/mac/DumpRenderTree.mm: (enableExperimentalFeatures): (resetWebPreferencesToConsistentValues): * TestWebKitAPI/Configurations/FeatureDefines.xcconfig: * TestWebKitAPI/Tests/WebCore/mac/GPUBuffer.mm: * TestWebKitAPI/Tests/WebCore/mac/GPUCommandQueue.mm: * TestWebKitAPI/Tests/WebCore/mac/GPUDevice.mm: * TestWebKitAPI/Tests/WebCore/mac/GPUFunction.mm: * TestWebKitAPI/Tests/WebCore/mac/GPULibrary.mm: * WebKitTestRunner/InjectedBundle/InjectedBundle.cpp: (WTR::InjectedBundle::beginTesting): * WebKitTestRunner/InjectedBundle/TestRunner.cpp: (WTR::TestRunner::setWebMetalEnabled): (WTR::TestRunner::setWebGPUEnabled): Deleted. * WebKitTestRunner/InjectedBundle/TestRunner.h: Websites/webkit.org: <rdar://problem/44990443> Reviewed by Dean Jackson. Rename WebGPU prototype files to WebMetal in preparation for implementing the new (Oct 2018) WebGPU interface. * demos/webgpu/shared.js: Removed. * demos/webmetal/2d.html: Renamed from Websites/webkit.org/demos/webgpu/2d.html. * demos/webmetal/2d.jpg: Renamed from Websites/webkit.org/demos/webgpu/2d.jpg. * demos/webmetal/2d.js: Renamed from Websites/webkit.org/demos/webgpu/2d.js. (init): * demos/webmetal/circle.svg: Renamed from Websites/webkit.org/demos/webgpu/circle.svg. * demos/webmetal/cubes.html: Renamed from Websites/webkit.org/demos/webgpu/cubes.html. * demos/webmetal/cubes.jpg: Renamed from Websites/webkit.org/demos/webgpu/cubes.jpg. * demos/webmetal/cubes.js: Renamed from Websites/webkit.org/demos/webgpu/cubes.js. (init): * demos/webmetal/gl-matrix-min.js: Renamed from Websites/webkit.org/demos/webgpu/gl-matrix-min.js. * demos/webmetal/hello.html: Renamed from Websites/webkit.org/demos/webgpu/hello.html. * demos/webmetal/hello.jpg: Renamed from Websites/webkit.org/demos/webgpu/hello.jpg. * demos/webmetal/hello.js: Renamed from Websites/webkit.org/demos/webgpu/hello.js. (init): * demos/webmetal/index.html: Renamed from Websites/webkit.org/demos/webgpu/index.html. * demos/webmetal/shared.css: Renamed from Websites/webkit.org/demos/webgpu/shared.css. * demos/webmetal/shared.js: Added. (const.hasWebMetal): (const.checkForWebMetal): * demos/webmetal/simple.html: Renamed from Websites/webkit.org/demos/webgpu/simple.html. * demos/webmetal/simple.jpg: Renamed from Websites/webkit.org/demos/webgpu/simple.jpg. * demos/webmetal/simple.js: Renamed from Websites/webkit.org/demos/webgpu/simple.js. (init): * experimental-features.html: LayoutTests: <rdar://problem/44990443> Reviewed by Dean Jackson. Rename WebGPU prototype files to WebMetal in preparation for implementing the new (Oct 2018) WebGPU interface. * fast/canvas/webgpu/webgpu-runtime-flag-expected.txt: Removed. * fast/canvas/webmetal/webmetal-dispatch-expected.txt: Renamed from LayoutTests/fast/canvas/webgpu/webgpu-dispatch-expected.txt. * fast/canvas/webmetal/webmetal-dispatch.html: Renamed from LayoutTests/fast/canvas/webgpu/webgpu-dispatch.html. * fast/canvas/webmetal/webmetal-runtime-flag-expected.txt: Added. * fast/canvas/webmetal/webmetal-runtime-flag.html: Renamed from LayoutTests/fast/canvas/webgpu/webgpu-runtime-flag.html. * inspector/canvas/create-context-webmetal-expected.txt: Renamed from LayoutTests/inspector/canvas/create-context-webgpu-expected.txt. * inspector/canvas/create-context-webmetal.html: Renamed from LayoutTests/inspector/canvas/create-context-webgpu.html. * inspector/canvas/resolveCanvasContext-webgpu-expected.txt: Removed. * inspector/canvas/resolveCanvasContext-webmetal-expected.txt: Added. * inspector/canvas/resolveCanvasContext-webmetal.html: Renamed from LayoutTests/inspector/canvas/resolveCanvasContext-webgpu.html. * platform/gtk/TestExpectations: * platform/ios/TestExpectations: * platform/mac/TestExpectations: * platform/win/TestExpectations: Canonical link: https://commits.webkit.org/205337@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@236954 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2018-10-09 01:37:30 +00:00
<div class="test" id="WebMetal"><p>WebMetal</p></div>
<div class="test" id="WebRTC"><p>WebRTC</p></div>
<div class="test" id="ObjectRest"><p>ObjectRest</p></div>
</div>
</body>
</html>