Source/WebCore:
[WebKit-https.git] / Source / WebCore / ChangeLog
index 73484fe..bc427dc 100644 (file)
@@ -1,3 +1,36 @@
+2019-04-02  Justin Fan  <justin_fan@apple.com>
+
+        [Web GPU] Implement blend states and color write mask for GPUColorStateDescriptor
+        https://bugs.webkit.org/show_bug.cgi?id=196474
+
+        Reviewed by Myles C. Maxfield.
+
+        Blend states and color write masks must now be specified on GPUColorStateDescriptor instead of 
+        relying on underlying MTLRenderPipelineColorAttachmentDescriptor defaults.
+
+        Test: webgpu/blend-triangle-strip.html, webgpu/color-write-mask-triangle-strip.html
+
+        * CMakeLists.txt:
+        * DerivedSources-input.xcfilelist:
+        * DerivedSources-output.xcfilelist:
+        * DerivedSources.make:
+        * Modules/webgpu/GPUBlendDescriptor.idl: 
+        * Modules/webgpu/GPUColorStateDescriptor.idl:
+        * Modules/webgpu/GPUColorWriteBits.idl: 
+        * Sources.txt:
+        * WebCore.xcodeproj/project.pbxproj:
+        * bindings/js/WebCoreBuiltinNames.h:
+        * platform/graphics/gpu/GPUBlendDescriptor.h:
+        * platform/graphics/gpu/GPUColorStateDescriptor.h:
+        * platform/graphics/gpu/GPUColorWriteBits.h:
+        * platform/graphics/gpu/cocoa/GPURenderPipelineMetal.mm:
+        (WebCore::mtlColorWriteMaskForGPUColorWriteFlags):
+        (WebCore::mtlBlendOperationForGPUBlendOperation):
+        (WebCore::mtlBlendFactorForGPUBlendFactor):
+        (WebCore::setColorStatesForColorAttachmentArray):
+        (WebCore::tryCreateMtlRenderPipelineState):
+        (WebCore::trySetColorStatesForColorAttachmentArray): Deleted.
+
 2019-04-02  Zalan Bujtas  <zalan@apple.com>
 
         [ContentChangeObserver] Ignore reconstructed renderers when checking for visibility change