[webkit-changes] [WebKit/WebKit] 626bc3: [WebGPU] Implement PresentationContextCoreAnimation

Myles C. Maxfield noreply at github.com
Wed Jan 18 15:15:44 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 626bc3146478155fc72b5c49b5282e5032a864d1
      https://github.com/WebKit/WebKit/commit/626bc3146478155fc72b5c49b5282e5032a864d1
  Author: Myles C. Maxfield <mmaxfield at apple.com>
  Date:   2023-01-18 (Wed, 18 Jan 2023)

  Changed paths:
    M Source/WebGPU/WebGPU/HardwareCapabilities.h
    M Source/WebGPU/WebGPU/HardwareCapabilities.mm
    M Source/WebGPU/WebGPU/PresentationContextCoreAnimation.h
    M Source/WebGPU/WebGPU/PresentationContextCoreAnimation.mm
    M Source/WebGPU/WebGPU/PresentationContextIOSurface.mm
    M Tools/WebGPUPlayground/AppPlayground/WebGPUCoordinator.m

  Log Message:
  -----------
  [WebGPU] Implement PresentationContextCoreAnimation
https://bugs.webkit.org/show_bug.cgi?id=250775
rdar://104388628

Reviewed by Dean Jackson.

This is enough for us to be able to use WebGPUPlayground's AppPlayground for
WebGPU development.

No tests because there is no behavior change (from WebKit's perspective).

* Source/WebGPU/WebGPU/HardwareCapabilities.h:
* Source/WebGPU/WebGPU/HardwareCapabilities.mm:
(WebGPU::apple3):
(WebGPU::apple4):
(WebGPU::apple5):
(WebGPU::apple6):
(WebGPU::apple7):
(WebGPU::mac2):
(WebGPU::mergeBaseCapabilities):
* Source/WebGPU/WebGPU/PresentationContextCoreAnimation.h:
(WebGPU::PresentationContextCoreAnimation::Configuration::Configuration):
* Source/WebGPU/WebGPU/PresentationContextCoreAnimation.mm:
(WebGPU::layerFromSurfaceDescriptor):
(WebGPU::PresentationContextCoreAnimation::PresentationContextCoreAnimation):
(WebGPU::PresentationContextCoreAnimation::configure):
(WebGPU::PresentationContextCoreAnimation::Configuration::generateCurrentFrameState):
(WebGPU::PresentationContextCoreAnimation::present):
(WebGPU::PresentationContextCoreAnimation::getCurrentTextureView):
* Source/WebGPU/WebGPU/PresentationContextIOSurface.mm:
* Tools/WebGPUPlayground/AppPlayground/WebGPUCoordinator.m:
(-[WebGPUCoordinator mtkView:drawableSizeWillChange:]):

Canonical link: https://commits.webkit.org/259055@main




More information about the webkit-changes mailing list