Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 60b6c37529914986e681eece61f87a1c66080707
      
https://github.com/WebKit/WebKit/commit/60b6c37529914986e681eece61f87a1c66080707
  Author: Mike Wyrzykowski <[email protected]>
  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


_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to