[webkit-changes] [WebKit/WebKit] 229b3d: ImageBuffer::clone can fail, and pass nullptr to s...

mattwoodrow noreply at github.com
Mon Feb 27 12:46:47 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 229b3dbf26ebb0b908fae678f18f69ec25485a11
      https://github.com/WebKit/WebKit/commit/229b3dbf26ebb0b908fae678f18f69ec25485a11
  Author: Matt Woodrow <mattwoodrow at apple.com>
  Date:   2023-02-27 (Mon, 27 Feb 2023)

  Changed paths:
    M Source/WebCore/html/OffscreenCanvas.cpp

  Log Message:
  -----------
  ImageBuffer::clone can fail, and pass nullptr to sinkIntoSerializedImageBuffer
https://bugs.webkit.org/show_bug.cgi?id=252965
<rdar:105770085>

Reviewed by Said Abou-Hallawa.

ImageBuffer::clone can fail if the GPU process has crashed, and we can silently fail here and while waiting for it to restart.

* Source/WebCore/html/OffscreenCanvas.cpp:
(WebCore::OffscreenCanvas::commitToPlaceholderCanvas):

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




More information about the webkit-changes mailing list