[webkit-changes] [WebKit/WebKit] 60b6c3: [WebGPU] GPUTexture returned from GPUCanvasContext...

mwyrzykowski noreply at github.com
Tue Feb 13 12:58:51 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 60b6c37529914986e681eece61f87a1c66080707
      https://github.com/WebKit/WebKit/commit/60b6c37529914986e681eece61f87a1c66080707
  Author: Mike Wyrzykowski <mwyrzykowski at apple.com>
  Date:   2024-02-13 (Tue, 13 Feb 2024)

  Changed paths:
    M Source/WebCore/Modules/WebGPU/GPUPresentationContext.cpp
    M Source/WebCore/Modules/WebGPU/GPUPresentationContext.h
    M Source/WebCore/html/canvas/GPUCanvasContextCocoa.h
    M Source/WebCore/html/canvas/GPUCanvasContextCocoa.mm

  Log Message:
  -----------
  [WebGPU] GPUTexture returned from GPUCanvasContext.getCurrentTexture() has the wrong size
https://bugs.webkit.org/show_bug.cgi?id=269262
<radar://122847972>

Reviewed by Dan Glastonbury.

We were returning a GPUTexture instance that reported a
size of 1x1, which is incorrect.

* Source/WebCore/Modules/WebGPU/GPUPresentationContext.cpp:
(WebCore::GPUPresentationContext::configure):
(WebCore::GPUPresentationContext::getCurrentTexture):
* Source/WebCore/Modules/WebGPU/GPUPresentationContext.h:
* Source/WebCore/html/canvas/GPUCanvasContextCocoa.h:
* Source/WebCore/html/canvas/GPUCanvasContextCocoa.mm:
(WebCore::getCanvasWidth):
(WebCore::getCanvasHeight):
(WebCore::GPUCanvasContextCocoa::reshape):
(WebCore::GPUCanvasContextCocoa::configure):

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




More information about the webkit-changes mailing list